소스 검색

Fix intellisense generation

David Catuhe 7 년 전
부모
커밋
8f6ac8a8af
2개의 변경된 파일3080개의 추가작업 그리고 2850개의 파일을 삭제
  1. 3074 2843
      Playground/babylon.d.txt
  2. 6 7
      Tools/Gulp/gulpfile.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3074 - 2843
Playground/babylon.d.txt


+ 6 - 7
Tools/Gulp/gulpfile.js

@@ -589,13 +589,12 @@ gulp.task("watch", ["srcTscWatch"], function () {
 
 gulp.task("intellisense", function () {
     gulp.src(config.build.intellisenseSources)
-        .pipe(concat(config.build.intellisenseFile))
-        .pipe(replace(/^\s*_.*?$/gm, ""))
-        .pipe(replace(/^\s*private .*?$/gm, ""))
-        .pipe(replace(/^\s*public _.*?$/gm, ""))
-        .pipe(replace(/^\s*protected .*?$/gm, ""))
-        .pipe(replace(/^\s*public static _.*?$/gm, ""))
-        .pipe(replace(/^\s*static _.*?$/gm, ""))
+        .pipe(concat(config.build.intellisenseFile))    
+        .pipe(replace(/^\s+_.*?;/gm, ""))
+        .pipe(replace(/^\s+_[\S\s]*?}/gm, ""))
+        .pipe(replace(/^\s*readonly _/gm, "protected readonly _"))
+        .pipe(replace(/^\s*static _/gm, "private static _"))
+        .pipe(replace(/^\s*abstract _/gm, ""))
         .pipe(gulp.dest(config.build.playgroundDirectory));
 });