UNPKG

675 BPlain TextView Raw
1NODE_OPTS =
2TEST_OPTS =
3
4love:
5 @echo "Feel like makin' love."
6
7test:
8 @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
9
10spec:
11 @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
12
13autotest:
14 @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
15
16autospec:
17 @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
18
19pack:
20 @file=$$(npm pack); echo "$$file"; tar tf "$$file"
21
22publish:
23 npm publish
24
25tag:
26 git tag "v$$(node -e 'console.log(require("./package").version)')"
27
28clean:
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