mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
30 lines
688 B
Makefile
30 lines
688 B
Makefile
ESLINT=./node_modules/.bin/eslint
|
|
NODE=node
|
|
TAP=./node_modules/.bin/tap
|
|
WEBPACK=./node_modules/.bin/webpack --progress --colors
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
build:
|
|
$(WEBPACK)
|
|
|
|
watch:
|
|
$(WEBPACK) --watch
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
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
|