Merge pull request #3327 from Tyriar/tasks
Don't start npm start until watch is done
This commit is contained in:
Vendored
+68
-49
@@ -1,51 +1,70 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"echo": false,
|
"echo": false,
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"focus": false,
|
"focus": false,
|
||||||
"panel": "dedicated",
|
"panel": "dedicated",
|
||||||
"showReuseMessage": true
|
"showReuseMessage": true
|
||||||
},
|
},
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "test",
|
"script": "test",
|
||||||
"group": "test",
|
"group": "test",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "watch",
|
"script": "watch",
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"isBackground": true,
|
"isBackground": true,
|
||||||
"problemMatcher": [],
|
"problemMatcher": "$tsc-watch",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"group": "vscode"
|
"group": "vscode"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "npm",
|
"type": "npm",
|
||||||
"script": "start",
|
"script": "start",
|
||||||
"group": "build",
|
"dependsOn": "npm: watch",
|
||||||
"isBackground": true,
|
"group": "build",
|
||||||
"problemMatcher": [],
|
"isBackground": true,
|
||||||
"presentation": {
|
"problemMatcher": [],
|
||||||
"group": "vscode"
|
"presentation": {
|
||||||
}
|
"group": "vscode"
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"label": "Start demo",
|
{
|
||||||
"dependsOn": ["npm: watch", "npm: start"],
|
"label": "Start demo",
|
||||||
"group": {
|
"dependsOn": "npm: start",
|
||||||
"kind": "build",
|
"group": {
|
||||||
"isDefault": true
|
"kind": "build",
|
||||||
},
|
"isDefault": true
|
||||||
"isBackground": true,
|
},
|
||||||
"problemMatcher": [],
|
"isBackground": true,
|
||||||
"presentation": {
|
"problemMatcher": {
|
||||||
"group": "vscode"
|
"owner": "typescript",
|
||||||
}
|
"fileLocation": [
|
||||||
}
|
"relative",
|
||||||
]
|
"${workspaceFolder}"
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"location": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"beginsPattern": "assets by",
|
||||||
|
"endsPattern": "webpack \\d+\\.\\d+\\.\\d+ compiled successfully"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"presentation": {
|
||||||
|
"group": "vscode"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user