소스 검색

Gulp Speed Up... a bit

Sebastien Vandenberghe 8 년 전
부모
커밋
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());