我在 VSC 中设置了一些任务来运行我的客户端和 API。它们工作得很好,但是当我停止 API 时,终端无法手动重用。
说我运行任务,服务器启动正常。接下来我停止服务器,因为我想运行 npm install。是否有可能获得这种行为?
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"path": "client-ui/",
"group": "test",
"problemMatcher": [],
"label": "start client",
"detail": "start client",
"presentation": {
"group": "groupA"
}
},
{
"type": "npm",
"script": "start",
"path": "api/",
"group": "test",
"problemMatcher": [],
"label": "start api",
"detail": "start client",
"presentation": {
"group": "groupA"
}
},
{
"label": "Run Client and Api",
"dependsOn": [
"start api",
"start client"
],
"problemMatcher": [],
}
]
}