@@ -12,10 +12,9 @@ const merge2 = require("merge2");
12
12
const mkdirp = require ( "mkdirp" ) ;
13
13
const { src, dest, task, parallel, series, watch } = require ( "gulp" ) ;
14
14
const { append, transform } = require ( "gulp-insert" ) ;
15
- const { browserify } = require ( "./scripts/build/browserify" ) ;
16
15
const { prependFile } = require ( "./scripts/build/prepend" ) ;
17
16
const { exec, readJson, needsUpdate, getDiffTool, getDirSize, flatten, rm } = require ( "./scripts/build/utils" ) ;
18
- const { runConsoleTests, cleanTestDirs , writeTestConfigFile , refBaseline, localBaseline, refRwcBaseline, localRwcBaseline } = require ( "./scripts/build/tests" ) ;
17
+ const { runConsoleTests, refBaseline, localBaseline, refRwcBaseline, localRwcBaseline } = require ( "./scripts/build/tests" ) ;
19
18
const { buildProject, cleanProject, watchProject } = require ( "./scripts/build/projects" ) ;
20
19
const cmdLineOptions = require ( "./scripts/build/options" ) ;
21
20
@@ -454,44 +453,6 @@ task("runtests-parallel").flags = {
454
453
" --built" : "Compile using the built version of the compiler." ,
455
454
} ;
456
455
457
- const buildWebTestServer = ( ) => buildProject ( "tests/webTestServer.tsconfig.json" ) ;
458
- const cleanWebTestServer = ( ) => cleanProject ( "tests/webTestServer.tsconfig.json" ) ;
459
- cleanTasks . push ( cleanWebTestServer ) ;
460
-
461
- const browserifyTests = ( ) => src ( [ "built/local/run.js" ] , { base : "built/local" } )
462
- . pipe ( newer ( "built/local/bundle.js" ) )
463
- . pipe ( sourcemaps . init ( { loadMaps : true } ) )
464
- . pipe ( browserify ( ) )
465
- . pipe ( rename ( "bundle.js" ) )
466
- . pipe ( sourcemaps . write ( "." , /**@type {* }*/ ( { includeContent : false , destPath : "built/local" } ) ) )
467
- . pipe ( dest ( "built/local" ) ) ;
468
-
469
- const runtestsBrowser = async ( ) => {
470
- await cleanTestDirs ( ) ;
471
- const { tests, runners, light } = cmdLineOptions ;
472
- const testConfigFile = "test.config" ;
473
- await del ( [ testConfigFile ] ) ;
474
- if ( tests || runners || light ) {
475
- writeTestConfigFile ( tests , runners , light ) ;
476
- }
477
- const args = [ "tests/webTestServer.js" ] ;
478
- if ( cmdLineOptions . browser ) {
479
- args . push ( cmdLineOptions . browser ) ;
480
- }
481
- if ( tests ) {
482
- args . push ( JSON . stringify ( tests ) ) ;
483
- }
484
- await exec ( process . execPath , args ) ;
485
- } ;
486
-
487
- task ( "runtests-browser" , series ( preBuild , parallel ( buildTests , buildServices , buildLssl , buildWebTestServer ) , browserifyTests , runtestsBrowser ) ) ;
488
- task ( "runtests-browser" ) . description = "Runs the tests using the built run.js file like 'gulp runtests'." ;
489
- task ( "runtests-browser" ) . flags = {
490
- "-t --tests=<regex>" : "pattern for tests to run" ,
491
- "-b --browser=<browser>" : "Either 'IE' or 'chrome'" ,
492
- " --built" : "Compile using the built version of the compiler." ,
493
- } ;
494
-
495
456
task ( "diff" , ( ) => exec ( getDiffTool ( ) , [ refBaseline , localBaseline ] , { ignoreExitCode : true } ) ) ;
496
457
task ( "diff" ) . description = "Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable" ;
497
458
@@ -525,16 +486,6 @@ cleanTasks.push(cleanWebHost);
525
486
task ( "clean-webhost" , cleanWebHost ) ;
526
487
task ( "clean-webhost" ) . description = "Cleans the outputs of the tsc web host" ;
527
488
528
- // TODO(rbuckton): Determine if 'perftsc' is still in use.
529
- const buildPerfTsc = ( ) => buildProject ( "tests/perftsc.tsconfig.json" ) ;
530
- task ( "perftsc" , series ( lkgPreBuild , buildPerfTsc ) ) ;
531
- task ( "perftsc" ) . description = "Builds augmented version of the compiler for perf tests" ;
532
-
533
- const cleanPerfTsc = ( ) => cleanProject ( "tests/perftsc.tsconfig.json" ) ;
534
- cleanTasks . push ( cleanPerfTsc ) ;
535
- task ( "clean-perftsc" , cleanPerfTsc ) ;
536
- task ( "clean-perftsc" ) . description = "Cleans the outputs of the perftsc project" ;
537
-
538
489
const buildLoggedIO = async ( ) => {
539
490
mkdirp . sync ( "built/local/temp" ) ;
540
491
await exec ( process . execPath , [ "lib/tsc" , "--types" , "--target" , "es5" , "--lib" , "es5" , "--outdir" , "built/local/temp" , "src/harness/loggedIO.ts" ] ) ;
0 commit comments