Permalink
Browse files

Meta: Build ES2016 in a subfolder.

1 parent 6af9c9e commit 322dd9e19209f97f74ece06f68dbfd75a8e8d814 @bterlson bterlson committed Mar 2, 2016
Showing with 5 additions and 2 deletions.
  1. +4 −1 package.json
  2. +1 −1 scripts/auto-deploy.sh
View
@@ -4,7 +4,10 @@
"version": "1.0.0",
"description": "The ECMAScript specification",
"scripts": {
- "build": "npm run clean && mkdir out && cp -R img out && ecmarkup --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
+ "build-es2016": "git remote remove origin && git remote add origin \"git@github.com:$TRAVIS_REPO_SLUG.git\" && git fetch --quiet origin && git checkout --quiet es2016 && mkdir \"out/2016\" && cp -R img \"out/2016\" && ecmarkup --verbose spec.html out/2016/index.html --css out/2016/ecmarkup.css --js out/2016/ecmarkup.js && git checkout --quiet test-travis",
+ "build-master": "mkdir out && cp -R img out && ecmarkup --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
+ "build": "npm run clean && npm run build-master",
+ "build-travis": "npm run clean && npm run build-master && npm run build-es2016",
"clean": "rm -rf out",
"test": "exit 0",
"watch": "npm run clean && mkdir out && cp -R img out && ecmarkup --watch --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js"
@@ -24,7 +24,7 @@ echo " IdentityFile ~/.ssh/$PRIVATE_KEY_FILE_NAME" >> ~/.ssh/config
# Update the content from the `gh-pages` branch
-$(npm bin)/update-branch --commands "npm run build" \
+$(npm bin)/update-branch --commands "npm run build-travis" \
--commit-message "Update gh-pages [skip ci]" \
--directory "out" \
--distribution-branch "gh-pages" \

0 comments on commit 322dd9e

Please sign in to comment.