Files
bevy-template/.vscode/tasks.json
2026-04-22 20:55:36 +02:00

99 lines
2.3 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "requirements:check (native)",
"type": "shell",
"command": "bash ./scripts/check-requirements.sh --mode native",
"problemMatcher": []
},
{
"label": "requirements:check (nix)",
"type": "shell",
"command": "bash ./scripts/check-requirements.sh --mode nix-host && nix develop -c bash ./scripts/check-requirements.sh --mode nix-shell",
"problemMatcher": []
},
{
"label": "build:check (native)",
"type": "shell",
"command": "cargo check",
"group": "build",
"problemMatcher": [
"$rustc"
]
},
{
"label": "build:check (nix)",
"type": "shell",
"command": "nix develop -c cargo check",
"problemMatcher": [
"$rustc"
]
},
{
"label": "build:lint (native)",
"type": "shell",
"command": "cargo fmt --all && cargo check && cargo clippy --workspace --all-targets --all-features -- -D warnings",
"problemMatcher": [
"$rustc"
]
},
{
"label": "build:lint (nix)",
"type": "shell",
"command": "nix develop -c bash -lc 'cargo fmt --all && cargo check && cargo clippy --workspace --all-targets --all-features -- -D warnings'",
"problemMatcher": [
"$rustc"
]
},
{
"label": "dev:run (native)",
"type": "shell",
"command": "cargo run",
"problemMatcher": [
"$rustc"
]
},
{
"label": "dev:run (nix)",
"type": "shell",
"command": "nix develop -c cargo run",
"problemMatcher": [
"$rustc"
]
},
{
"label": "dev:watch (native)",
"type": "shell",
"command": "cargo watch -x run",
"problemMatcher": [
"$rustc"
]
},
{
"label": "dev:watch (nix)",
"type": "shell",
"command": "nix develop -c cargo watch -x run",
"problemMatcher": [
"$rustc"
]
},
{
"label": "run:release (native)",
"type": "shell",
"command": "cargo run --release --no-default-features",
"problemMatcher": [
"$rustc"
]
},
{
"label": "run:release (nix)",
"type": "shell",
"command": "nix develop -c cargo run --release --no-default-features",
"problemMatcher": [
"$rustc"
]
}
]
}