Explorar o código

Gulp watch shaders

sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
d847098cf5

+ 2 - 3
Tools/Gulp/tasks/gulpTasks-watchCore.js

@@ -62,21 +62,20 @@ gulp.task("watchCore", gulp.series("watchCore-cleanShaders", function() {
         console.log(library.output + ": Shaders.");
     })
     watch.on("add", (event) => {
-        console.log(event);
         return gulp.src(event)
             .pipe(uncommentShaders())
             .pipe(processShaders(true));
     });
     watch.on("change", (event) => {
-        console.log(event);
         return gulp.src(event)
             .pipe(uncommentShaders())
             .pipe(processShaders(true));
     });
     watch.on("unlink", (event) => {
-        console.log(event);
         return gulp.src(event)
             .pipe(uncommentShaders())
             .pipe(processShaders(true));
     });
+
+    return Promise.resolve();
 }));

+ 6 - 9
Tools/Gulp/tasks/gulpTasks-watchLibraries.js

@@ -59,22 +59,19 @@ gulp.task("watchLibraries", function startWatch() {
                     console.log(library.output + ": Shaders.");
                 })
                 watch.on("add", (event) => {
-                    console.log(event);
                     return gulp.src(event)
-                    .pipe(uncommentShaders())
-                    .pipe(processShaders(false));
+                        .pipe(uncommentShaders())
+                        .pipe(processShaders(false));
                 });
                 watch.on("change", (event) => {
-                    console.log(event);
                     return gulp.src(event)
-                    .pipe(uncommentShaders())
-                    .pipe(processShaders(false));
+                        .pipe(uncommentShaders())
+                        .pipe(processShaders(false));
                 });
                 watch.on("unlink", (event) => {
-                    console.log(event);
                     return gulp.src(event)
-                    .pipe(uncommentShaders())
-                    .pipe(processShaders(false));
+                        .pipe(uncommentShaders())
+                        .pipe(processShaders(false));
                 });
 
                 tasks.push(watch);