@@ -461,9 +461,34 @@ task("lint").flags = {
461
461
" --f[iles]=<regex>" : "pattern to match files to lint" ,
462
462
} ;
463
463
464
+ const buildCancellationToken = ( ) => buildProject ( "src/cancellationToken" ) ;
465
+ const cleanCancellationToken = ( ) => cleanProject ( "src/cancellationToken" ) ;
466
+ cleanTasks . push ( cleanCancellationToken ) ;
467
+
468
+ const buildTypingsInstaller = ( ) => buildProject ( "src/typingsInstaller" ) ;
469
+ const cleanTypingsInstaller = ( ) => cleanProject ( "src/typingsInstaller" ) ;
470
+ cleanTasks . push ( cleanTypingsInstaller ) ;
471
+
472
+ const buildWatchGuard = ( ) => buildProject ( "src/watchGuard" ) ;
473
+ const cleanWatchGuard = ( ) => cleanProject ( "src/watchGuard" ) ;
474
+ cleanTasks . push ( cleanWatchGuard ) ;
475
+
476
+ const generateTypesMap = ( ) => src ( "src/server/typesMap.json" )
477
+ . pipe ( newer ( "built/local/typesMap.json" ) )
478
+ . pipe ( transform ( contents => ( JSON . parse ( contents ) , contents ) ) ) // validates typesMap.json is valid JSON
479
+ . pipe ( dest ( "built/local" ) ) ;
480
+ task ( "generate-types-map" , generateTypesMap ) ;
481
+
482
+ const cleanTypesMap = ( ) => del ( "built/local/typesMap.json" ) ;
483
+ cleanTasks . push ( cleanTypesMap ) ;
484
+
485
+ const buildOtherOutputs = parallel ( buildCancellationToken , buildTypingsInstaller , buildWatchGuard , generateTypesMap ) ;
486
+ task ( "other-outputs" , series ( preBuild , buildOtherOutputs ) ) ;
487
+ task ( "other-outputs" ) . description = "Builds miscelaneous scripts and documents distributed with the LKG" ;
488
+
464
489
const buildFoldStart = async ( ) => { if ( fold . isTravis ( ) ) console . log ( fold . start ( "build" ) ) ; } ;
465
490
const buildFoldEnd = async ( ) => { if ( fold . isTravis ( ) ) console . log ( fold . end ( "build" ) ) ; } ;
466
- task ( "local" , series ( buildFoldStart , preBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl ) , buildFoldEnd ) ) ;
491
+ task ( "local" , series ( buildFoldStart , preBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs ) , buildFoldEnd ) ) ;
467
492
task ( "local" ) . description = "Builds the full compiler and services" ;
468
493
task ( "local" ) . flags = {
469
494
" --built" : "Compile using the built version of the compiler."
@@ -639,28 +664,6 @@ const buildReleaseTsc = () => buildProject("src/tsc/tsconfig.release.json");
639
664
const cleanReleaseTsc = ( ) => cleanProject ( "src/tsc/tsconfig.release.json" ) ;
640
665
cleanTasks . push ( cleanReleaseTsc ) ;
641
666
642
- const buildCancellationToken = ( ) => buildProject ( "src/cancellationToken" ) ;
643
- const cleanCancellationToken = ( ) => cleanProject ( "src/cancellationToken" ) ;
644
- cleanTasks . push ( cleanCancellationToken ) ;
645
-
646
- const buildTypingsInstaller = ( ) => buildProject ( "src/typingsInstaller" ) ;
647
- const cleanTypingsInstaller = ( ) => cleanProject ( "src/typingsInstaller" ) ;
648
- cleanTasks . push ( cleanTypingsInstaller ) ;
649
-
650
- const buildWatchGuard = ( ) => buildProject ( "src/watchGuard" ) ;
651
- const cleanWatchGuard = ( ) => cleanProject ( "src/watchGuard" ) ;
652
- cleanTasks . push ( cleanWatchGuard ) ;
653
-
654
- // TODO(rbuckton): This task isn't triggered by any other task. Is it still needed?
655
- const generateTypesMap = ( ) => src ( "src/server/typesMap.json" )
656
- . pipe ( newer ( "built/local/typesMap.json" ) )
657
- . pipe ( transform ( contents => ( JSON . parse ( contents ) , contents ) ) ) // validates typesMap.json is valid JSON
658
- . pipe ( dest ( "built/local" ) ) ;
659
- task ( "generate-types-map" , generateTypesMap ) ;
660
-
661
- const cleanTypesMap = ( ) => del ( "built/local/typesMap.json" ) ;
662
- cleanTasks . push ( cleanTypesMap ) ;
663
-
664
667
const cleanBuilt = ( ) => del ( "built" ) ;
665
668
666
669
const produceLKG = async ( ) => {
@@ -690,7 +693,7 @@ const produceLKG = async () => {
690
693
}
691
694
} ;
692
695
693
- task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildCancellationToken , buildTypingsInstaller , buildWatchGuard , buildReleaseTsc ) , produceLKG ) ) ;
696
+ task ( "LKG" , series ( lkgPreBuild , parallel ( localize , buildTsc , buildServer , buildServices , buildLssl , buildOtherOutputs , buildReleaseTsc ) , produceLKG ) ) ;
694
697
task ( "LKG" ) . description = "Makes a new LKG out of the built js files" ;
695
698
task ( "LKG" ) . flags = {
696
699
" --built" : "Compile using the built version of the compiler." ,
0 commit comments