forked from mixu/npm_lazy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (27 loc) · 903 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
TESTS += test/api.test.js
TESTS += test/lifecycle.test.js
TESTS += test/package.test.js
TESTS += test/resource.test.js
test:
ifeq ($(OS),Windows_NT)
# There is no /usr/bin/env on Windows.
node_modules\\.bin\\mocha.cmd \
--ui exports \
--reporter spec \
--slow 2000ms \
--bail \
$(TESTS)
else
# Why /usr/bin/env? Because I want stuff like nvm versions to take precedence
/usr/bin/env node ./node_modules/.bin/mocha \
--ui exports \
--reporter spec \
--slow 2000ms \
--bail \
$(TESTS)
endif
lint:
jshint . --exclude="**/node_modules"
# fixjsstyle --nojsdoc --jslint_error=all --disable=6 --max_line_length=120 --exclude_directories=node_modules -r .
gjslint --nojsdoc --jslint_error=all --disable=6 --max_line_length=120 --exclude_directories=node_modules -r .
.PHONY: test lint