diff options
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")) |