adding watch

This commit is contained in:
Ben 2020-09-27 00:35:09 -07:00
parent 0148b7d680
commit cff21abfb0
2 changed files with 9 additions and 1 deletions

View File

@ -152,12 +152,18 @@ out/vcd.wasm: $(WASM_MAIN) $(CPP_FILES) $(HPP_FILES) Makefile
.PHONY: all build watch dev start test pretest lint jestc copydist cleandist .PHONY: all build watch dev start test pretest lint jestc copydist cleandist
.PHONY: test .PHONY: test testonly
watch:
npm run watch
test: test:
npm run test npm run test
testonly:
npm run testonly
clean: clean:
rm -rf out/* rm -rf out/*

View File

@ -5,6 +5,8 @@
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
"test": "eslint bin lib && nyc -r=text -r=lcov mocha", "test": "eslint bin lib && nyc -r=text -r=lcov mocha",
"testonly": "nyc -r=text -r=lcov mocha",
"watch": "mocha --watch",
"install": "node bin/build.js", "install": "node bin/build.js",
"prepare": "node bin/build.js" "prepare": "node bin/build.js"
}, },