Skip to content

Commit af6d474

Browse files
committed
add shortcut npm scripts
1 parent 45e651a commit af6d474

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
working-directory: main
4646
run: |-
4747
npm ci
48-
npm run create-api-pages
49-
npm run docs:build
48+
npm run book:build
5049
- name: Upload artifact
5150
uses: actions/upload-pages-artifact@v2
5251
with:

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"create-api-pages": "npx tsc && node dist/book",
9-
"docs:dev": "vitepress dev docs",
10-
"docs:build": "vitepress build docs",
11-
"docs:preview": "vitepress preview docs"
9+
"vp:dev": "vitepress dev docs",
10+
"vp:build": "vitepress build docs",
11+
"vp:preview": "vitepress preview docs",
12+
"book:dev": "npm run create-api-pages && npm run vp:dev",
13+
"book:build": "npm run create-api-pages && npm run vp:build",
14+
"book:preview": "npm run create-api-pages && npm run vp:preview"
1215
},
1316
"keywords": [
1417
"edopro",

0 commit comments

Comments
 (0)