Skip to content

Commit b4a6e02

Browse files
committed
Merge remote-tracking branch 'origin/master' into glob_outdir_bug
2 parents 28239f2 + 4685646 commit b4a6e02

File tree

2,002 files changed

+74251
-33874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,002 files changed

+74251
-33874
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ test-args.txt
99
\#*\#
1010
.\#*
1111
tests/baselines/local/*
12+
tests/baselines/local.old/*
1213
tests/services/baselines/local/*
1314
tests/baselines/prototyping/local/*
1415
tests/baselines/rwc/*
1516
tests/baselines/test262/*
1617
tests/baselines/reference/projectOutput/*
1718
tests/baselines/local/projectOutput/*
19+
tests/baselines/reference/testresults.tap
1820
tests/services/baselines/prototyping/local/*
1921
tests/services/browser/typescriptServices.js
2022
scripts/authors.js

Jakefile.js

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,20 @@ var compilerSources = [
6464
"utilities.ts",
6565
"binder.ts",
6666
"checker.ts",
67+
"factory.ts",
68+
"visitor.ts",
69+
"transformers/destructuring.ts",
70+
"transformers/ts.ts",
71+
"transformers/module/es6.ts",
72+
"transformers/module/system.ts",
73+
"transformers/module/module.ts",
74+
"transformers/jsx.ts",
75+
"transformers/es7.ts",
76+
"transformers/generators.ts",
77+
"transformers/es6.ts",
78+
"transformer.ts",
6779
"sourcemap.ts",
80+
"comments.ts",
6881
"declarationEmitter.ts",
6982
"emitter.ts",
7083
"program.ts",
@@ -85,7 +98,20 @@ var servicesSources = [
8598
"utilities.ts",
8699
"binder.ts",
87100
"checker.ts",
101+
"factory.ts",
102+
"visitor.ts",
103+
"transformers/destructuring.ts",
104+
"transformers/ts.ts",
105+
"transformers/module/es6.ts",
106+
"transformers/module/system.ts",
107+
"transformers/module/module.ts",
108+
"transformers/jsx.ts",
109+
"transformers/es7.ts",
110+
"transformers/generators.ts",
111+
"transformers/es6.ts",
112+
"transformer.ts",
88113
"sourcemap.ts",
114+
"comments.ts",
89115
"declarationEmitter.ts",
90116
"emitter.ts",
91117
"program.ts",
@@ -102,6 +128,7 @@ var servicesSources = [
102128
"services.ts",
103129
"shims.ts",
104130
"signatureHelp.ts",
131+
"types.ts",
105132
"utilities.ts",
106133
"formatting/formatting.ts",
107134
"formatting/formattingContext.ts",
@@ -307,7 +334,10 @@ var builtLocalCompiler = path.join(builtLocalDirectory, compilerFilename);
307334
* @param callback: a function to execute after the compilation process ends
308335
*/
309336
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts, callback) {
310-
file(outFile, prereqs, function () {
337+
file(outFile, prereqs, function() {
338+
if (process.env.USE_TRANSFORMS === "false") {
339+
useBuiltCompiler = false;
340+
}
311341
var startCompileTime = mark();
312342
opts = opts || {};
313343
var compilerPath = useBuiltCompiler ? builtLocalCompiler : LKGCompiler;
@@ -745,8 +775,14 @@ function cleanTestDirs() {
745775
}
746776

747777
// used to pass data from jake command line directly to run.js
748-
function writeTestConfigFile(tests, light, taskConfigsFolder, workerCount) {
749-
var testConfigContents = JSON.stringify({ test: tests ? [tests] : undefined, light: light, workerCount: workerCount, taskConfigsFolder: taskConfigsFolder });
778+
function writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit) {
779+
var testConfigContents = JSON.stringify({
780+
test: tests ? [tests] : undefined,
781+
light: light,
782+
workerCount: workerCount,
783+
taskConfigsFolder: taskConfigsFolder,
784+
stackTraceLimit: stackTraceLimit
785+
});
750786
fs.writeFileSync('test.config', testConfigContents);
751787
}
752788

@@ -757,10 +793,15 @@ function deleteTemporaryProjectOutput() {
757793
}
758794

759795
function runConsoleTests(defaultReporter, runInParallel) {
760-
cleanTestDirs();
796+
var dirty = process.env.dirty;
797+
if (!dirty) {
798+
cleanTestDirs();
799+
}
800+
761801
var debug = process.env.debug || process.env.d;
762802
tests = process.env.test || process.env.tests || process.env.t;
763803
var light = process.env.light || false;
804+
var stackTraceLimit = process.env.stackTraceLimit;
764805
var testConfigFile = 'test.config';
765806
if (fs.existsSync(testConfigFile)) {
766807
fs.unlinkSync(testConfigFile);
@@ -780,7 +821,7 @@ function runConsoleTests(defaultReporter, runInParallel) {
780821
}
781822

782823
if (tests || light || taskConfigsFolder) {
783-
writeTestConfigFile(tests, light, taskConfigsFolder, workerCount);
824+
writeTestConfigFile(tests, light, taskConfigsFolder, workerCount, stackTraceLimit);
784825
}
785826

786827
if (tests && tests.toLocaleLowerCase() === "rwc") {
@@ -849,7 +890,7 @@ function runConsoleTests(defaultReporter, runInParallel) {
849890
}
850891
}
851892
function runLinter() {
852-
if (!lintFlag) {
893+
if (!lintFlag || dirty) {
853894
return;
854895
}
855896
var lint = jake.Task['lint'];
@@ -866,8 +907,8 @@ task("runtests-parallel", ["build-rules", "tests", builtLocalDirectory], functio
866907
runConsoleTests('min', /*runInParallel*/ true);
867908
}, { async: true });
868909

869-
desc("Runs the tests using the built run.js file. Optional arguments are: t[ests]=regex r[eporter]=[list|spec|json|<more>] d[ebug]=true color[s]=false lint=true bail=false.");
870-
task("runtests", ["build-rules", "tests", builtLocalDirectory], function () {
910+
desc("Runs the tests using the built run.js file. Optional arguments are: t[ests]=regex r[eporter]=[list|spec|json|<more>] d[ebug]=true color[s]=false lint=true bail=false dirty=false.");
911+
task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
871912
runConsoleTests('mocha-fivemat-progress-reporter', /*runInParallel*/ false);
872913
}, { async: true });
873914

@@ -884,8 +925,8 @@ var nodeServerInFile = "tests/webTestServer.ts";
884925
compileFile(nodeServerOutFile, [nodeServerInFile], [builtLocalDirectory, tscFile], [], /*useBuiltCompiler:*/ true, { noOutFile: true });
885926

886927
desc("Runs browserify on run.js to produce a file suitable for running tests in the browser");
887-
task("browserify", ["tests", builtLocalDirectory, nodeServerOutFile], function () {
888-
var cmd = 'browserify built/local/run.js -d -o built/local/bundle.js';
928+
task("browserify", ["tests", builtLocalDirectory, nodeServerOutFile], function() {
929+
var cmd = 'browserify built/local/run.js -t ./scripts/browserify-optional -d -o built/local/bundle.js';
889930
exec(cmd);
890931
}, { async: true });
891932

0 commit comments

Comments
 (0)