From 5ab26df4c9b4c662548548ffb40dd3ba6333f441 Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Tue, 4 Aug 2015 11:56:53 -0700 Subject: [PATCH] [Scripts] Add script to run karma continuously Add a script (to be executed with `npm run-script watch`) that runs karma and watches for changes; rerunning tests whenever a file is changed. Useful for local development. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1216935f21..4370b80a30 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "start": "node app.js", "test": "karma start --single-run", "jshint": "jshint platform example || exit 0", - "jsdoc": "jsdoc -c jsdoc.json -r -d docs" + "jsdoc": "jsdoc -c jsdoc.json -r -d docs", + "watch": "karma start" }, "repository": { "type": "git",