Skip to content

Commit fb5ba37

Browse files
committed
Add Makefile.
1 parent 56e9d06 commit fb5ba37

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Makefile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
NODE_OPTS =
2+
TEST_OPTS =
3+
4+
love:
5+
@echo "Feel like makin' love."
6+
7+
test:
8+
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
9+
10+
spec:
11+
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
12+
13+
autotest:
14+
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
15+
16+
autospec:
17+
@node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
18+
19+
pack:
20+
@file=$$(npm pack); echo "$$file"; tar tf "$$file"
21+
22+
publish:
23+
npm publish
24+
25+
tag:
26+
git tag "v$$(node -e 'console.log(require("./package").version)')"
27+
28+
clean:
29+
rm -f *.tgz
30+
npm prune --production
31+
32+
.PHONY: love
33+
.PHONY: test spec autotest autospec
34+
.PHONY: pack publish tag
35+
.PHONY: clean

0 commit comments

Comments
 (0)