Skip to content

Commit ea9f999

Browse files
committed
Merge branch 'master' into vfs
2 parents 1efb844 + 1192a18 commit ea9f999

File tree

3,303 files changed

+127406
-91330
lines changed

Some content is hidden

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

3,303 files changed

+127406
-91330
lines changed

.circleci/config.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
workflows:
2+
version: 2
3+
main:
4+
jobs:
5+
- node9:
6+
filters:
7+
branches:
8+
only:
9+
- master
10+
- release-2.5
11+
- release-2.6
12+
- release-2.7
13+
- node8:
14+
filters:
15+
branches:
16+
only:
17+
- master
18+
- release-2.5
19+
- release-2.6
20+
- release-2.7
21+
- node6:
22+
filters:
23+
branches:
24+
only:
25+
- master
26+
- release-2.5
27+
- release-2.6
28+
- release-2.7
29+
nightly:
30+
triggers:
31+
- schedule:
32+
cron: "0 8 * * *"
33+
filters:
34+
branches:
35+
only: master
36+
jobs:
37+
- node9:
38+
filters:
39+
branches:
40+
only:
41+
- master
42+
- release-2.5
43+
- release-2.6
44+
- release-2.7
45+
context: nightlies
46+
- node8:
47+
filters:
48+
branches:
49+
only:
50+
- master
51+
- release-2.5
52+
- release-2.6
53+
- release-2.7
54+
context: nightlies
55+
- node6:
56+
filters:
57+
branches:
58+
only:
59+
- master
60+
- release-2.5
61+
- release-2.6
62+
- release-2.7
63+
context: nightlies
64+
65+
base: &base
66+
environment:
67+
- workerCount: 4
68+
steps:
69+
- checkout
70+
- run: |
71+
npm uninstall typescript --no-save
72+
npm uninstall tslint --no-save
73+
npm install
74+
#npm update Appeared in Jenkins only
75+
npm test
76+
77+
version: 2
78+
jobs:
79+
node9:
80+
docker:
81+
- image: circleci/node:9
82+
<<: *base
83+
node8:
84+
docker:
85+
- image: circleci/node:8
86+
<<: *base
87+
node6:
88+
docker:
89+
- image: circleci/node:6
90+
<<: *base

Gulpfile.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
5353
"ru": "runners", "runner": "runners",
5454
"r": "reporter",
5555
"c": "colors", "color": "colors",
56-
"f": "files", "file": "files",
5756
"w": "workers",
5857
},
5958
default: {
@@ -70,7 +69,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
7069
reporter: process.env.reporter || process.env.r,
7170
bail: false,
7271
lint: process.env.lint || true,
73-
files: process.env.f || process.env.file || process.env.files || "",
7472
workers: process.env.workerCount || os.cpus().length,
7573
}
7674
});
@@ -146,14 +144,16 @@ const es2017LibrarySource = [
146144
const es2017LibrarySourceMap = es2017LibrarySource.map(source =>
147145
({ target: "lib." + source, sources: ["header.d.ts", source] }));
148146

149-
const es2018LibrarySource = [];
147+
const es2018LibrarySource = [
148+
"es2018.regexp.d.ts",
149+
"es2018.promise.d.ts"
150+
];
150151
const es2018LibrarySourceMap = es2018LibrarySource.map(source =>
151152
({ target: "lib." + source, sources: ["header.d.ts", source] }));
152153

153154
const esnextLibrarySource = [
154155
"esnext.asynciterable.d.ts",
155-
"esnext.array.d.ts",
156-
"esnext.promise.d.ts"
156+
"esnext.array.d.ts"
157157
];
158158

159159
const esnextLibrarySourceMap = esnextLibrarySource.map(source =>
@@ -1146,13 +1146,11 @@ function spawnLintWorker(files: {path: string}[], callback: (failures: number) =
11461146

11471147
gulp.task("lint", "Runs tslint on the compiler sources. Optional arguments are: --f[iles]=regex", ["build-rules"], () => {
11481148
if (fold.isTravis()) console.log(fold.start("lint"));
1149-
const fileMatcher = cmdLineOptions.files;
1150-
const files = fileMatcher
1151-
? `src/**/${fileMatcher}`
1152-
: `Gulpfile.ts "scripts/generateLocalizedDiagnosticMessages.ts" "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
1153-
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1154-
console.log("Linting: " + cmd);
1155-
child_process.execSync(cmd, { stdio: [0, 1, 2] });
1149+
for (const project of ["scripts/tslint/tsconfig.json", "src/tsconfig-base.json"]) {
1150+
const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1151+
console.log("Linting: " + cmd);
1152+
child_process.execSync(cmd, { stdio: [0, 1, 2] });
1153+
}
11561154
if (fold.isTravis()) console.log(fold.end("lint"));
11571155
});
11581156

Jakefile.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,18 @@ var es2017LibrarySourceMap = es2017LibrarySource.map(function (source) {
127127
return { target: "lib." + source, sources: ["header.d.ts", source] };
128128
});
129129

130-
var es2018LibrarySource = [];
130+
var es2018LibrarySource = [
131+
"es2018.regexp.d.ts",
132+
"es2018.promise.d.ts"
133+
];
131134

132135
var es2018LibrarySourceMap = es2018LibrarySource.map(function (source) {
133136
return { target: "lib." + source, sources: ["header.d.ts", source] };
134137
});
135138

136139
var esnextLibrarySource = [
137140
"esnext.asynciterable.d.ts",
138-
"esnext.array.d.ts",
139-
"esnext.promise.d.ts"
141+
"esnext.array.d.ts"
140142
];
141143

142144
var esnextLibrarySourceMap = esnextLibrarySource.map(function (source) {
@@ -1334,15 +1336,13 @@ function spawnLintWorker(files, callback) {
13341336
desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");
13351337
task("lint", ["build-rules"], () => {
13361338
if (fold.isTravis()) console.log(fold.start("lint"));
1337-
const fileMatcher = process.env.f || process.env.file || process.env.files;
1338-
1339-
const files = fileMatcher
1340-
? `src/**/${fileMatcher}`
1341-
: `Gulpfile.ts scripts/generateLocalizedDiagnosticMessages.ts "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
1342-
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1343-
console.log("Linting: " + cmd);
1344-
jake.exec([cmd], () => {
1339+
function lint(project, cb) {
1340+
const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1341+
console.log("Linting: " + cmd);
1342+
jake.exec([cmd], cb, /** @type {jake.ExecOptions} */{ interactive: true, windowsVerbatimArguments: true });
1343+
}
1344+
lint("scripts/tslint/tsconfig.json", () => lint("src/tsconfig-base.json", () => {
13451345
if (fold.isTravis()) console.log(fold.end("lint"));
13461346
complete();
1347-
}, /** @type {jake.ExecOptions} */({ interactive: true }));
1347+
}));
13481348
});

0 commit comments

Comments
 (0)