.vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "npm",
"type": "shell",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"tasks": [
{
"label": "install",
"args": ["install"]
},
{
"label": "build",
"args": ["run", "build"],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$tsc-watch",
"$tsc"
]
},
{
"label": "run",
"args": ["start"],
"group": {
"kind": "test",
"isDefault": true
},
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"fileLocation": "relative",
"pattern": {
"regexp": "^\\[watch\\]([^\\s].*)\\((\\d+|\\,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
"file": 1,
"location": 2,
"severity": 3,
"code": 4,
"message": 5
},
"background": {
"activeOnStart": true,
"beginsPattern": "built",
"endsPattern": "watch"
}
}
},
{
"label": "clean",
"args": ["run", "clean"]
}
]
}