scratch-vm/Makefile

35 lines
816 B
Makefile
Raw Normal View History

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
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
serve:
$(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./
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
# ------------------------------------------------------------------------------
.PHONY: build lint test coverage benchmark serve