add sh and use it with nom

This commit is contained in:
Sergey Lapin 2015-07-24 13:09:25 +03:00
parent 18aa7d68c7
commit a48cce5439
2 changed files with 18 additions and 1 deletions

17
demo.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -o errexit # Exit on error
git stash save
git checkout gh-pages
cd examples/todomvc
webpack
git add .
if git commit -m 'rebuild todomvc bundle for demo'; then # Commit the changes, if any
echo 'Changes Committed'
if git push --force; then # Commit the changes, if any
echo 'Pushed succecfully'
fi
fi
git checkout master
git stash apply

View File

@ -11,7 +11,7 @@
"test:watch": "NODE_ENV=test mocha --compilers js:babel/register --recursive --watch",
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",
"prepublish": "npm run lint && npm run test && npm run clean && npm run build",
"demo":"git checkout gh-pages && cd examples/todomvc && webpack && cd ../../ && git add . && git commit -m \"rebuild todomvc bundle for demo\" && git push --force && git checkout master"
"demo":"bash ./demo.sh"
},
"repository": {
"type": "git",