summaryrefslogtreecommitdiff
path: root/client/package.json
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2017-01-07 16:08:37 +0100
committerrr- <rr-@sakuya.pl>2017-01-08 10:25:29 +0100
commitdf663e7b35d3c4f0d9da6de7a8f77d54cd69310a (patch)
treedd8cfc5affca53effbcf1351818c4dc6a5629ceb /client/package.json
parent5bf3d5da44f9a60b826a963e20abc470703f5ef9 (diff)
client/build: ditch watch
This shit has been always triggering 150 times for every single changed file; now it simply doesn't fucking work.
Diffstat (limited to 'client/package.json')
-rw-r--r--client/package.json5
1 files changed, 1 insertions, 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"
}
}