forked from stefanoortisi/the-pivot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (39 loc) · 906 Bytes
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
POLVO=node_modules/polvo/bin/polvo
CS=node_modules/coffee-script/bin/coffee
MOCHA=node_modules/mocha/bin/mocha
COVERALLS=node_modules/coveralls/bin/coveralls.js
MVERSION=node_modules/mversion/bin/version
VERSION=0.2.2
setup:
npm install
bower install
watch:
@$(CS) -bwo lib src
build:
@$(CS) -bco lib src
bump.minor:
@$(MVERSION) minor
bump.major:
@$(MVERSION) major
bump.patch:
@$(MVERSION) patch
publish:
git tag $(VERSION)
git push origin $(VERSION)
git push origin master
npm publish
re-publish:
git tag -d $(VERSION)
git tag $(VERSION)
git push origin :$(VERSION)
git push origin $(VERSION)
git push origin master -f
npm publish -f
# TEST
# ------------------------------------------------------------------------------
test: build
@$(MOCHA) --compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
--timeout 600000 \
test/runner.coffee --env='local'