92 lines
2.1 KiB
JSON
92 lines
2.1 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}/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": "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
|
|
}
|
|
}
|
|
]
|
|
} |