mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-10-29 17:06:12 +08:00
130 lines
4.4 KiB
JSON
130 lines
4.4 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Build compiler",
|
|
"type": "npm",
|
|
"script": "build",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"problemMatcher": ["$go"]
|
|
},
|
|
{
|
|
"label": "Watch compiler",
|
|
"type": "npm",
|
|
"script": "build:watch:debug",
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"problemMatcher": {
|
|
"owner": "hereby",
|
|
"fileLocation": "autoDetect",
|
|
"source": "hereby",
|
|
"applyTo": "closedDocuments",
|
|
"pattern": { "regexp": "" },
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": "\\[build:watch\\] changed due to",
|
|
"endsPattern": "\\[build:watch\\] run complete"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"label": "Test",
|
|
"type": "shell",
|
|
"command": "npx",
|
|
"args": ["hereby", "test"],
|
|
"group": "test",
|
|
"problemMatcher": ["$go"]
|
|
},
|
|
{
|
|
"label": "Lint",
|
|
"type": "shell",
|
|
"command": "npx",
|
|
"args": ["hereby", "lint"],
|
|
"problemMatcher": ["$go"]
|
|
},
|
|
{
|
|
"label": "Generate",
|
|
"type": "shell",
|
|
"command": "npx",
|
|
"args": ["hereby", "generate"],
|
|
"problemMatcher": ["$go"]
|
|
},
|
|
{
|
|
"label": "Build extension",
|
|
"type": "npm",
|
|
"script": "extension:build",
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
"$tsc",
|
|
// Copy-paste from https://github.com/connor4312/esbuild-problem-matchers to avoid the extension dependency
|
|
{
|
|
"owner": "esbuild",
|
|
"severity": "error",
|
|
"applyTo": "closedDocuments",
|
|
"source": "esbuild",
|
|
"fileLocation": "relative",
|
|
"pattern": [
|
|
{
|
|
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
|
|
"severity": 1,
|
|
"message": 2
|
|
},
|
|
{
|
|
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "Watch extension",
|
|
"type": "npm",
|
|
"script": "extension:watch",
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"problemMatcher": [
|
|
// Copy-paste from https://github.com/connor4312/esbuild-problem-matchers to avoid the extension dependency
|
|
{
|
|
"owner": "esbuild-watch",
|
|
"severity": "error",
|
|
"applyTo": "closedDocuments",
|
|
"source": "esbuild",
|
|
"fileLocation": "relative",
|
|
"pattern": [
|
|
{
|
|
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
|
|
"severity": 1,
|
|
"message": 2
|
|
},
|
|
{
|
|
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
|
|
"file": 1,
|
|
"line": 2,
|
|
"column": 3
|
|
}
|
|
],
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": {
|
|
"regexp": "\\[watch\\] build started"
|
|
},
|
|
"endsPattern": {
|
|
"regexp": "\\[watch\\] build finished"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"label": "Watch for extension run",
|
|
"dependsOn": ["Watch extension", "Watch compiler"]
|
|
}
|
|
]
|
|
}
|