@@ -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 ) ;
@@ -381,13 +381,13 @@ task("local", series(buildFoldStart, preBuild, parallel(localize, buildTsc, buil
381
381
task ( "local" ) . description = "Builds the full compiler and services" ;
382
382
task ( "local" ) . flags = {
383
383
" --built" : "Compile using the built version of the compiler."
384
- }
384
+ } ;
385
385
386
386
task ( "watch-local" , series ( preBuild , parallel ( watchLib , watchDiagnostics , watchTsc , watchServices , watchServer , watchLssl ) ) ) ;
387
387
task ( "watch-local" ) . description = "Watches for changes to projects in src/ (but does not execute tests)." ;
388
388
task ( "watch-local" ) . flags = {
389
389
" --built" : "Compile using the built version of the compiler."
390
- }
390
+ } ;
391
391
392
392
const generateCodeCoverage = ( ) => exec ( "istanbul" , [ "cover" , "node_modules/mocha/bin/_mocha" , "--" , "-R" , "min" , "-t" , "" + cmdLineOptions . testTimeout , "built/local/run.js" ] ) ;
393
393
task ( "generate-code-coverage" , series ( preBuild , buildTests , generateCodeCoverage ) ) ;
@@ -417,7 +417,7 @@ task("runtests").flags = {
417
417
" --built" : "Compile using the built version of the compiler." ,
418
418
" --shards" : "Total number of shards running tests (default: 1)" ,
419
419
" --shardId" : "1-based ID of this shard (default: 1)" ,
420
- }
420
+ } ;
421
421
422
422
const runTestsParallel = ( ) => runConsoleTests ( "built/local/run.js" , "min" , /*runInParallel*/ true , /*watchMode*/ false ) ;
423
423
task ( "runtests-parallel" , series ( preBuild , preTest , runTestsParallel , postTest ) ) ;
@@ -478,7 +478,7 @@ task("tsc-instrumented", series(lkgPreBuild, parallel(localize, buildTsc, buildS
478
478
task ( "tsc-instrumented" ) . description = "Builds an instrumented tsc.js" ;
479
479
task ( "tsc-instrumented" ) . flags = {
480
480
"-t --tests=<testname>" : "The test to run."
481
- }
481
+ } ;
482
482
483
483
// TODO(rbuckton): Determine if we still need this task. Depending on a relative
484
484
// path here seems like a bad idea.
@@ -533,7 +533,7 @@ task("LKG", series(lkgPreBuild, parallel(localize, buildTsc, buildServer, buildS
533
533
task ( "LKG" ) . description = "Makes a new LKG out of the built js files" ;
534
534
task ( "LKG" ) . flags = {
535
535
" --built" : "Compile using the built version of the compiler." ,
536
- }
536
+ } ;
537
537
538
538
const generateSpec = ( ) => exec ( "cscript" , [ "//nologo" , "scripts/word2md.js" , path . resolve ( "doc/TypeScript Language Specification.docx" ) , path . resolve ( "doc/spec.md" ) ] ) ;
539
539
task ( "generate-spec" , series ( buildScripts , generateSpec ) ) ;
@@ -542,15 +542,15 @@ task("generate-spec").description = "Generates a Markdown version of the Languag
542
542
task ( "clean" , series ( parallel ( cleanTasks ) , cleanBuilt ) ) ;
543
543
task ( "clean" ) . description = "Cleans build outputs" ;
544
544
545
- const configureNightly = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "dev" , "package.json" , "src/compiler/core.ts" ] )
545
+ const configureNightly = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "dev" , "package.json" , "src/compiler/core.ts" ] ) ;
546
546
task ( "configure-nightly" , series ( buildScripts , configureNightly ) ) ;
547
547
task ( "configure-nightly" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for nightly publishing" ;
548
548
549
- const configureInsiders = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "insiders" , "package.json" , "src/compiler/core.ts" ] )
549
+ const configureInsiders = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "insiders" , "package.json" , "src/compiler/core.ts" ] ) ;
550
550
task ( "configure-insiders" , series ( buildScripts , configureInsiders ) ) ;
551
551
task ( "configure-insiders" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for insiders publishing" ;
552
552
553
- const configureExperimental = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "experimental" , "package.json" , "src/compiler/core.ts" ] )
553
+ const configureExperimental = ( ) => exec ( process . execPath , [ "scripts/configurePrerelease.js" , "experimental" , "package.json" , "src/compiler/core.ts" ] ) ;
554
554
task ( "configure-experimental" , series ( buildScripts , configureExperimental ) ) ;
555
555
task ( "configure-experimental" ) . description = "Runs scripts/configurePrerelease.ts to prepare a build for experimental publishing" ;
556
556
0 commit comments