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
|
2016-06-21 14:42:24 -04:00
|
|
|
WEBPACK_DEV_SERVER=./node_modules/.bin/webpack-dev-server
|
2016-04-18 17:20:30 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
build:
|
|
|
|
$(WEBPACK)
|
|
|
|
|
|
|
|
watch:
|
|
|
|
$(WEBPACK) --watch
|
2016-04-08 13:10:37 -04:00
|
|
|
|
2016-06-21 14:42:24 -04:00
|
|
|
serve:
|
2016-07-14 13:22:11 -04:00
|
|
|
$(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./
|
2016-06-21 14:42:24 -04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
2016-04-18 17:20:30 -04:00
|
|
|
.PHONY: build lint test coverage benchmark
|