From 60442b84d2cc6ff9eba589b7f4f09112df4fc6b4 Mon Sep 17 00:00:00 2001 From: Stefan Hayden Date: Tue, 25 Oct 2016 02:19:54 -0400 Subject: [PATCH] simple way to watch for changes to trigger a build (#3372) --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2cbcf520d7e..0c59694ff4d 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "license": "MIT", "scripts": { "build": "node build.js modules=ALL exclude=json,gestures", + "build:watch": "onchange 'src/**/**' 'test/**/**' 'HEADER.js' 'lib/**/**' -- npm run build", "build_with_gestures": "node build.js modules=ALL exclude=json", "test": "node test.js", "lint": "eslint --config .eslintrc.json src", @@ -53,7 +54,8 @@ "uglify-js": "2.7.x", "eslint": "2.x.x", "qunit": "0.9.x", - "istanbul": "0.4.x" + "istanbul": "0.4.x", + "onchange": "^3.0.2" }, "engines": { "node": ">=0.4.0"