diff options
author | Jose <jose@zeroc.com> | 2015-06-08 18:55:33 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-06-08 18:55:33 +0200 |
commit | b06b423ac31bb92ba1a84a1464d475f065e7b886 (patch) | |
tree | b4d09158ac7dbb8fbf93dd04ec1ad15c19894800 /js/gulpfile.js | |
parent | ICE-6571 - Update deprecated properties (diff) | |
download | ice-b06b423ac31bb92ba1a84a1464d475f065e7b886.tar.bz2 ice-b06b423ac31bb92ba1a84a1464d475f065e7b886.tar.xz ice-b06b423ac31bb92ba1a84a1464d475f065e7b886.zip |
Fix JS gulp clean to remove dependency files
Diffstat (limited to 'js/gulpfile.js')
-rw-r--r-- | js/gulpfile.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js index da25f1c079c..594c5251832 100644 --- a/js/gulpfile.js +++ b/js/gulpfile.js @@ -106,7 +106,7 @@ gulp.task("common:slice", [], gulp.task("common:slice:clean", [], function(){ - del(["test/Common/Controller.js"]); + del(["test/Common/Controller.js", "test/Common/.depend"]); }); gulp.task("common:slice:watch", ["common:slice"], @@ -171,6 +171,7 @@ gulp.task("common:clean", [], function testTask(name) { return name.replace("/", "_"); } function testWatchTask(name) { return testTask(name) + ":watch"; } +function testCleanDependTask(name) { return testTask(name) + "-depend:clean"; } function testCleanTask(name) { return testTask(name) + ":clean"; } function testHtmlTask(name) { return testTask(name) + ":html"; } function testHtmlCleanTask(name) { return testTask(name) + ":html:clean"; } @@ -222,7 +223,13 @@ tests.forEach( function(e){ browserSync.reload(e.path); }); }); - gulp.task(testCleanTask(name), [], + gulp.task(testCleanDependTask(name), [], + function(){ + return gulp.src(path.join(name, ".depend")) + .pipe(paths(del)); + }); + + gulp.task(testCleanTask(name), [testCleanDependTask(name)], function(){ return gulp.src(path.join(name, "*.ice")) .pipe(extreplace(".js")) |