Improved asset manifest file change handling in Gulpfile.js.

Code now only restarts watchers for the asset groups in the changed asset manifest file, rather than *all* asset groups. The "build" task now forces rebuild of a given asset group if its asset manifest file is newer than its concatenated output. Refactored and cleaned up the code.
This commit is contained in:
Daniel Stolt
2015-09-16 16:56:51 +02:00
parent 40071a6050
commit b011594be6
6 changed files with 38 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
{
"private": true,
"devDependencies": {
"fs": "^0.0.2",
"glob": "^5.0.14",
"path-posix": "^1.0.0",
"merge-stream": "^0.1.8",
@@ -16,8 +17,7 @@
"gulp-uglify": "^1.2.0",
"gulp-rename": "^1.2.2",
"gulp-concat": "^2.5.2",
"gulp-header": "^1.2.2",
"fs": "^0.0.2"
"gulp-header": "^1.2.2"
},
"dependencies": { }
}