Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuiRuTian committed Jul 7, 2020
2 parents 5a41201 + c12d431 commit 775fd9c
Show file tree
Hide file tree
Showing 220 changed files with 5,175 additions and 3,128 deletions.
18 changes: 18 additions & 0 deletions .github/tsc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "tsc",
"pattern": [
{
"regexp": "^(?:\\s+\\d+\\>)?([^\\s].*)\\((\\d+),(\\d+)\\)\\s*:\\s+(error|warning|info)\\s+(\\w{1,2}\\d+)\\s*:\\s*(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"code": 5,
"message": 6
}
]
}
]
}
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,19 @@ jobs:
run: |
npm uninstall typescript --no-save
npm uninstall tslint --no-save
- name: npm install and test
run: |
npm install
npm update
npm test
- run: npm install
- run: npm update

# Re: https://github.com/actions/setup-node/pull/125
- name: Register Problem Matcher for TSC
run: echo "##[add-matcher].github/tsc.json"

- name: Tests
run: npm test -- --no-lint

- name: Linter
run: npm run lint:ci

- name: Validate the browser can import TypeScript
run: gulp test-browser-integration

5 changes: 3 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,12 @@ const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lin
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
const eslint = (folder) => async () => {

const formatter = cmdLineOptions.ci ? "stylish" : "autolinkable-stylish";
const args = [
"node_modules/eslint/bin/eslint",
"--cache",
"--cache-location", `${folder}/.eslintcache`,
"--format", "autolinkable-stylish",
"--format", formatter,
"--rulesdir", "scripts/eslint/built/rules",
"--ext", ".ts",
];
Expand All @@ -367,7 +368,7 @@ const eslint = (folder) => async () => {

log(`Linting: ${args.join(" ")}`);
return exec(process.execPath, args);
}
};

const lintScripts = eslint("scripts");
lintScripts.displayName = "lint-scripts";
Expand Down
1,047 changes: 0 additions & 1,047 deletions lib/diagnosticMessages.generated.json

This file was deleted.

223 changes: 0 additions & 223 deletions lib/lib.esnext.array.d.ts

This file was deleted.

44 changes: 0 additions & 44 deletions lib/lib.esnext.asynciterable.d.ts

This file was deleted.

Loading

0 comments on commit 775fd9c

Please sign in to comment.