diff --git a/README.md b/README.md index 680cea61..32226e1f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Redux DevTools ========================= +### [DEMO](http://gaearon.github.io/redux-devtools/) + A better README is coming. But if you insist... diff --git a/demo.sh b/demo.sh new file mode 100644 index 00000000..763d06a9 --- /dev/null +++ b/demo.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -o errexit # Exit on error + +git stash save +git checkout gh-pages +git pull --rebase origin master +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 diff --git a/package.json b/package.json index 686d8992..2f9e61e1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "test": "NODE_ENV=test mocha --compilers js:babel/register --recursive", "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" + "prepublish": "npm run lint && npm run test && npm run clean && npm run build", + "demo":"bash ./demo.sh" }, "repository": { "type": "git",