mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
34 lines
816 B
Makefile
34 lines
816 B
Makefile
ESLINT=./node_modules/.bin/eslint
|
|
NODE=node
|
|
TAP=./node_modules/.bin/tap
|
|
WEBPACK=./node_modules/.bin/webpack --progress --colors
|
|
WEBPACK_DEV_SERVER=./node_modules/.bin/webpack-dev-server
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
build:
|
|
$(WEBPACK)
|
|
|
|
watch:
|
|
$(WEBPACK) --watch
|
|
|
|
serve:
|
|
$(WEBPACK_DEV_SERVER) --host 0.0.0.0 --content-base ./
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
lint:
|
|
$(ESLINT) ./src/*.js
|
|
$(ESLINT) ./src/**/*.js
|
|
$(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
|