canned
Version:
serve canned responses to mock an api, based on files in a folder
34 lines (27 loc) • 743 B
Plain Text
.PHONY: test hint default
CURRENT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
default: bootstrap hint test
bootstrap:
npm install
test:
./node_modules/.bin/jasmine-node --captureExceptions spec
cd test && ./bin_test.sh
hint:
./node_modules/.bin/jshint bin/canned index.js lib/ spec/
release: docs
-p "Version to release: " version; \
git tag -a $$version -m "version $$version release"
git push --tags
npm publish
docs:
stash
checkout gh-pages
checkout master -- README.md
"---\nlayout: index\n---" | cat - README.md > index.md
reset README.md
README.md
add index.md
-git commit -m "updated docs"
-git push origin gh-pages
checkout ${CURRENT_BRANCH}
- stash apply