File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 11.DS_Store
2- node_modules /
2+ node_modules
33npm-debug.log
44test /unit /coverage
5+ docs /.vuepress /dist
Original file line number Diff line number Diff line change 1818 "build" : " NODE_ENV=production webpack --config scripts/webpack.config.js -p --progress --hide-modules" ,
1919 "docs:dev" : " vuepress dev docs" ,
2020 "docs:build" : " vuepress build docs" ,
21+ "docs:deploy" : " bash ./scripts/deploy_docs.sh" ,
2122 "lint" : " eslint -f friendly --ext .js,.vue ./" ,
2223 "test" : " BABEL_ENV=test karma start scripts/karma.conf.js" ,
2324 "precommit" : " npm run lint" ,
Original file line number Diff line number Diff line change 1+ set -e
2+ shopt -s extglob
3+
4+ TEMP_PATH=" docs/.vuepress/.temp"
5+
6+ # build docs
7+ npm run docs:build
8+
9+ # prepare deploy
10+ mkdir $TEMP_PATH
11+ cd $TEMP_PATH
12+ git init
13+ git pull git@github.com:PeachScript/vue-infinite-loading.git gh-pages
14+ rm -rf ./! (old) # keep old version docs
15+ cp -r ../dist/* .
16+
17+ # commit and push changes
18+ git add -A
19+ git commit --am -m " deploy documentation"
20+ git push -f git@github.com:PeachScript/vue-infinite-loading.git master:gh-pages
21+
22+ # clean
23+ cd -
24+ rm -rf $TEMP_PATH
You can’t perform that action at this time.
0 commit comments