Skip to content

Commit 9cc7647

Browse files
committed
build: update workflow and configs
1 parent 45eced1 commit 9cc7647

6 files changed

Lines changed: 91 additions & 16 deletions

File tree

.github/workflows/check-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- name: Install dependencies
4343
run: pnpm install --frozen-lockfile
4444

45+
- name: Check types
46+
run: pnpm check-types
47+
4548
- name: Lint
4649
run: pnpm lint
4750

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"[markdown]": {
1111
"files.trimTrailingWhitespace": false
1212
},
13-
"typescript.tsdk": "node_modules/typescript/lib",
13+
"js/ts.tsdk.path": "node_modules/typescript/lib",
1414
"eslint.validate": [
1515
"javascript",
1616
"javascriptreact",

docs/.vuepress/config.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ export default defineUserConfig({
152152
},
153153
modal: {
154154
searchBox: {
155-
resetButtonTitle: '清除查询条件',
156-
resetButtonAriaLabel: '清除查询条件',
157-
cancelButtonText: '取消',
158-
cancelButtonAriaLabel: '取消',
155+
clearButtonTitle: '清除查询条件',
156+
clearButtonAriaLabel: '清除查询条件',
157+
closeButtonText: '取消',
158+
closeButtonAriaLabel: '取消',
159159
},
160160
startScreen: {
161161
recentSearchesTitle: '搜索历史',
@@ -173,7 +173,7 @@ export default defineUserConfig({
173173
selectText: '选择',
174174
navigateText: '切换',
175175
closeText: '关闭',
176-
searchByText: '搜索提供者',
176+
poweredByText: '搜索提供者',
177177
},
178178
noResultsScreen: {
179179
noResultsText: '无法找到相关结果',
@@ -193,12 +193,9 @@ export default defineUserConfig({
193193
registerComponentsPlugin({
194194
componentsDir: path.resolve(__dirname, './components'),
195195
}),
196-
// only enable shiki plugin in production mode
197-
isProd
198-
? shikiPlugin({
199-
langs: ['bash', 'diff', 'json', 'md', 'ts', 'vue'],
200-
theme: 'dark-plus',
201-
})
202-
: [],
196+
shikiPlugin({
197+
langs: ['bash', 'diff', 'json', 'md', 'ts', 'vue'],
198+
theme: 'dark-plus',
199+
}),
203200
],
204201
})

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7+
"check-types": "vue-tsc --noEmit",
78
"docs:build": "vuepress build docs --clean-cache --clean-temp",
89
"docs:build-webpack": "DOCS_BUNDLER=webpack pnpm docs:build",
910
"docs:clean": "rimraf docs/.vuepress/.temp docs/.vuepress/.cache docs/.vuepress/dist",
@@ -13,7 +14,9 @@
1314
"format": "prettier --write .",
1415
"lint": "eslint . && prettier --check .",
1516
"prepare": "husky",
16-
"release": "bumpp"
17+
"release": "pnpm release:check && pnpm release:version",
18+
"release:check": "pnpm check-types && pnpm lint && pnpm docs:build",
19+
"release:version": "bumpp"
1720
},
1821
"commitlint": {
1922
"extends": [
@@ -57,14 +60,16 @@
5760
"sort-package-json": "^3.4.0",
5861
"taze": "^19.9.0",
5962
"tsconfig-vuepress": "^7.0.0",
60-
"typescript": "^5.9.3"
63+
"typescript": "^5.9.3",
64+
"vue-tsc": "^3.2.5"
6165
},
6266
"packageManager": "pnpm@10.20.0",
6367
"engines": {
6468
"node": ">=20.6.0"
6569
},
6670
"pnpm": {
6771
"onlyBuiltDependencies": [
72+
"@parcel/watcher",
6873
"esbuild",
6974
"unrs-resolver"
7075
]

pnpm-lock.yaml

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"module": "ESNext",
66
"moduleResolution": "Bundler",
77
"target": "ES2022",
8-
"declaration": false
8+
"declaration": false,
9+
"skipLibCheck": true
910
},
1011
"include": ["**/.vuepress/**/*"],
1112
"exclude": ["node_modules", ".cache", ".temp", "dist"]

0 commit comments

Comments
 (0)