Skip to content

Commit 8f9f255

Browse files
authored
Merge pull request #3327 from Tyriar/tasks
Don't start npm start until watch is done
2 parents 07c1233 + 6736950 commit 8f9f255

File tree

1 file changed

+68
-49
lines changed

1 file changed

+68
-49
lines changed

.vscode/tasks.json

Lines changed: 68 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,70 @@
11
{
2-
"version": "2.0.0",
3-
"presentation": {
4-
"echo": false,
5-
"reveal": "always",
6-
"focus": false,
7-
"panel": "dedicated",
8-
"showReuseMessage": true
9-
},
10-
"tasks": [
11-
{
12-
"type": "npm",
13-
"script": "test",
14-
"group": "test",
15-
"problemMatcher": []
16-
},
17-
{
18-
"type": "npm",
19-
"script": "watch",
20-
"group": "build",
21-
"isBackground": true,
22-
"problemMatcher": [],
23-
"presentation": {
24-
"group": "vscode"
25-
}
26-
},
27-
{
28-
"type": "npm",
29-
"script": "start",
30-
"group": "build",
31-
"isBackground": true,
32-
"problemMatcher": [],
33-
"presentation": {
34-
"group": "vscode"
35-
}
36-
},
37-
{
38-
"label": "Start demo",
39-
"dependsOn": ["npm: watch", "npm: start"],
40-
"group": {
41-
"kind": "build",
42-
"isDefault": true
43-
},
44-
"isBackground": true,
45-
"problemMatcher": [],
46-
"presentation": {
47-
"group": "vscode"
48-
}
49-
}
50-
]
2+
"version": "2.0.0",
3+
"presentation": {
4+
"echo": false,
5+
"reveal": "always",
6+
"focus": false,
7+
"panel": "dedicated",
8+
"showReuseMessage": true
9+
},
10+
"tasks": [
11+
{
12+
"type": "npm",
13+
"script": "test",
14+
"group": "test",
15+
"problemMatcher": []
16+
},
17+
{
18+
"type": "npm",
19+
"script": "watch",
20+
"group": "build",
21+
"isBackground": true,
22+
"problemMatcher": "$tsc-watch",
23+
"presentation": {
24+
"group": "vscode"
25+
}
26+
},
27+
{
28+
"type": "npm",
29+
"script": "start",
30+
"dependsOn": "npm: watch",
31+
"group": "build",
32+
"isBackground": true,
33+
"problemMatcher": [],
34+
"presentation": {
35+
"group": "vscode"
36+
}
37+
},
38+
{
39+
"label": "Start demo",
40+
"dependsOn": "npm: start",
41+
"group": {
42+
"kind": "build",
43+
"isDefault": true
44+
},
45+
"isBackground": true,
46+
"problemMatcher": {
47+
"owner": "typescript",
48+
"fileLocation": [
49+
"relative",
50+
"${workspaceFolder}"
51+
],
52+
"pattern": [
53+
{
54+
"regexp": "^([^\\\\s].*)\\\\((\\\\d+,\\\\d+)\\\\):\\\\s*(.*)$",
55+
"file": 1,
56+
"location": 2,
57+
"message": 3
58+
}
59+
],
60+
"background": {
61+
"beginsPattern": "assets by",
62+
"endsPattern": "webpack \\d+\\.\\d+\\.\\d+ compiled successfully"
63+
}
64+
},
65+
"presentation": {
66+
"group": "vscode"
67+
}
68+
}
69+
]
5170
}

0 commit comments

Comments
 (0)