From 0551425e1620485a9d88862f0735cacb89ed92a1 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 26 Oct 2016 18:55:41 -0500 Subject: [PATCH] chore(build): create a better 'watch' npm script --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5282f9d2..5fd24353 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,13 @@ "description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps", "version": "1.0.1", "scripts": { - "test": "karma start karma.conf.js", - "debug": "karma start karma.conf.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1", "clean": "shx rm -rf lib lib-esm", "build": "npm run clean && tsc && tsc -p tsconfig.esm.json", + "test": "karma start", + "watch": "run-p watch:*", + "watch:buildjs": "tsc -w", + "watch:test": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1", + "debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome", "prepublish": "npm run build" }, "homepage": "https://ui-router.github.io", @@ -62,6 +65,7 @@ "karma-phantomjs-launcher": "^1.0.2", "karma-script-launcher": "~0.1.0", "karma-systemjs": "^0.7.2", + "npm-run-all": "^3.1.1", "readline-sync": "^1.4.4", "shelljs": "^0.7.0", "shx": "^0.1.4",