Skip to content

Commit e25db39

Browse files
committed
Merge branch 'master' into narrowing-a-type-parameter-intersects-concrete-types
2 parents 38ee13c + 269b828 commit e25db39

File tree

209 files changed

+3501
-28268
lines changed

Some content is hidden

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

209 files changed

+3501
-28268
lines changed

.travis.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,28 @@ node_js:
77

88
sudo: false
99

10-
os:
11-
- linux
12-
- osx
10+
env:
11+
- workerCount=4
1312

1413
matrix:
1514
fast_finish: true
16-
exclude:
15+
include:
1716
- os: osx
18-
node_js: '4'
19-
- os: osx
20-
node_js: '0.10'
17+
node_js: stable
18+
osx_image: xcode7.3
19+
env: workerCount=2
2120

2221
branches:
2322
only:
2423
- master
25-
- transforms
24+
- transforms
25+
26+
install:
27+
- npm uninstall typescript
28+
- npm uninstall tslint
29+
- npm install
30+
- npm update
31+
32+
cache:
33+
directories:
34+
- node_modules

Gulpfile.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
5959
browser: process.env.browser || process.env.b || "IE",
6060
tests: process.env.test || process.env.tests || process.env.t,
6161
light: process.env.light || false,
62-
port: process.env.port || process.env.p || "8888",
6362
reporter: process.env.reporter || process.env.r,
6463
lint: process.env.lint || true,
6564
files: process.env.f || process.env.file || process.env.files || "",
@@ -450,7 +449,7 @@ gulp.task(tsserverLibraryFile, false, [servicesFile], (done) => {
450449
});
451450

452451
gulp.task("lssl", "Builds language service server library", [tsserverLibraryFile]);
453-
gulp.task("local", "Builds the full compiler and services", [builtLocalCompiler, servicesFile, serverFile, builtGeneratedDiagnosticMessagesJSON]);
452+
gulp.task("local", "Builds the full compiler and services", [builtLocalCompiler, servicesFile, serverFile, builtGeneratedDiagnosticMessagesJSON, tsserverLibraryFile]);
454453
gulp.task("tsc", "Builds only the compiler", [builtLocalCompiler]);
455454

456455

@@ -504,7 +503,7 @@ gulp.task("VerifyLKG", false, [], () => {
504503
return gulp.src(expectedFiles).pipe(gulp.dest(LKGDirectory));
505504
});
506505

507-
gulp.task("LKGInternal", false, ["lib", "local", "lssl"]);
506+
gulp.task("LKGInternal", false, ["lib", "local"]);
508507

