Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit 12e898f

Browse files
author
f3ltron
committed
fix: 🐛 package.json modification
1 parent 7032204 commit 12e898f

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"packages:reset": "lerna exec -- npx rimraf ./node_modules",
2323
"packages:remove": "lerna exec -- yarn remove",
2424
"release": "cross-env HUSKY_BYPASS=true lerna publish from-git --yes",
25-
"commit": "npx git-cz"
25+
"commit": "npx git-cz",
26+
"deploy:docs": "node scripts/docs-deploy.sh"
2627
},
2728
"bugs": {
2829
"url": "https://github.com/f3ltron/vuepress-plugin-docgen/issues"

Diff for: scripts/docs-deploy.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
cd packages/docs
7+
8+
# build
9+
yarn run docs:build
10+
11+
# navigate into the build output directory
12+
cd docs/.vuepress/dist
13+
14+
# if you are deploying to a custom domain
15+
# echo 'www.example.com' > CNAME
16+
17+
git init
18+
git add -A
19+
git commit -m 'deploy'
20+
21+
# if you are deploying to https://<USERNAME>.github.io
22+
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master
23+
24+
# if you are deploying to https://<USERNAME>.github.io/<REPO>
25+
git push -f https://github.com/f3ltron/vuepress-plugin-docgen.git master:gh-pages
26+
27+
cd -

0 commit comments

Comments
 (0)