hotel_pi/.vscode/tasks.json
2026-04-06 21:33:52 -04:00

61 lines
1.4 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "Frontend: Start Dev Server",
"type": "shell",
"command": "npm",
"args": ["run", "dev"],
"options": {
"cwd": "${workspaceFolder}/frontend"
},
"isBackground": true,
"problemMatcher": {
"pattern": {
"regexp": "^.*Local:.*http://localhost:(\\d+).*$",
"file": 1
},
"background": {
"activeOnStart": true,
"beginsPattern": "^.*VITE.*ready in.*",
"endsPattern": "^.*ready to accept connections.*"
}
}
},
{
"label": "Frontend: Stop Dev Server",
"type": "shell",
"command": "killall",
"args": ["node"],
"windows": {
"command": "taskkill",
"args": ["/IM", "node.exe", "/F"]
}
},
{
"label": "npm: Frontend Install",
"type": "shell",
"command": "npm",
"args": ["install"],
"options": {
"cwd": "${workspaceFolder}/frontend"
}
},
{
"label": "npm: Control Service Install",
"type": "shell",
"command": "npm",
"args": ["install"],
"options": {
"cwd": "${workspaceFolder}/control-service"
}
},
{
"label": "npm: npm install",
"type": "shell",
"dependsOn": ["npm: Frontend Install", "npm: Control Service Install"],
"dependsOrder": "parallel"
}
]
}