Skip to content

Commit 862b53a

Browse files
committed
Add TODOs in Gulpfile
1 parent c85eaba commit 862b53a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Gulpfile.js

+12-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const cmdLineOptions = require("./scripts/build/options");
2020
const copyright = "CopyrightNotice.txt";
2121
const cleanTasks = [];
2222

23+
const testRunner = "./built/local/testRunner/_namespaces/Harness.js"
24+
2325
const buildScripts = () => buildProject("scripts");
2426
task("scripts", buildScripts);
2527
task("scripts").description = "Builds files in the 'scripts' folder.";
@@ -125,6 +127,8 @@ const localPreBuild = parallel(generateLibs, series(buildScripts, generateDiagno
125127
const preBuild = cmdLineOptions.lkg ? lkgPreBuild : localPreBuild;
126128

127129
const buildServices = (() => {
130+
return cb => { console.log("!!!TODO!!! buildServices"); cb(); };
131+
128132
// build typescriptServices.out.js
129133
const buildTypescriptServicesOut = () => buildProject("src/typescriptServices/tsconfig.json", cmdLineOptions);
130134

@@ -249,6 +253,8 @@ task("watch-min").flags = {
249253
};
250254

251255
const buildLssl = (() => {
256+
return cb => { console.log("!!!TODO!!! buildLssl"); cb(); };
257+
252258
// build tsserverlibrary.out.js
253259
const buildServerLibraryOut = () => buildProject("src/tsserverlibrary/tsconfig.json", cmdLineOptions);
254260

@@ -442,8 +448,8 @@ preTest.displayName = "preTest";
442448

443449
const postTest = (done) => cmdLineOptions.lint ? lint(done) : done();
444450

445-
const runTests = () => runConsoleTests("built/local/run.js", "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ false);
446-
task("runtests", series(preBuild, preTest, runTests, postTest));
451+
const runTests = () => runConsoleTests(testRunner, "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ false);
452+
task("runtests", series(/*preBuild, preTest,*/ runTests /*, postTest*/)); // !!!TODO!!!
447453
task("runtests").description = "Runs the tests using the built run.js file.";
448454
task("runtests").flags = {
449455
"-t --tests=<regex>": "Pattern for tests to run.",
@@ -462,8 +468,8 @@ task("runtests").flags = {
462468
" --shardId": "1-based ID of this shard (default: 1)",
463469
};
464470

465-
const runTestsParallel = () => runConsoleTests("built/local/run.js", "min", /*runInParallel*/ cmdLineOptions.workers > 1, /*watchMode*/ false);
466-
task("runtests-parallel", series(preBuild, preTest, runTestsParallel, postTest));
471+
const runTestsParallel = () => runConsoleTests(testRunner, "min", /*runInParallel*/ cmdLineOptions.workers > 1, /*watchMode*/ false);
472+
task("runtests-parallel", series(/*preBuild, preTest,*/ runTestsParallel /*, postTest*/)); // !!!TODO!!!
467473
task("runtests-parallel").description = "Runs all the tests in parallel using the built run.js file.";
468474
task("runtests-parallel").flags = {
469475
" --no-lint": "disables lint.",
@@ -611,10 +617,10 @@ task("publish-nightly").description = "Runs `npm publish --tag next` to create a
611617
// write some kind of trigger file that indicates build completion that we could listen for instead.
612618
const watchRuntests = () => watch(["built/local/*.js", "tests/cases/**/*.ts", "tests/cases/**/tsconfig.json"], { delay: 5000 }, async () => {
613619
if (cmdLineOptions.tests || cmdLineOptions.failed) {
614-
await runConsoleTests("built/local/run.js", "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ true);
620+
await runConsoleTests(testRunner, "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ true);
615621
}
616622
else {
617-
await runConsoleTests("built/local/run.js", "min", /*runInParallel*/ true, /*watchMode*/ true);
623+
await runConsoleTests(testRunner, "min", /*runInParallel*/ true, /*watchMode*/ true);
618624
}
619625
});
620626
task("watch", series(preBuild, preTest, parallel(watchLib, watchDiagnostics, watchServices, watchLssl, watchTests, watchRuntests)));

0 commit comments

Comments
 (0)