2016-04-08 13:10:37 -04:00
|
|
|
ESLINT=./node_modules/.bin/eslint
|
|
|
|
NODE=node
|
|
|
|
TAP=./node_modules/.bin/tap
|
2016-04-18 17:20:30 -04:00
|
|
|
WEBPACK=./node_modules/.bin/webpack --progress --colors
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
build:
|
|
|
|
$(WEBPACK)
|
|
|
|
|
|
|
|
watch:
|
|
|
|
$(WEBPACK) --watch
|
2016-04-08 13:10:37 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
lint:
|
2016-04-18 17:20:30 -04:00
|
|
|
$(ESLINT) ./src/*.js
|
|
|
|
$(ESLINT) ./src/**/*.js
|
2016-04-08 13:10:37 -04:00
|
|
|
$(ESLINT) ./test/**/*.js
|
|
|
|
|
|
|
|
test:
|
|
|
|
@make lint
|
|
|
|
$(TAP) ./test/{unit,integration}/*.js
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
$(TAP) ./test/{unit,integration}/*.js --coverage --coverage-report=lcov
|
|
|
|
|
|
|
|
benchmark:
|
|
|
|
$(NODE) ./test/benchmark/performance.js
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2016-04-18 17:20:30 -04:00
|
|
|
.PHONY: build lint test coverage benchmark
|