-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
59 lines (48 loc) · 1.11 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
TESTS = $(shell ls -S `find test -type f -name "*.test.js" -print`)
REGISTRY = http://registry.npmjs.com
REPORTER = spec
TIMEOUT = 3000
MOCHA_OPTS =
engine-test:
@DEBUG=* isNotWebstorm=true node --harmony ./engine/run.js
start:
@node --harmony ./start.js
server:
@node --harmony ./server.js
install:
@npm install \
--registry=$(REGISTRY)
jshint:
@./node_modules/.bin/jshint .
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--harmony \
--bail \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
--require co-mocha \
$(MOCHA_OPTS) \
$(TESTS)
test-cov cov:
@NODE_ENV=test node --harmony \
node_modules/.bin/istanbul cover --preserve-comments \
./node_modules/.bin/_mocha \
-- -u exports \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
--require should \
--require co-mocha \
$(MOCHA_OPTS) \
$(TESTS)
test-all: install jshint test cov
clean:
@rm -rf node_modules
@rm -rf coverage
autod: install
@./node_modules/.bin/autod \
--registry=$(REGISTRY) \
-w \
-f "~"
@$(MAKE) install
.PHONY: engine-test start server install test test-all test-cov cov clean autod