瀏覽代碼

Gulp Speed Up... a bit

Sebastien Vandenberghe 7 年之前
父節點
當前提交
ea69bcaa9d
共有 1 個文件被更改,包括 6 次插入0 次删除
  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());