publish script

This commit is contained in:
Radek Stepan 2013-10-16 12:10:53 +01:00
parent 451922ae99
commit b96c175229
2 changed files with 22 additions and 0 deletions

View File

@ -1,4 +1,16 @@
test:
./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail
publish:
git checkout gh-pages
git show master:build/build.js > build.js
git show master:build/build.css > build.css
git add .
@status=$$(git status --porcelain); \
if ! test "x$${status}" = x; then \
git commit -m 'publish latest build to gh-pages'; \
git push -u origin gh-pages; \
fi
git checkout master
.PHONY: test

View File

@ -99,6 +99,16 @@ $ npm install apps-b-builder -g
$ apps-b build ./src/ ./build/
```
##Publish It
If you would like to track changes to build files in `gh-pages` branch, execute the following command:
```bash
$ make publish
```
It will checkout the `gh-pages` branch, copy the two build files from master and provided we have changed them locally, make a commit a push them to remote.
##Test It
```bash