-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 743 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.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
@read -p "Version to release: " version; \
git tag -a $$version -m "version $$version release"
git push --tags
npm publish
docs:
@git stash
@git checkout gh-pages
@git checkout master -- README.md
@echo "---\nlayout: index\n---" | cat - README.md > index.md
@git reset README.md
@rm README.md
@git add index.md
-git commit -m "updated docs"
-git push origin gh-pages
@git checkout ${CURRENT_BRANCH}
-@git stash apply