2023-03-02 02:36:49 +00:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"type": "cargo",
|
|
|
|
"command": "clippy",
|
2023-04-04 05:39:07 +00:00
|
|
|
"problemMatcher": ["$rustc"],
|
2023-03-02 02:36:49 +00:00
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"label": "rust: cargo clippy",
|
2023-04-04 05:39:07 +00:00
|
|
|
"args": ["--all-targets", "--all-features", "--all"]
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "npm",
|
|
|
|
"script": "prep",
|
|
|
|
"label": "pnpm: prep",
|
|
|
|
"group": "none",
|
2023-04-04 05:39:07 +00:00
|
|
|
"problemMatcher": ["$rustc"]
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
2023-10-17 02:09:36 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "start",
|
|
|
|
"command": "sh",
|
|
|
|
"args": ["-c", "'pnpm i && pnpm prep'"],
|
|
|
|
"problemMatcher": ["$tsc-watch", "$rustc"]
|
|
|
|
},
|
2023-03-02 02:36:49 +00:00
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "ui:dev",
|
|
|
|
"problemMatcher": {
|
2023-03-10 16:25:58 +00:00
|
|
|
"base": "$tsc-watch",
|
2023-03-02 02:36:49 +00:00
|
|
|
"background": {
|
|
|
|
"activeOnStart": true,
|
2023-03-10 16:25:58 +00:00
|
|
|
"beginsPattern": "VITE v",
|
|
|
|
"endsPattern": "http://localhost:8001/"
|
2023-03-02 02:36:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"isBackground": true,
|
|
|
|
"command": "pnpm",
|
2023-04-04 05:39:07 +00:00
|
|
|
"args": ["desktop", "vite", "--clearScreen=false", "--mode=development"],
|
2023-03-02 02:36:49 +00:00
|
|
|
"runOptions": {
|
|
|
|
"instanceLimit": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"label": "ui:build",
|
|
|
|
"problemMatcher": "$tsc",
|
|
|
|
"command": "pnpm",
|
2023-04-04 05:39:07 +00:00
|
|
|
"args": ["desktop", "vite", "build"]
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "cargo",
|
|
|
|
"command": "run",
|
2023-04-14 21:21:21 +00:00
|
|
|
"args": [
|
|
|
|
"--manifest-path=./apps/desktop/src-tauri/Cargo.toml",
|
2023-12-19 09:28:57 +00:00
|
|
|
"--no-default-features",
|
|
|
|
"--features=ai-models"
|
2023-04-14 21:21:21 +00:00
|
|
|
],
|
2023-03-02 02:36:49 +00:00
|
|
|
"env": {
|
2023-10-05 07:21:37 +00:00
|
|
|
"RUST_BACKTRACE": "short"
|
2023-07-05 22:27:38 +00:00
|
|
|
// "RUST_LOG": "sd_core::invalidate-query=trace"
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
2023-04-04 05:39:07 +00:00
|
|
|
"problemMatcher": ["$rustc"],
|
2023-03-02 02:36:49 +00:00
|
|
|
"group": "build",
|
|
|
|
"label": "rust: run spacedrive",
|
2023-04-04 05:39:07 +00:00
|
|
|
"dependsOn": ["ui:dev"]
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "cargo",
|
|
|
|
"command": "run",
|
2023-04-04 05:39:07 +00:00
|
|
|
"args": ["--manifest-path=./apps/desktop/src-tauri/Cargo.toml", "--release"],
|
2023-03-02 02:36:49 +00:00
|
|
|
"env": {
|
2023-03-31 04:59:33 +00:00
|
|
|
"RUST_BACKTRACE": "short"
|
2023-03-02 02:36:49 +00:00
|
|
|
},
|
2023-04-04 05:39:07 +00:00
|
|
|
"problemMatcher": ["$rustc"],
|
2023-03-02 02:36:49 +00:00
|
|
|
"group": "build",
|
|
|
|
"label": "rust: run spacedrive release",
|
2023-04-04 05:39:07 +00:00
|
|
|
"dependsOn": ["ui:build"]
|
2023-03-02 02:36:49 +00:00
|
|
|
}
|
|
|
|
]
|
2023-04-04 05:39:07 +00:00
|
|
|
}
|