From c1a50798fbf547acd8466d02ce97811106cc622a Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Fri, 9 Dec 2016 13:56:18 +0100 Subject: add watch build method --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3bcd7ea..4e98e6e 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "start": "node ./bin/www", "setup": "npm install && bower install", "build-dev": "browserify -d -t [ babelify --presets [ es2016 ] ] -e ./public/javascripts/main.js > ./public/javascripts/bundle.js", + "watch": "watchify -v -d -t [ babelify --presets [ es2016 ] ] -e ./public/javascripts/main.js -o ./public/javascripts/bundle.js", "build": "browserify -t [ babelify --presets [ es2016 ] ] -e ./public/javascripts/main.js | uglifyjs -cm > ./public/javascripts/bundle.js" }, "dependencies": { @@ -33,7 +34,8 @@ "babelify": "^7.3.0", "bower": "^1.7.9", "browserify": "^13.1.0", - "gulp": "^3.9.1" + "gulp": "^3.9.1", + "watchify": "^3.7.0" }, "author": "Noah Loomans ", "license": "MIT", -- cgit v1.1