Skip to content

Commit

Permalink
fix: #109 @gltjk use npm: instead of dev.jspm.io
Browse files Browse the repository at this point in the history
  • Loading branch information
xcatliu committed Mar 1, 2023
1 parent df7ab83 commit 42eca5c
Show file tree
Hide file tree
Showing 30 changed files with 35,383 additions and 5,050 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
deno-version: v1.15.1

- name: Run tests
run: deno test --unstable --allow-read --allow-write --allow-net --allow-run src
run: deno test --allow-read --allow-write --allow-net --allow-run --allow-env --allow-run src

- name: Build gh-pages
run: deno run --unstable --allow-read --allow-write --allow-net --allow-run mod.ts build
run: deno run --allow-read --allow-write --allow-net --allow-run --allow-env --allow-run mod.ts build

- name: Deploy gh-pages
if: |
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
.prettierignore
Dockerfile
LICENSE
pnpm-lock.yaml

dist

Expand Down
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker",
"denoland.vscode-deno"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
// 统一使用 \n 换行符
"files.eol": "\n",
// 缩进宽度为 2
"editor.tabSize": 2,
// 保存时自动格式化
"editor.formatOnSave": true,
// 默认使用 Prettier 格式化
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// ESLint 配置
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.codeActionsOnSave": {
Expand All @@ -14,6 +22,7 @@
// 使用项目的 ts 版本
"typescript.tsdk": "node_modules/typescript/lib",
"deno.enable": true,
"deno.lint": false,
"deno.suggest.imports.hosts": {
"https://esm.sh": false,
"https://cdn.pagic.org": false,
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ COPY --from=organizer /out /
# Install
WORKDIR /usr/src/install
ENV PATH "/root/.deno/bin:$PATH"
RUN deno install --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic mod.ts \
RUN deno install --allow-read --allow-write --allow-net --allow-run --allow-env --allow-run --name=pagic mod.ts \
# Install dependencies
&& deno cache --unstable $(find src -name "*.ts*" ! -name "*_test.ts*")
&& deno cache $(find src -name "*.ts*" ! -name "*_test.ts*")

WORKDIR /pagic
COPY --from=permissions-giver /out/docker-entrypoint.sh /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# Install deno https://deno.land/#installation
curl -fsSL https://deno.land/x/install/install.sh | sh
# Install Pagic
deno install --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic https://deno.land/x/pagic/mod.ts
deno install --allow-read --allow-write --allow-net --allow-run --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts
```

### Initialize the project
Expand Down
Loading

0 comments on commit 42eca5c

Please sign in to comment.