-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile
49 lines (34 loc) · 809 Bytes
/
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
test:
@NODE_ENV=test \
./node_modules/.bin/mocha \
--reporter spec \
$(TESTFLAGS)
test-instrument:
jscoverage lib lib-cov
test-clean-instrument:
rm -rf lib-cov
test-coverage-report:
@NODE_ENV=coverage \
./node_modules/.bin/mocha \
--reporter html-cov > test/coverage.html && \
open test/coverage.html
test-coverage: test-clean-instrument test-instrument test-coverage-report
test-watch:
@TESTFLAGS=--watch $(MAKE) test
test-browser:
open test/browser.html
dev:
./node_modules/.bin/grunt watch
dev-test:
make dev & \
make test-watch
all:
./node_modules/.bin/grunt
lint:
./node_modules/.bin/grunt jshint
build:
./node_modules/.bin/grunt build
docclean:
rm -f docs/*.{1,html}
clean: docclean test-clean-instrument test-watch test
.PHONY: test build lint test-cov docclean dev