runa/mise.toml

39 lines
1.1 KiB
TOML

[tools]
tombi = "latest"
[tasks.format]
description = "Format TOML, Rust, and extension files"
run = ["tombi format --offline", "cargo fmt --all", "npm --prefix vscode run format"]
[tasks.test]
description = "Run Rust and extension tests"
run = [
"cargo test --workspace",
"npm --prefix vscode test",
"npm --prefix vscode run test:integration",
]
[tasks.test-extension-host]
description = "Test the extension in VS Code (requires a display or xvfb-run)"
run = "npm --prefix vscode run test:host"
[tasks.start]
description = "Start the local Runa CLI"
run = "cargo run -p runa"
[tasks.serve]
description = "Run the local JSON-lines protocol server"
run = "cargo run -p runa-server"
[tasks.serve-network]
description = "Run the runa-debug WebSocket server on localhost"
run = "cargo run -p runa-server -- --listen 127.0.0.1:3737"
[tasks.lint]
description = "Check Rust targets and the TypeScript extension"
run = ["cargo clippy --workspace --all-targets -- -D warnings", "npm --prefix vscode run lint"]
[tasks.pre-commit]
description = "Format, lint, and test before committing"
run = [{ task = "format" }, { task = "lint" }, { task = "test" }]