2026-11-01 19:28:32 +00:00
|
|
|
[tools]
|
|
|
|
|
tombi = "latest"
|
|
|
|
|
|
|
|
|
|
[tasks.format]
|
2026-11-03 13:52:28 +00:00
|
|
|
description = "Format TOML, Rust, and extension files"
|
|
|
|
|
run = ["tombi format --offline", "cargo fmt --all", "npm --prefix vscode run format"]
|
2026-11-01 19:28:32 +00:00
|
|
|
|
|
|
|
|
[tasks.test]
|
2026-11-03 13:52:28 +00:00
|
|
|
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"
|
2026-11-01 19:28:32 +00:00
|
|
|
|
2026-11-03 13:41:46 +00:00
|
|
|
[tasks.start]
|
2026-11-03 14:49:35 +00:00
|
|
|
description = "Start the Runa image server on localhost"
|
2026-11-02 09:24:43 +00:00
|
|
|
run = "cargo run -p runa"
|
|
|
|
|
|
2026-11-03 16:13:15 +00:00
|
|
|
[tasks.repl]
|
|
|
|
|
description = "Start the Runa REPL connected to the image server"
|
|
|
|
|
run = "cargo run -p runa-cli -- repl"
|
2026-11-02 13:50:30 +00:00
|
|
|
|
2026-11-04 03:49:07 +00:00
|
|
|
[tasks.world]
|
|
|
|
|
description = "Start the Runa graphical world client"
|
|
|
|
|
run = "cargo run -p runa-world"
|
|
|
|
|
|
2026-11-01 19:28:32 +00:00
|
|
|
[tasks.lint]
|
2026-11-03 13:52:28 +00:00
|
|
|
description = "Check Rust targets and the TypeScript extension"
|
|
|
|
|
run = ["cargo clippy --workspace --all-targets -- -D warnings", "npm --prefix vscode run lint"]
|
2026-11-01 19:28:32 +00:00
|
|
|
|
|
|
|
|
[tasks.pre-commit]
|
|
|
|
|
description = "Format, lint, and test before committing"
|
|
|
|
|
run = [{ task = "format" }, { task = "lint" }, { task = "test" }]
|