Skip to content

Commit b9ef21d

Browse files
committed
Improve the tasks-settings of the template
1 parent 5de83eb commit b9ef21d

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

generators/app/templates/_.vscode/tasks.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"label": "Compile",
7+
"label": "Watch",
88
"type": "npm",
99
"script": "watch",
1010
"problemMatcher": "$tsc-watch",
@@ -16,9 +16,22 @@
1616
"cwd": "${workspaceFolder}"
1717
}
1818
},
19+
{
20+
"label": "Compile",
21+
"type": "npm",
22+
"script": "compile",
23+
"problemMatcher": "$tsc-watch",
24+
"isBackground": true,
25+
"presentation": {
26+
"reveal": "never"
27+
},
28+
"options": {
29+
"cwd": "${workspaceFolder}"
30+
}
31+
},
1932
{
2033
"label": "Build",
21-
"type": "process",
34+
"type": "shell",
2235
"command": "npm",
2336
"options": {
2437
"cwd": "${workspaceFolder}"
@@ -30,7 +43,8 @@
3043
"group": {
3144
"kind": "build",
3245
"isDefault": true
33-
}
46+
},
47+
"dependsOn": "Compile"
3448
}
3549
]
3650
}

0 commit comments

Comments
 (0)