Skip to content

Commit

Permalink
chore(package.json): rename docgen to publish_docs, add build_docs sc…
Browse files Browse the repository at this point in the history
…ript

Renamed npm script build_docs => publish_docs, because that's what it actually does, and renamed
docgen.sh to publish_docs.sh. Then, made npm script build_docs that simply builds the docs webpage,
without publishing.
  • Loading branch information
staltz authored and kwonoj committed Feb 20, 2016
1 parent 1a143ea commit 6e42174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"build_perf": "npm run build_cjs && npm run build_global && webdriver-manager update && npm run perf",
"build_test": "rm -rf dist/ && npm run lint && npm run build_cjs && jasmine",
"build_cover": "rm -rf dist/ && npm run lint && npm run build_cjs && npm run cover",
"build_docs": "./docgen.sh",
"build_docs": "npm run build_es6 && npm run tests2png && esdoc -c esdoc.json",
"publish_docs": "./publish_docs.sh",
"lint_perf": "eslint perf/",
"lint_spec": "eslint spec/",
"lint_src": "tslint -c tslint.json src/*.ts src/**/*.ts src/**/**/*.ts",
Expand Down
6 changes: 2 additions & 4 deletions docgen.sh → publish_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
# WARNING: Do NOT run this script unless you have remote `upstream` set properly
#
rm -rf tmp/docs
npm run build_es6
npm run tests2png
./node_modules/.bin/esdoc -c esdoc.json
npm run build_docs
git checkout gh-pages
git fetch upstream
git rebase upstream/gh-pages
cp -r ./tmp/docs/ ./
rm -rf tmp/
git add .
git commit -am "docs generated automatically"
git push upstream gh-pages
git push upstream gh-pages

0 comments on commit 6e42174

Please sign in to comment.