From 9948c226d6ae2194dfb2eccad3dd42140b698609 Mon Sep 17 00:00:00 2001 From: skratchdot Date: Sat, 27 Aug 2016 13:44:59 -0400 Subject: [PATCH] adding `npm run watch` --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e3a217..1ad8f00 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,11 @@ "cover": "nyc npm test", "coveralls": "cat coverage/lcov.info | coveralls --verbose", "lint": "eslint *.js", + "prepublish": "npm-run-all lint test", "test": "mocha test.js", - "prepublish": "npm-run-all lint test" + "watch": "npm-run-all clean --parallel watch:test watch:lint", + "watch:lint": "watch 'npm run lint' .", + "watch:test": "npm run test -- -w" }, "author": "skratchdot", "license": "MIT",