@@ -41,7 +41,7 @@ const generateLibs = () => {
41
41
. pipe ( concat ( relativeTarget , { newLine : "\n\n" } ) )
42
42
. pipe ( dest ( "built/local" ) ) ) ) ;
43
43
} ;
44
- task ( "lib" , generateLibs )
44
+ task ( "lib" , generateLibs ) ;
45
45
task ( "lib" ) . description = "Builds the library targets" ;
46
46
47
47
const cleanLib = ( ) => del ( libs . map ( lib => lib . target ) ) ;
@@ -168,7 +168,7 @@ task("services", series(preBuild, buildServices));
168
168
task ( "services" ) . description = "Builds the language service" ;
169
169
task ( "services" ) . flags = {
170
170
" --built" : "Compile using the built version of the compiler."
171
- }
171
+ } ;
172
172
173
173
const cleanServices = async ( ) => {
174
174
if ( fs . existsSync ( "built/local/typescriptServices.tsconfig.json" ) ) {
@@ -200,14 +200,14 @@ task("watch-services", series(preBuild, parallel(watchLib, watchDiagnostics, wat
200
200
task ( "watch-services" ) . description = "Watches for changes and rebuild language service only" ;
201
201
task ( "watch-services" ) . flags = {
202
202
" --built" : "Compile using the built version of the compiler."
203
- }
203
+ } ;
204
204
205
205
const buildServer = ( ) => buildProject ( "src/tsserver" , cmdLineOptions ) ;
206
206
task ( "tsserver" , series ( preBuild , buildServer ) ) ;
207
207
task ( "tsserver" ) . description = "Builds the language server" ;
208
208
task ( "tsserver" ) . flags = {
209
209
" --built" : "Compile using the built version of the compiler."
210
- }
210
+ } ;
211
211
212
212
const cleanServer = ( ) => cleanProject ( "src/tsserver" ) ;
213
213
cleanTasks . push ( cleanServer ) ;
@@ -219,13 +219,13 @@ task("watch-tsserver", series(preBuild, parallel(watchLib, watchDiagnostics, wat
219
219
task ( "watch-tsserver" ) . description = "Watch for changes and rebuild the language server only" ;
220
220
task ( "watch-tsserver" ) . flags = {
221
221
" --built" : "Compile using the built version of the compiler."
222
- }
222
+ } ;
223
223
224
224
task ( "min" , series ( preBuild , parallel ( buildTsc , buildServer ) ) ) ;
225
225
task ( "min" ) . description = "Builds only tsc and tsserver" ;
226
226
task ( "min" ) . flags = {
227
227
" --built" : "Compile using the built version of the compiler."
228
- }
228
+ } ;
229
229
230
230
task ( "clean-min" , series ( cleanTsc , cleanServer ) ) ;
231
231
task ( "clean-min" ) . description = "Cleans outputs for tsc and tsserver" ;
@@ -234,7 +234,7 @@ task("watch-min", series(preBuild, parallel(watchLib, watchDiagnostics, watchTsc
234
234
task ( "watch-min" ) . description = "Watches for changes to a tsc and tsserver only" ;
235
235
task ( "watch-min" ) . flags = {
236
236
" --built" : "Compile using the built version of the compiler."
237
- }
237
+ } ;
238
238
239
239
const buildLssl = ( ( ) => {
240
240
// build tsserverlibrary.out.js
@@ -268,7 +268,7 @@ task("lssl", series(preBuild, buildLssl));
268
268
task ( "lssl" ) . description = "Builds language service server library" ;
269
269
task ( "lssl" ) . flags = {
270
270
" --built" : "Compile using the built version of the compiler."
271
- }
271
+ } ;
272
272
273
273
const cleanLssl = async ( ) => {
274
274
if ( fs . existsSync ( "built/local/tsserverlibrary.tsconfig.json" ) ) {
@@ -302,14 +302,14 @@ task("watch-lssl", series(preBuild, parallel(watchLib, watchDiagnostics, watchLs
302
302
task ( "watch-lssl" ) . description = "Watch for changes and rebuild tsserverlibrary only" ;
303
303
task ( "watch-lssl" ) . flags = {
304
304
" --built" : "Compile using the built version of the compiler."
305
- }
305
+ } ;
306
306
307
307
const buildTests = ( ) => buildProject ( "src/testRunner" ) ;
308
308
task ( "tests" , series ( preBuild , parallel ( buildLssl , buildTests ) ) ) ;
309
309
task ( "tests" ) . description = "Builds the test infrastructure" ;
310
310
task ( "tests" ) . flags = {
311
311
" --built" : "Compile using the built version of the compiler."
312
- }
312
+ } ;
313
313
314
314
const cleanTests = ( ) => cleanProject ( "src/testRunner" ) ;
315
315
cleanTasks . push ( cleanTests ) ;
@@ -396,13 +396,13 @@ task("local", series(buildFoldStart, preBuild, parallel(localize, buildTsc, buil
396
396
task ( "local" ) . description = "Builds the full compiler and services" ;
397
397
task ( "local" ) . flags = {
398
398
" --built" : "Compile using the built version of the compiler."
399
- }
399
+ } ;
400
400
401
401
task ( "watch-local" , series ( preBuild , parallel ( watchLib , watchDiagnostics , watchTsc , watchServices , watchServer , watchLssl ) ) ) ;
402
402
task ( "watch-local" ) . description = "Watches for changes to projects in src/ (but does not execute tests)." ;
403
403
task ( "watch-local" ) . flags = {
404
404
" --built" : "Compile using the built version of the compiler."
405
- }
405
+ } ;
406
406
407
407
const generateCodeCoverage = ( ) => exec ( "istanbul" , [ "cover" , "node_modules/mocha/bin/_mocha" , "--" , "-R" , "min" , "-t" , "" + cmdLineOptions . testTimeout , "built/local/run.js" ] ) ;
408
408
task ( "generate-code-coverage" , series ( preBuild , buildTests , generateCodeCoverage ) ) ;
@@ -432,7 +432,7 @@ task("runtests").flags = {
432
432
" --built" : "Compile using the built version of the compiler." ,
433
433
" --shards" : "Total number of shards running tests (default: 1)" ,
434
434
" --shardId" : "1-based ID of this shard (default: 1)" ,
435
- }
435
+ } ;
436
436
437
437
const runTestsParallel = ( ) => runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ true , /*watchMode*/ false ) ;
438
438
task ( "runtests-parallel" , series ( preBuild , preTest , runTestsParallel , postTest ) ) ;
@@ -493,7 +493,7 @@ task("tsc-instrumented", series(lkgPreBuild, parallel(localize, buildTsc, buildS
493
493
task ( "tsc-instrumented" ) . description = "Builds an instrumented tsc.js" ;
494
494
task ( "tsc-instrumented" ) . flags = {
495
495
"-t --tests=<testname>" : "The test to run."
496
- }
496
+ } ;
497
497
498
498
// TODO(rbuckton): Determine if we still need this task. Depending on a relative
499
499
// path here seems like a bad idea.
@@ -548,7 +548,7 @@ task("LKG", series(lkgPreBuild, parallel(localize, buildTsc, buildServer, buildS
548
548
task ( "LKG" ) . description = "Makes a new LKG out of the built js files" ;
549
549
task ( "LKG" ) . flags = {
550
550
" --built" : "Compile using the built version of the compiler." ,
551
- }
551
+ } ;
552
552
553
553
const generateSpec = ( ) => exec ( "cscript" , [ "//nologo" , "scripts/word2md.js" , path . resolve ( "doc/TypeScript Language Specification.docx" ) , path . resolve ( "doc/spec.md" ) ] ) ;
554
554
task ( "generate-spec" , series ( buildScripts , generateSpec ) ) ;
@@ -557,15 +557,15 @@ task("generate-spec").description = "Generates a Markdown version of the Languag
557
557
task ( "clean" , series ( parallel ( cleanTasks ) , cleanBuilt ) ) ;
558
558
task ( "clean" ) . description = "Cleans build outputs" ;
559
559
560
- const configureNightly = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "dev" , "package.json" , "src/compiler/core.ts" ] )
560
+ const configureNightly = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "dev" , "package.json" , "src/compiler/core.ts" ] ) ;
561
561
task ( "configure-nightly" , series ( buildScripts , configureNightly ) ) ;
562
562
task ( "configure-nightly" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for nightly publishing" ;
563
563
564
- const configureInsiders = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "insiders" , "package.json" , "src/compiler/core.ts" ] )
564
+ const configureInsiders = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "insiders" , "package.json" , "src/compiler/core.ts" ] ) ;
565
565
task ( "configure-insiders" , series ( buildScripts , configureInsiders ) ) ;
566
566
task ( "configure-insiders" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for insiders publishing" ;
567
567
568
- const configureExperimental = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "experimental" , "package.json" , "src/compiler/core.ts" ] )
568
+ const configureExperimental = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "experimental" , "package.json" , "src/compiler/core.ts" ] ) ;
569
569
task ( "configure-experimental" , series ( buildScripts , configureExperimental ) ) ;
570
570
task ( "configure-experimental" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for experimental publishing" ;
571
571
0 commit comments