@@ -9,7 +9,6 @@ var child_process = require("child_process");
99var fold = require ( "travis-fold" ) ;
1010var ts = require ( "./lib/typescript" ) ;
1111
12-
1312// Variables
1413var compilerDirectory = "src/compiler/" ;
1514var serverDirectory = "src/server/" ;
@@ -87,7 +86,7 @@ var servicesSources = filesFromConfig("./src/services/tsconfig.json");
8786var cancellationTokenSources = filesFromConfig ( path . join ( serverDirectory , "cancellationToken/tsconfig.json" ) ) ;
8887var typingsInstallerSources = filesFromConfig ( path . join ( serverDirectory , "typingsInstaller/tsconfig.json" ) ) ;
8988var watchGuardSources = filesFromConfig ( path . join ( serverDirectory , "watchGuard/tsconfig.json" ) ) ;
90- var serverSources = filesFromConfig ( path . join ( serverDirectory , "tsconfig.json" ) )
89+ var serverSources = filesFromConfig ( path . join ( serverDirectory , "tsconfig.json" ) ) ;
9190var languageServiceLibrarySources = filesFromConfig ( path . join ( serverDirectory , "tsconfig.library.json" ) ) ;
9291
9392var typesMapOutputPath = path . join ( builtLocalDirectory , 'typesMap.json' ) ;
@@ -361,14 +360,14 @@ function compile(outFile, sources, prefixes, useBuiltCompiler, opts, callback) {
361360 options . push ( "--target" , opts . target ) ;
362361 }
363362 else {
364- options . push ( "--target es5" ) ;
363+ options . push ( "--target" , " es5") ;
365364 }
366365
367366 if ( opts . lib ) {
368367 options . push ( "--lib" , opts . lib ) ;
369368 }
370369 else {
371- options . push ( "--lib es5" ) ;
370+ options . push ( "--lib" , " es5") ;
372371 }
373372
374373 execCompiler ( useBuiltCompiler , options . concat ( sources ) , function ( error ) {
@@ -526,7 +525,7 @@ file(buildProtocolDts, [buildProtocolTs, buildProtocolJs, typescriptServicesDts]
526525 complete ( ) ;
527526 } ) ;
528527 ex . run ( ) ;
529- } , { async : true } )
528+ } , { async : true } ) ;
530529
531530// The generated diagnostics map; built for the compiler and for the 'generate-diagnostics' task
532531file ( diagnosticInfoMapTs , [ processDiagnosticMessagesJs , diagnosticMessagesJson ] , function ( ) {
@@ -646,7 +645,7 @@ compileFile(servicesFile, servicesSources, [builtLocalDirectory, copyright].conc
646645 // Stanalone/web definition file using global 'ts' namespace
647646 jake . cpR ( standaloneDefinitionsFile , nodeDefinitionsFile , { silent : true } ) ;
648647 var definitionFileContents = fs . readFileSync ( nodeDefinitionsFile ) . toString ( ) ;
649- definitionFileContents = removeConstModifierFromEnumDeclarations ( definitionFileContents )
648+ definitionFileContents = removeConstModifierFromEnumDeclarations ( definitionFileContents ) ;
650649 fs . writeFileSync ( standaloneDefinitionsFile , definitionFileContents ) ;
651650
652651 // Official node package definition file, pointed to by 'typings' in package.json
@@ -1288,15 +1287,15 @@ task("build-rules-end", [], function () {
12881287var lintTargets = compilerSources
12891288 . concat ( harnessSources )
12901289 // Other harness sources
1291- . concat ( [ "instrumenter.ts" ] . map ( function ( f ) { return path . join ( harnessDirectory , f ) } ) )
1290+ . concat ( [ "instrumenter.ts" ] . map ( function ( f ) { return path . join ( harnessDirectory , f ) ; } ) )
12921291 . concat ( serverSources )
12931292 . concat ( tslintRulesFiles )
12941293 . concat ( servicesSources )
12951294 . concat ( typingsInstallerSources )
12961295 . concat ( cancellationTokenSources )
12971296 . concat ( [ "Gulpfile.ts" ] )
12981297 . concat ( [ nodeServerInFile , perftscPath , "tests/perfsys.ts" , webhostPath ] )
1299- . map ( function ( p ) { return path . resolve ( p ) } ) ;
1298+ . map ( function ( p ) { return path . resolve ( p ) ; } ) ;
13001299// keep only unique items
13011300lintTargets = Array . from ( new Set ( lintTargets ) ) ;
13021301
@@ -1338,9 +1337,10 @@ desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex
13381337task ( "lint" , [ "build-rules" ] , ( ) => {
13391338 if ( fold . isTravis ( ) ) console . log ( fold . start ( "lint" ) ) ;
13401339 const fileMatcher = process . env . f || process . env . file || process . env . files ;
1340+
13411341 const files = fileMatcher
13421342 ? `src/**/${ fileMatcher } `
1343- : " Gulpfile.ts ' scripts/generateLocalizedDiagnosticMessages.ts' ' scripts/tslint/**/*.ts' ' src/**/*.ts' --exclude ' src/lib/*.d.ts'" ;
1343+ : ` Gulpfile.ts scripts/generateLocalizedDiagnosticMessages.ts " scripts/tslint/**/*.ts" " src/**/*.ts" --exclude " src/lib/*.d.ts"` ;
13441344 const cmd = `node node_modules/tslint/bin/tslint ${ files } --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish` ;
13451345 console . log ( "Linting: " + cmd ) ;
13461346 jake . exec ( [ cmd ] , ( ) => {
0 commit comments