Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (27 sloc) 903 Bytes
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