Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
675 bytes
|
Line | |
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.