Skip to content

Commit 513ce1d

Browse files
committed
[add] VS Code & GitPod.io extensions
[optimize] upgrade to Node.js 20 & other latest Upstream packages/actions
1 parent 2bb55dc commit 513ce1d

File tree

8 files changed

+1594
-1769
lines changed

8 files changed

+1594
-1769
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ jobs:
1111
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: pnpm/action-setup@v2
16+
- uses: pnpm/action-setup@v4
1717
with:
1818
version: 9
19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: pnpm
2323
- name: Install & Build
2424
run: |
2525
pnpm i --frozen-lockfile
2626
pnpm build
2727
2828
- name: Deploy to GitHub pages
29-
uses: peaceiris/actions-gh-pages@v3
29+
uses: peaceiris/actions-gh-pages@v4
3030
with:
3131
publish_dir: ./dist
3232
personal_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/push.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: pnpm/action-setup@v2
16+
- uses: pnpm/action-setup@v4
1717
with:
1818
version: 9
19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: pnpm
2323
- name: Install & Build
2424
run: |

.gitpod.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
vscode:
8+
extensions:
9+
- yzhang.markdown-all-in-one
10+
- unifiedjs.vscode-mdx
11+
- xyc.vscode-mdx-preview
12+
- jock.svg
13+
- redhat.vscode-yaml
14+
- clinyong.vscode-css-modules
15+
- akamud.vscode-caniuse
16+
- visualstudioexptteam.intellicode-api-usage-examples
17+
- pflannery.vscode-versionlens
18+
- christian-kohler.npm-intellisense
19+
- esbenp.prettier-vscode
20+
- rangav.vscode-thunder-client
21+
- eamodio.gitlens
22+
- github.vscode-pull-request-github
23+
- github.vscode-github-actions
24+
tasks:
25+
- init: pnpm i
26+
command: npm start

.vscode/extensions.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"unifiedjs.vscode-mdx",
5+
"xyc.vscode-mdx-preview",
6+
"jock.svg",
7+
"redhat.vscode-yaml",
8+
"clinyong.vscode-css-modules",
9+
"akamud.vscode-caniuse",
10+
"visualstudioexptteam.intellicode-api-usage-examples",
11+
"pflannery.vscode-versionlens",
12+
"christian-kohler.npm-intellisense",
13+
"esbenp.prettier-vscode",
14+
"rangav.vscode-thunder-client",
15+
"eamodio.gitlens",
16+
"github.vscode-pull-request-github",
17+
"github.vscode-github-actions"
18+
]
19+
}

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ JavaScript 中文讨论组致力于提供一个加强中国 JavaScript 社区对
1010

1111
- [讨论](https://github.com/JSCIG/es-discuss/discussions)
1212

13+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][3]
14+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][4]
15+
1316
## 官网开发
1417

1518
本网站是一个基于 [WebCell v3](https://web-cell.dev) 的纯 Web 前端项目,参与开发的基本命令如下:
@@ -24,3 +27,5 @@ npm start
2427
```
2528

2629
[2]: https://github.com/JSCIG/jscig.github.io/actions/workflows/main.yml
30+
[3]: https://codespaces.new/JSCIG/jscig.github.io
31+
[4]: https://gitpod.io/?autostart=true#https://github.com/JSCIG/jscig.github.io

package.json

+14-13
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,28 @@
2121
"browser-unhandled-rejection": "^1.0.2",
2222
"cell-router": "^3.0.0-rc.8",
2323
"classnames": "^2.5.1",
24-
"dom-renderer": "^2.1.8",
25-
"koajax": "^1.1.2",
26-
"mobx": "^6.12.4",
27-
"mobx-restful": "^1.0.0",
28-
"web-cell": "^3.0.0-rc.16",
29-
"web-utility": "^4.4.0"
24+
"dom-renderer": "^2.4.4",
25+
"iterable-observer": "^1.1.0",
26+
"koajax": "^3.0.3",
27+
"mobx": "^6.13.5",
28+
"mobx-restful": "^2.0.0",
29+
"web-cell": "^3.0.1",
30+
"web-utility": "^4.4.2"
3031
},
3132
"devDependencies": {
3233
"@parcel/config-default": "~2.12.0",
3334
"@parcel/packager-raw-url": "~2.12.0",
3435
"@parcel/transformer-less": "2.12.0",
3536
"@parcel/transformer-typescript-tsc": "~2.12.0",
3637
"@parcel/transformer-webmanifest": "~2.12.0",
37-
"@types/node": "^18.19.37",
38-
"husky": "^9.0.11",
39-
"lint-staged": "^15.2.7",
38+
"@types/node": "^20.17.6",
39+
"husky": "^9.1.6",
40+
"lint-staged": "^15.2.10",
4041
"parcel": "~2.12.0",
41-
"postcss": "^8.4.38",
42+
"postcss": "^8.4.48",
4243
"postcss-modules": "^4.3.1",
43-
"prettier": "^3.3.2",
44-
"typescript": "~5.5.2",
45-
"workbox-cli": "^7.1.0"
44+
"prettier": "^3.3.3",
45+
"typescript": "~5.6.3",
46+
"workbox-cli": "^7.3.0"
4647
}
4748
}

0 commit comments

Comments
 (0)