publish script
This commit is contained in:
parent
451922ae99
commit
b96c175229
12
Makefile
12
Makefile
|
@ -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
|
10
README.md
10
README.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue