Skip to content

Commit 0551425

Browse files
chore(build): create a better 'watch' npm script
1 parent 724c902 commit 0551425

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps",
44
"version": "1.0.1",
55
"scripts": {
6-
"test": "karma start karma.conf.js",
7-
"debug": "karma start karma.conf.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
86
"clean": "shx rm -rf lib lib-esm",
97
"build": "npm run clean && tsc && tsc -p tsconfig.esm.json",
8+
"test": "karma start",
9+
"watch": "run-p watch:*",
10+
"watch:buildjs": "tsc -w",
11+
"watch:test": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1",
12+
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
1013
"prepublish": "npm run build"
1114
},
1215
"homepage": "https://ui-router.github.io",
@@ -62,6 +65,7 @@
6265
"karma-phantomjs-launcher": "^1.0.2",
6366
"karma-script-launcher": "~0.1.0",
6467
"karma-systemjs": "^0.7.2",
68+
"npm-run-all": "^3.1.1",
6569
"readline-sync": "^1.4.4",
6670
"shelljs": "^0.7.0",
6771
"shx": "^0.1.4",

0 commit comments

Comments
 (0)