mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
6b1d2a8eb6
Now that we don't rely on node_modules, we can update the content base to just `playground` and just look at it from http://localhost:8080/
34 lines
783 B
Makefile
34 lines
783 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)
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
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
|