@@ -12,10 +12,9 @@ const merge2 = require("merge2");
1212const mkdirp = require ( "mkdirp" ) ;
1313const { src, dest, task, parallel, series, watch } = require ( "gulp" ) ;
1414const { append, transform } = require ( "gulp-insert" ) ;
15- const { browserify } = require ( "./scripts/build/browserify" ) ;
1615const { prependFile } = require ( "./scripts/build/prepend" ) ;
1716const { 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" ) ;
1918const { buildProject, cleanProject, watchProject } = require ( "./scripts/build/projects" ) ;
2019const cmdLineOptions = require ( "./scripts/build/options" ) ;
2120
@@ -454,44 +453,6 @@ task("runtests-parallel").flags = {
454453 " --built" : "Compile using the built version of the compiler." ,
455454} ;
456455
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-
495456task ( "diff" , ( ) => exec ( getDiffTool ( ) , [ refBaseline , localBaseline ] , { ignoreExitCode : true } ) ) ;
496457task ( "diff" ) . description = "Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable" ;
497458
@@ -525,16 +486,6 @@ cleanTasks.push(cleanWebHost);
525486task ( "clean-webhost" , cleanWebHost ) ;
526487task ( "clean-webhost" ) . description = "Cleans the outputs of the tsc web host" ;
527488
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-
538489const buildLoggedIO = async ( ) => {
539490 mkdirp . sync ( "built/local/temp" ) ;
540491 await exec ( process . execPath , [ "lib/tsc" , "--types" , "--target" , "es5" , "--lib" , "es5" , "--outdir" , "built/local/temp" , "src/harness/loggedIO.ts" ] ) ;
0 commit comments