forked from Gottox/terminal.js
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
46 lines (38 loc) · 933 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
REPORTER = dot
MOCHA ?= ./node_modules/.bin/mocha
JSCOVERAGE ?= ./node_modules/.bin/jscoverage
JSHINT ?= ./node_modules/.bin/jshint
UGLIFYJS ?= ./node_modules/.bin/uglifyjs
all: lint test
test: .FORCE
@echo "MOCHA test"
@$(MOCHA) \
--reporter $(REPORTER) \
--growl \
$(TESTS)
test-watch:
@echo "MOCHA test"
@$(MOCHA) \
--reporter $(REPORTER) \
--growl -w\
$(TESTS)
coverage: .FORCE
@echo visit file://$$PWD/coverage.html
@COVERAGE=1 $(MOCHA) \
--reporter html-cov \
$(TESTS) > coverage.html || true
lib-cov: .FORCE
@echo "JSCOVERAGE $@"
@$(JSCOVERAGE) lib $@
@echo "SED index-cov.js"
@sed "s#lib/#lib-cov/#" index.js > index-cov.js
lint:
@echo "LINT lib index.js"
@$(JSHINT) lib index.js
@echo "LINT test"
@$(JSHINT) test/*.js
@echo "LINT examples"
@$(JSHINT) examples/*/*.js
torture:
@node samples/ansi_rendering/app.js samples/data/vt100test.txt
.FORCE: