From df663e7b35d3c4f0d9da6de7a8f77d54cd69310a Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 7 Jan 2017 16:08:37 +0100 Subject: [PATCH] client/build: ditch watch This shit has been always triggering 150 times for every single changed file; now it simply doesn't fucking work. --- client/package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/package.json b/client/package.json index fa5d78b..add6de7 100644 --- a/client/package.json +++ b/client/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "build": "node build.js", - "watch": "watch 'npm run build -- --no-vendor-js' html js css img --wait=1 --interval=0.5 --ignoreDotFiles" + "watch": "c1=\"\";while :;do c2=$(find html js css img -type f -and -not -iname '*autogen*'|sort|xargs cat|md5sum);[[ $c1 != $c2 ]]&&npm run build -- --no-vendor-js;c1=$c2;sleep 1;done" }, "dependencies": { "babel-polyfill": "^6.7.4", @@ -27,8 +27,5 @@ "superagent": "^1.8.3", "uglify-js": "git://github.com/mishoo/UglifyJS2.git#harmony", "underscore": "^1.8.3" - }, - "devDependencies": { - "watch": "latest" } }