File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ # 确保脚本抛出遇到的错误
4+ set -e
5+
6+ # 生成静态文件
7+ npm run docs:build
8+
9+ # 进入生成的文件夹
10+ cd docs/.vuepress/dist
11+
12+ # 如果是发布到自定义域名
13+ # echo 'www.example.com' > CNAME
14+
15+ # git init
16+ git add -A
17+ git commit -m ' chore: deploy docs'
18+
19+ # 如果发布到 https://<USERNAME>.github.io
20+ # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
21+
22+ # 如果发布到 https://<USERNAME>.github.io/<REPO>
23+ # git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
24+
25+ cd -
Original file line number Diff line number Diff line change 1111 "changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s -r 0" ,
1212 "docs:build" : " vuepress build docs" ,
1313 "docs:dev" : " vuepress dev docs" ,
14+ "docs:deploy" : " sh deploy.sh" ,
1415 "report" : " vue-cli-service build --mode lib --target lib --name element-schema-form --dest lib --report src/index.js"
1516 },
1617 "main" : " lib/element-schema-form.umd.min.js" ,
You can’t perform that action at this time.
0 commit comments