File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -x -e
3
- cd ..
4
3
5
4
# Ensure clean dist dir
6
5
[ -d docs-dist ] && rm -frv docs-dist
@@ -9,10 +8,6 @@ mkdir -p docs-dist
9
8
# Gen docs
10
9
yarn docs-gen
11
10
12
- # Prepare git
13
- # git config --global user.email "pooya@pi0.ir"
14
- # git config --global user.name "bootstrap-vue-bot"
15
-
16
11
# Fetch gh-pages
17
12
cd docs-dist
18
13
git init
@@ -21,6 +16,5 @@ git fetch origin
21
16
22
17
# Commit new docs
23
18
git add --all
24
- # git commit -m "Published by CI"
25
19
git commit -m " Update Docs"
26
20
git push -ff origin master
Original file line number Diff line number Diff line change 51
51
"watch:extra" : " rollup -c build/rollup.extra.config.js --watch" ,
52
52
"docs-dev" : " nuxt dev" ,
53
53
"docs-gen" : " nuxt generate" ,
54
- "docs-build" : " nuxt build" ,
55
- "test:jest" : " jest" ,
56
- "test" : " npm run test:jest"
54
+ "docs-publish" : " ./build/gh-pages" ,
55
+ "test" : " jest" ,
56
+ "prepublish" : " npm run build && npm run test" ,
57
+ "postpublish" : " npm run docs-publish"
57
58
},
58
59
"dependencies" : {
59
60
"bootstrap" : " ^4.0.0-alpha.6" ,
You can’t perform that action at this time.
0 commit comments