@@ -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, 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
@@ -432,44 +431,6 @@ task("runtests-parallel").flags = {
432431 " --built" : "Compile using the built version of the compiler." ,
433432} ;
434433
435- const buildWebTestServer = ( ) => buildProject ( "tests/webTestServer.tsconfig.json" ) ;
436- const cleanWebTestServer = ( ) => cleanProject ( "tests/webTestServer.tsconfig.json" ) ;
437- cleanTasks . push ( cleanWebTestServer ) ;
438-
439- const browserifyTests = ( ) => src ( [ "built/local/run.js" ] , { base : "built/local" } )
440- . pipe ( newer ( "built/local/bundle.js" ) )
441- . pipe ( sourcemaps . init ( { loadMaps : true } ) )
442- . pipe ( browserify ( ) )
443- . pipe ( rename ( "bundle.js" ) )
444- . pipe ( sourcemaps . write ( "." , /**@type {* }*/ ( { includeContent : false , destPath : "built/local" } ) ) )
445- . pipe ( dest ( "built/local" ) ) ;
446-
447- const runtestsBrowser = async ( ) => {
448- await cleanTestDirs ( ) ;
449- const { tests, runners, light } = cmdLineOptions ;
450- const testConfigFile = "test.config" ;
451- await del ( [ testConfigFile ] ) ;
452- if ( tests || runners || light ) {
453- writeTestConfigFile ( tests , runners , light ) ;
454- }
455- const args = [ "tests/webTestServer.js" ] ;
456- if ( cmdLineOptions . browser ) {
457- args . push ( cmdLineOptions . browser ) ;
458- }
459- if ( tests ) {
460- args . push ( JSON . stringify ( tests ) ) ;
461- }
462- await exec ( process . execPath , args ) ;
463- } ;
464-
465- task ( "runtests-browser" , series ( preBuild , parallel ( buildTests , buildServices , buildLssl , buildWebTestServer ) , browserifyTests , runtestsBrowser ) ) ;
466- task ( "runtests-browser" ) . description = "Runs the tests using the built run.js file like 'gulp runtests'." ;
467- task ( "runtests-browser" ) . flags = {
468- "-t --tests=<regex>" : "pattern for tests to run" ,
469- "-b --browser=<browser>" : "Either 'IE' or 'chrome'" ,
470- " --built" : "Compile using the built version of the compiler." ,
471- } ;
472-
473434task ( "diff" , ( ) => exec ( getDiffTool ( ) , [ refBaseline , localBaseline ] , { ignoreExitCode : true } ) ) ;
474435task ( "diff" ) . description = "Diffs the compiler baselines using the diff tool specified by the 'DIFF' environment variable" ;
475436
@@ -503,16 +464,6 @@ cleanTasks.push(cleanWebHost);
503464task ( "clean-webhost" , cleanWebHost ) ;
504465task ( "clean-webhost" ) . description = "Cleans the outputs of the tsc web host" ;
505466
506- // TODO(rbuckton): Determine if 'perftsc' is still in use.
507- const buildPerfTsc = ( ) => buildProject ( "tests/perftsc.tsconfig.json" ) ;
508- task ( "perftsc" , series ( lkgPreBuild , buildPerfTsc ) ) ;
509- task ( "perftsc" ) . description = "Builds augmented version of the compiler for perf tests" ;
510-
511- const cleanPerfTsc = ( ) => cleanProject ( "tests/perftsc.tsconfig.json" ) ;
512- cleanTasks . push ( cleanPerfTsc ) ;
513- task ( "clean-perftsc" , cleanPerfTsc ) ;
514- task ( "clean-perftsc" ) . description = "Cleans the outputs of the perftsc project" ;
515-
516467const buildLoggedIO = async ( ) => {
517468 mkdirp . sync ( "built/local/temp" ) ;
518469 await exec ( process . execPath , [ "lib/tsc" , "--types" , "--target" , "es5" , "--lib" , "es5" , "--outdir" , "built/local/temp" , "src/harness/loggedIO.ts" ] ) ;
0 commit comments