@@ -133,6 +133,7 @@ var harnessSources = harnessCoreSources.concat([
133133 "projectErrors.ts" ,
134134 "matchFiles.ts" ,
135135 "initializeTSConfig.ts" ,
136+ "extractMethods.ts" ,
136137 "printer.ts" ,
137138 "textChanges.ts" ,
138139 "telemetry.ts" ,
@@ -533,7 +534,6 @@ var tscFile = path.join(builtLocalDirectory, compilerFilename);
533534compileFile ( tscFile , compilerSources , [ builtLocalDirectory , copyright ] . concat ( compilerSources ) , [ copyright ] , /*useBuiltCompiler:*/ false ) ;
534535
535536var servicesFile = path . join ( builtLocalDirectory , "typescriptServices.js" ) ;
536- var servicesFileInBrowserTest = path . join ( builtLocalDirectory , "typescriptServicesInBrowserTest.js" ) ;
537537var standaloneDefinitionsFile = path . join ( builtLocalDirectory , "typescriptServices.d.ts" ) ;
538538var nodePackageFile = path . join ( builtLocalDirectory , "typescript.js" ) ;
539539var nodeDefinitionsFile = path . join ( builtLocalDirectory , "typescript.d.ts" ) ;
@@ -572,22 +572,6 @@ compileFile(servicesFile, servicesSources, [builtLocalDirectory, copyright].conc
572572 fs . writeFileSync ( nodeStandaloneDefinitionsFile , nodeStandaloneDefinitionsFileContents ) ;
573573 } ) ;
574574
575- compileFile (
576- servicesFileInBrowserTest ,
577- servicesSources ,
578- [ builtLocalDirectory , copyright ] . concat ( servicesSources ) ,
579- /*prefixes*/ [ copyright ] ,
580- /*useBuiltCompiler*/ true ,
581- {
582- noOutFile : false ,
583- generateDeclarations : true ,
584- preserveConstEnums : true ,
585- keepComments : true ,
586- noResolve : false ,
587- stripInternal : true ,
588- inlineSourceMap : true
589- } ) ;
590-
591575file ( typescriptServicesDts , [ servicesFile ] ) ;
592576
593577var cancellationTokenFile = path . join ( builtLocalDirectory , "cancellationToken.js" ) ;
@@ -725,7 +709,7 @@ compileFile(
725709 /*prereqs*/ [ builtLocalDirectory , tscFile ] . concat ( libraryTargets ) . concat ( servicesSources ) . concat ( harnessSources ) ,
726710 /*prefixes*/ [ ] ,
727711 /*useBuiltCompiler:*/ true ,
728- /*opts*/ { inlineSourceMap : true , types : [ "node" , "mocha" , "chai" ] , lib : "es6" } ) ;
712+ /*opts*/ { types : [ "node" , "mocha" , "chai" ] , lib : "es6" } ) ;
729713
730714var internalTests = "internal/" ;
731715
@@ -961,13 +945,14 @@ var nodeServerInFile = "tests/webTestServer.ts";
961945compileFile ( nodeServerOutFile , [ nodeServerInFile ] , [ builtLocalDirectory , tscFile ] , [ ] , /*useBuiltCompiler:*/ true , { noOutFile : true , lib : "es6" } ) ;
962946
963947desc ( "Runs browserify on run.js to produce a file suitable for running tests in the browser" ) ;
964- task ( "browserify" , [ "tests" , run , builtLocalDirectory , nodeServerOutFile ] , function ( ) {
965- var cmd = 'browserify built/local/run.js -t ./scripts/browserify-optional -d -o built/local/bundle.js' ;
948+ task ( "browserify" , [ ] , function ( ) {
949+ // Shell out to `gulp`, since we do the work to handle sourcemaps correctly w/o inline maps there
950+ var cmd = 'gulp browserify --silent' ;
966951 exec ( cmd ) ;
967952} , { async : true } ) ;
968953
969954desc ( "Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], browser=[chrome|IE]" ) ;
970- task ( "runtests-browser" , [ "tests" , " browserify", builtLocalDirectory , servicesFileInBrowserTest ] , function ( ) {
955+ task ( "runtests-browser" , [ "browserify" , nodeServerOutFile ] , function ( ) {
971956 cleanTestDirs ( ) ;
972957 host = "node" ;
973958 browser = process . env . browser || process . env . b || ( os . platform ( ) === "linux" ? "chrome" : "IE" ) ;
@@ -1122,14 +1107,15 @@ task("update-sublime", ["local", serverFile], function () {
11221107
11231108var tslintRuleDir = "scripts/tslint" ;
11241109var tslintRules = [
1125- "nextLineRule" ,
11261110 "booleanTriviaRule" ,
1127- "typeOperatorSpacingRule" ,
1128- "noInOperatorRule" ,
1111+ "debugAssertRule" ,
1112+ "nextLineRule" ,
1113+ "noBomRule" ,
11291114 "noIncrementDecrementRule" ,
1130- "objectLiteralSurroundingSpaceRule " ,
1115+ "noInOperatorRule " ,
11311116 "noTypeAssertionWhitespaceRule" ,
1132- "noBomRule"
1117+ "objectLiteralSurroundingSpaceRule" ,
1118+ "typeOperatorSpacingRule" ,
11331119] ;
11341120var tslintRulesFiles = tslintRules . map ( function ( p ) {
11351121 return path . join ( tslintRuleDir , p + ".ts" ) ;
0 commit comments