echoer/.vscode/tasks.json

92 lines
2.1 KiB
JSON
Raw Permalink Normal View History

2024-12-20 23:45:25 +08:00
{
"version": "2.0.0",
"tasks": [
{
2025-01-05 21:38:27 +08:00
"label": "server",
2024-12-20 23:45:25 +08:00
"type": "shell",
"command": "cargo run",
"options": {
2025-01-05 21:38:27 +08:00
"cwd": "${workspaceFolder}/server"
2024-12-20 23:45:25 +08:00
},
"problemMatcher": [
2025-01-05 21:38:27 +08:00
"$rustc"
2024-12-20 23:45:25 +08:00
]
},
{
2025-01-05 21:38:27 +08:00
"label": "server-fmt",
2024-12-20 23:45:25 +08:00
"type": "shell",
"command": "cargo fmt",
"options": {
2025-01-05 21:38:27 +08:00
"cwd": "${workspaceFolder}/server"
2024-12-20 23:45:25 +08:00
},
"problemMatcher": []
},
{
2025-01-05 21:38:27 +08:00
"label": "client-dev",
2024-12-20 23:45:25 +08:00
"type": "shell",
"command": "dx serve",
2024-12-20 23:45:25 +08:00
"options": {
2025-01-05 21:38:27 +08:00
"cwd": "${workspaceFolder}/client"
2024-12-20 23:45:25 +08:00
},
"problemMatcher": []
},
2025-01-05 21:38:27 +08:00
{
"label": "client-start",
"type": "shell",
"command": "serve .",
"options": {
"cwd": "${workspaceFolder}/target/dx/client/release/web/public"
},
"problemMatcher": []
},
{
2025-01-05 21:38:27 +08:00
"label": "client-build",
2024-12-20 23:45:25 +08:00
"type": "shell",
"command": "dx build --release",
"options": {
2025-01-05 21:38:27 +08:00
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
2025-01-05 21:38:27 +08:00
"label": "client-tailwind-build",
"type": "shell",
"command": "npx tailwindcss -i ./tailwind.css -o ./assets/styling/tailwind.css",
2024-12-20 23:45:25 +08:00
"options": {
2025-01-05 21:38:27 +08:00
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
"label": "client-fmt",
"type": "shell",
"command": "cargo fmt",
"options": {
"cwd": "${workspaceFolder}/client"
2024-12-20 23:45:25 +08:00
},
"problemMatcher": []
},
{
"label": "format-all",
"dependsOn": [
2025-01-05 21:38:27 +08:00
"server-fmt",
"client-fmt",
"common-fmt"
2024-12-20 23:45:25 +08:00
],
"dependsOrder": "parallel",
"problemMatcher": []
},
{
"label": "run-all",
"dependsOn": [
2025-01-05 21:38:27 +08:00
"server",
"client-dev"
2024-12-20 23:45:25 +08:00
],
"dependsOrder": "parallel",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}