Skip to content

Commit

Permalink
feat: support new selector
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jul 3, 2024
1 parent 1070829 commit 33f21b4
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 138 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4

- run: pnpm install

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_fix_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4

- run: pnpm install

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4

- run: pnpm install

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ GKD 订阅模板, 此仓库方便您直接构建自己订阅, 点击右上角 [U

请安装最新版 nodejs 和 pnpm 运行, 以及使用 vscode 打开项目

- node>=20 <https://nodejs.org/en/download>
> [!IMPORTANT] nodejs 版本要求
> 选择器需要使用 nodejs@22 的 WasmGc 来校验 Java/Kotlin 正则表达式, 确保使用 nodejs>=22
- nodejs>=**22** <https://nodejs.org/en/download>
- pnpm>=9 <https://pnpm.io/zh/installation>
- vscode <https://code.visualstudio.com>

Expand All @@ -20,6 +23,12 @@ cd subscription
pnpm install
```

如果因为网络问题安装失败, 将上面的 `pnpm install` 换成下面命令使用 阿里镜像源 重新安装即可

```sh
pnpm install --registry=https://registry.npmmirror.com
```

![image](https://github.com/gkd-kit/gkd/assets/38517192/64f9da9d-8c6b-4a57-8fe8-ef13ef91346a)

至此环境已在 `subscription` 目录下初始化完毕, 使用 vscode 打开目录即可开始开发
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"@commitlint/types": "19.0.3",
"@gkd-kit/api": "0.1.0",
"@gkd-kit/define": "0.0.1",
"@gkd-kit/tools": "0.2.0",
"@types/node": "20.14.6",
"@typescript-eslint/eslint-plugin": "7.13.1",
"@typescript-eslint/parser": "7.13.1",
"@gkd-kit/tools": "0.3.0",
"@types/node": "20.14.9",
"@typescript-eslint/eslint-plugin": "7.15.0",
"@typescript-eslint/parser": "7.15.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-define-config": "2.1.0",
Expand All @@ -48,15 +48,15 @@
"lint-staged": "15.2.7",
"prettier": "3.3.2",
"simple-git-hooks": "2.11.1",
"tsx": "4.15.6",
"typescript": "5.4.5"
"tsx": "4.16.1",
"typescript": "5.5.3"
},
"volta": {
"node": "20.12.1"
"node": "22.4.0"
},
"packageManager": "pnpm@9.1.2",
"packageManager": "pnpm@9.4.0",
"engineStrict": true,
"engines": {
"node": ">=20"
"node": ">=22"
}
}
Loading

0 comments on commit 33f21b4

Please sign in to comment.