/
Makefile
35 lines (31 loc) · 845 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
TESTS += test/*.test.js
TESTS += test/list-tasks/*.test.js
test:
@mocha \
--ui exports \
--reporter spec \
--slow 2000ms \
--bail \
$(TESTS)
@echo "Note: you need to go run npm install in ./test to install the test dependencies..."
@echo "You also need uglifyjs and jade as global modules"
.PHONY: test lint
# Note: use latest gjslint e.g 2.3.13
lint:
jshint .
gjslint \
--nojsdoc \
--jslint_error=all \
--disable=6 \
--max_line_length=120 \
--custom_jsdoc_tags=api \
--exclude_directories=node_modules,lib/runner/package-commonjs/resources,test \
--max_line_length=120 --disable=0131,300,2,1,6 \
-r .
test-lint:
./bin/gluejs \
--no-cache \
--include ./lib \
--basepath ./ \
--out ./test/tmp/lint.js
gjslint --nojsdoc --custom_jsdoc_tags=api --max_line_length=120 --disable=0131,300,2,1,6 ./test/tmp/lint.js