509508
gulp.task("LKG", "Makes a new LKG out of the built js files", ["clean", "dontUseDebugMode"], () => {
510509
return runSequence("LKGInternal", "VerifyLKG");
@@ -766,7 +765,7 @@ function writeTestConfigFile(tests: string, light: boolean, taskConfigsFolder?:
766765
}
767766

768767

769-
gulp.task("runtests-browser", "Runs the tests using the built run.js file like 'gulp runtests'. Syntax is gulp runtests-browser. Additional optional parameters --tests=[regex], --port=, --browser=[chrome|IE]", ["browserify", nodeServerOutFile], (done) => {
768+
gulp.task("runtests-browser", "Runs the tests using the built run.js file like 'gulp runtests'. Syntax is gulp runtests-browser. Additional optional parameters --tests=[regex], --browser=[chrome|IE]", ["browserify", nodeServerOutFile], (done) => {
770769
cleanTestDirs((err) => {
771770
if (err) { console.error(err); done(err); process.exit(1); }
772771
host = "node";
@@ -781,9 +780,6 @@ gulp.task("runtests-browser", "Runs the tests using the built run.js file like '
781780
}
782781

783782
const args = [nodeServerOutFile];
784-
if (cmdLineOptions["port"]) {
785-
args.push(cmdLineOptions["port"]);
786-
}
787783
if (cmdLineOptions["browser"]) {
788784
args.push(cmdLineOptions["browser"]);
789785
}
@@ -960,6 +956,7 @@ const lintTargets = [
960956
"src/server/**/*.ts",
961957
"scripts/tslint/**/*.ts",
962958
"src/services/**/*.ts",
959+
"tests/*.ts", "tests/webhost/*.ts" // Note: does *not* descend recursively
963960
];
964961

965962

Jakefile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ var tsserverLibraryDefinitionFile = path.join(builtLocalDirectory, "tsserverlibr
551551
compileFile(
552552
tsserverLibraryFile,
553553
languageServiceLibrarySources,
554-
[builtLocalDirectory, copyright].concat(languageServiceLibrarySources),
554+
[builtLocalDirectory, copyright, builtLocalCompiler].concat(languageServiceLibrarySources).concat(libraryTargets),
555555
/*prefixes*/ [copyright],
556556
/*useBuiltCompiler*/ true,
557557
{ noOutFile: false, generateDeclarations: true });
@@ -562,7 +562,7 @@ task("lssl", [tsserverLibraryFile, tsserverLibraryDefinitionFile]);
562562

563563
// Local target to build the compiler and services
564564
desc("Builds the full compiler and services");
565-
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile, builtGeneratedDiagnosticMessagesJSON]);
565+
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile, builtGeneratedDiagnosticMessagesJSON, "lssl"]);
566566

567567
// Local target to build only tsc.js
568568
desc("Builds only the compiler");
@@ -617,7 +617,7 @@ task("generate-spec", [specMd]);
617617

618618
// Makes a new LKG. This target does not build anything, but errors if not all the outputs are present in the built/local directory
619619
desc("Makes a new LKG out of the built js files");
620-
task("LKG", ["clean", "release", "local", "lssl"].concat(libraryTargets), function() {
620+
task("LKG", ["clean", "release", "local"].concat(libraryTargets), function() {
621621
var expectedFiles = [tscFile, servicesFile, serverFile, nodePackageFile, nodeDefinitionsFile, standaloneDefinitionsFile, tsserverLibraryFile, tsserverLibraryDefinitionFile].concat(libraryTargets);
622622
var missingFiles = expectedFiles.filter(function (f) {
623623
return !fs.existsSync(f);
@@ -847,11 +847,10 @@ task("browserify", ["tests", builtLocalDirectory, nodeServerOutFile], function()
847847
exec(cmd);
848848
}, {async: true});
849849

850-
desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], port=, browser=[chrome|IE]");
850+
desc("Runs the tests using the built run.js file like 'jake runtests'. Syntax is jake runtests-browser. Additional optional parameters tests=[regex], browser=[chrome|IE]");
851851
task("runtests-browser", ["tests", "browserify", builtLocalDirectory, servicesFileInBrowserTest], function() {
852852
cleanTestDirs();
853853
host = "node";
854-
port = process.env.port || process.env.p || '8888';
855854
browser = process.env.browser || process.env.b || "IE";
856855
tests = process.env.test || process.env.tests || process.env.t;
857856
var light = process.env.light || false;
@@ -864,7 +863,7 @@ task("runtests-browser", ["tests", "browserify", builtLocalDirectory, servicesFi
864863
}
865864

866865
tests = tests ? tests : '';
867-
var cmd = host + " tests/webTestServer.js " + port + " " + browser + " " + JSON.stringify(tests);
866+
var cmd = host + " tests/webTestServer.js " + browser + " " + JSON.stringify(tests);
868867
console.log(cmd);
869868
exec(cmd);
870869
}, {async: true});
@@ -1042,7 +1041,8 @@ var lintTargets = compilerSources
10421041
.concat(serverCoreSources)
10431042
.concat(tslintRulesFiles)
10441043
.concat(servicesSources)
1045-
.concat(["Gulpfile.ts"]);
1044+
.concat(["Gulpfile.ts"])
1045+
.concat([nodeServerInFile, perftscPath, "tests/perfsys.ts", webhostPath]);
10461046

10471047

10481048
desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"scripts": {
8080
"pretest": "jake tests",
81-
"test": "jake runtests",
81+
"test": "jake runtests-parallel",
8282
"build": "npm run build:compiler && npm run build:tests",
8383
"build:compiler": "jake local",
8484
"build:tests": "jake tests",

0 commit comments

Comments
 (0)