-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
75 lines (51 loc) · 1.25 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
CS=node_modules/coffee-script/bin/coffee
MVERSION=node_modules/mversion/bin/version
VERSION=`$(MVERSION) | sed -E 's/\* package.json: //g'`
ISTANBUL=node_modules/istanbul/lib/cli.js
MOCHA=node_modules/mocha/bin/mocha
_MOCHA=node_modules/mocha/bin/_mocha
COVERALLS=node_modules/coveralls/bin/coveralls.js
setup:
@npm install
watch:
@$(CS) -bwmco lib src
build:
@$(CS) -bcmo lib src
test: build
@$(MOCHA) --compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
--recursive \
tests/unit
test.coverage: build
@$(ISTANBUL) cover $(_MOCHA) -- \
--compilers coffee:coffee-script \
--ui bdd \
--reporter spec \
--recursive \
tests/unit
test.coverage.preview: test.coverage
@cd coverage/lcov-report && python -m SimpleHTTPServer 8080
test.coverage.coveralls: test.coverage
@sed -i.bak \
"s/^.*polvo-html\/lib/SF:lib/g" \
coverage/lcov.info
@cat coverage/lcov.info | $(COVERALLS)
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