Browse Source

Gulp Speed Up... a bit

Sebastien Vandenberghe 7 năm trước cách đây
mục cha
commit
ea69bcaa9d
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Tools/Gulp/gulpfile.js

+ 6 - 0
Tools/Gulp/gulpfile.js

@@ -226,7 +226,13 @@ gulp.task("build", ["shaders"], function () {
 /*
 * Compiles all typescript files and creating a js and a declaration file.
 */
+var alreadyCompiled = false;
 gulp.task("typescript-compile", function () {
+    if (alreadyCompiled) {
+        return;
+    }
+    alreadyCompiled = true;
+
     var tsResult = gulp.src(config.typescript)
         .pipe(sourcemaps.init())
         .pipe(tsProject());