-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
60 lines (51 loc) · 1.45 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
# REPORTER = progress
# REPORTER = list
# REPORTER = spec
# REPORTER = dot
test-full:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/coffeelint test/* scripts/* lib/* index.coffee \
&& ./node_modules/.bin/istanbul report
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter dot \
--ui tdd
test-spec:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter spec \
--ui tdd
test-w:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--reporter min \
--ui tdd \
--watch
test-coverage:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/istanbul report lcovonly
test-cov:
@NODE_ENV=test ./node_modules/.bin/mocha \
--compilers coffee:coffee-script \
--require ./coffee-coverage.js \
--reporter dot \
--ui tdd \
&& ./node_modules/.bin/istanbul report
lint:
@NODE_ENV=test ./node_modules/.bin/coffeelint test/* scripts/* lib/* index.coffee
sloc:
@NODE_ENV=test ./node_modules/.bin/sloc --details \
--format cli-table \
--keys total,source,comment \
--exclude i18n*.\.coffee \
scripts/ lib/ test/
.PHONY: test test-spec test-w test-coverage test-cov test-full lint sloc