mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
24 lines
542 B
Makefile
24 lines
542 B
Makefile
ESLINT=./node_modules/.bin/eslint
|
|
NODE=node
|
|
TAP=./node_modules/.bin/tap
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
lint:
|
|
$(ESLINT) ./*.js
|
|
$(ESLINT) ./lib/*.js
|
|
$(ESLINT) ./test/**/*.js
|
|
|
|
test:
|
|
@make lint
|
|
$(TAP) ./test/{unit,integration}/*.js
|
|
|
|
coverage:
|
|
$(TAP) ./test/{unit,integration}/*.js --coverage --coverage-report=lcov
|
|
|
|
benchmark:
|
|
$(NODE) ./test/benchmark/performance.js
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
.PHONY: lint test coverage benchmark
|