echoer/.vscode/tasks.json
2025-01-05 21:38:27 +08:00

101 lines
2.3 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "server",
"type": "shell",
"command": "cargo run",
"options": {
"cwd": "${workspaceFolder}/server"
},
"problemMatcher": [
"$rustc"
]
},
{
"label": "server-fmt",
"type": "shell",
"command": "cargo fmt",
"options": {
"cwd": "${workspaceFolder}/server"
},
"problemMatcher": []
},
{
"label": "client-dev",
"type": "shell",
"command": "dx serve",
"options": {
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
"label": "client-start",
"type": "shell",
"command": "serve .",
"options": {
"cwd": "${workspaceFolder}/client/target/dx/client/release/web/public"
},
"problemMatcher": []
},
{
"label": "client-build",
"type": "shell",
"command": "dx build --release",
"options": {
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
"label": "client-tailwind-build",
"type": "shell",
"command": "npx tailwindcss -i ./tailwind.css -o ./assets/styling/tailwind.css",
"options": {
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
"label": "client-fmt",
"type": "shell",
"command": "cargo fmt",
"options": {
"cwd": "${workspaceFolder}/client"
},
"problemMatcher": []
},
{
"label": "common-fmt",
"type": "shell",
"command": "cargo fmt",
"options": {
"cwd": "${workspaceFolder}/common"
},
"problemMatcher": []
},
{
"label": "format-all",
"dependsOn": [
"server-fmt",
"client-fmt",
"common-fmt"
],
"dependsOrder": "parallel",
"problemMatcher": []
},
{
"label": "run-all",
"dependsOn": [
"server",
"client-dev"
],
"dependsOrder": "parallel",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}