forked from shopsinc/imgr
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 734 Bytes
/
Makefile
File metadata and controls
46 lines (35 loc) · 734 Bytes
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
REPORTER?=dot
ifdef V
REPORTER=spec
endif
ifdef TEST
T=--grep '${TEST}'
REPORTER=list
endif
dependencies:
@npm install -s
deps: dependencies
test: check-deps
@rm -rf ./test/tmp
@./node_modules/mocha/bin/mocha \
--bail \
--reporter ${REPORTER} \
-s 200 \
-t 2000 $T
@rm -rf ./test/tmp
check: test
clean:
@rm -rf coverage
coverage: check-deps
@./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha -- -R spec
coverage-html: coverage
@open coverage/lcov-report/index.html
lint: check-deps
@./node_modules/.bin/jshint -c ./.jshintrc lib test
check-deps:
@if test ! -d node_modules; then \
echo "Installing npm dependencies.."; \
npm install -d; \
fi
.PHONY: test dependencies coverage lint