Skip to content

Commit 0031d88

Browse files
author
Andy Hanson
committed
Merge branch 'master' into helpers
2 parents c4292a0 + e4e4b17 commit 0031d88

File tree

1,110 files changed

+88475
-60413
lines changed

Some content is hidden

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

1,110 files changed

+88475
-60413
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: 5 additions & 9 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: {
@@ -69,7 +68,6 @@ const cmdLineOptions = minimist(process.argv.slice(2), {
6968
light: process.env.light === undefined || process.env.light !== "false",
7069
reporter: process.env.reporter || process.env.r,
7170
lint: process.env.lint || true,
72-
files: process.env.f || process.env.file || process.env.files || "",
7371
workers: process.env.workerCount || os.cpus().length,
7472
}
7573
});
@@ -1112,13 +1110,11 @@ function spawnLintWorker(files: {path: string}[], callback: (failures: number) =
11121110

11131111
gulp.task("lint", "Runs tslint on the compiler sources. Optional arguments are: --f[iles]=regex", ["build-rules"], () => {
11141112
if (fold.isTravis()) console.log(fold.start("lint"));
1115-
const fileMatcher = cmdLineOptions.files;
1116-
const files = fileMatcher
1117-
? `src/**/${fileMatcher}`
1118-
: `Gulpfile.ts "scripts/generateLocalizedDiagnosticMessages.ts" "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
1119-
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1120-
console.log("Linting: " + cmd);
1121-
child_process.execSync(cmd, { stdio: [0, 1, 2] });
1113+
for (const project of ["scripts/tslint/tsconfig.json", "src/tsconfig-base.json"]) {
1114+
const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1115+
console.log("Linting: " + cmd);
1116+
child_process.execSync(cmd, { stdio: [0, 1, 2] });
1117+
}
11221118
if (fold.isTravis()) console.log(fold.end("lint"));
11231119
});
11241120

Jakefile.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ var harnessSources = harnessCoreSources.concat([
141141
"typingsInstaller.ts",
142142
"projectErrors.ts",
143143
"matchFiles.ts",
144+
"organizeImports.ts",
144145
"initializeTSConfig.ts",
145146
"extractConstants.ts",
146147
"extractFunctions.ts",
@@ -1301,15 +1302,13 @@ function spawnLintWorker(files, callback) {
13011302
desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");
13021303
task("lint", ["build-rules"], () => {
13031304
if (fold.isTravis()) console.log(fold.start("lint"));
1304-
const fileMatcher = process.env.f || process.env.file || process.env.files;
1305-
1306-
const files = fileMatcher
1307-
? `src/**/${fileMatcher}`
1308-
: `Gulpfile.ts scripts/generateLocalizedDiagnosticMessages.ts "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
1309-
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1310-
console.log("Linting: " + cmd);
1311-
jake.exec([cmd], { interactive: true }, () => {
1305+
function lint(project, cb) {
1306+
const cmd = `node node_modules/tslint/bin/tslint --project ${project} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
1307+
console.log("Linting: " + cmd);
1308+
jake.exec([cmd], { interactive: true, windowsVerbatimArguments: true }, cb);
1309+
}
1310+
lint("scripts/tslint/tsconfig.json", () => lint("src/tsconfig-base.json", () => {
13121311
if (fold.isTravis()) console.log(fold.end("lint"));
13131312
complete();
1314-
});
1313+
}));
13151314
});

0 commit comments

Comments
 (0)