mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-28 22:18:45 -04:00
25 lines
564 B
Makefile
25 lines
564 B
Makefile
ESLINT=./node_modules/.bin/eslint
|
|
NODE=node
|
|
TAP=./node_modules/.bin/tap
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
lint:
|
|
$(ESLINT) ./*.js
|
|
$(ESLINT) ./bin/*.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
|