Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 9785484

Browse files
marioneblKnisterPeter
authored andcommitted
chore: add start and test:watch run-scripts
* add `start` run-script aliasing `test:watch` * use `chokidar-cli` to enable simultaneous source and test watching
1 parent 20f7e30 commit 9785484

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
"index.js.map"
1414
],
1515
"scripts": {
16+
"start": "npm run test:watch",
1617
"clean": "rm -f index.js index.js.map tests/*.js tests/*.js.map",
1718
"prebuild": "npm run clean",
1819
"build": "tsc --sourceMap",
1920
"pretest": "tsc --inlineSourceMap",
2021
"test": "mocha --compilers js:babel-register 'tests/**/*-test.js'",
22+
"test:watch": "chokidar --initial \"index.ts\" -c \"npm run test -- --watch\"",
2123
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
2224
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w",
2325
"preversion": "npm test",
@@ -39,6 +41,7 @@
3941
"babel-preset-es2015": "6.6.0",
4042
"babel-register": "6.6.5",
4143
"chai": "3.5.0",
44+
"chokidar-cli": "1.2.0",
4245
"coveralls": "2.11.9",
4346
"cz-conventional-changelog": "1.1.5",
4447
"in-publish": "2.0.0",

0 commit comments

Comments
 (0)