runa/mise.toml

39 lines
1.1 KiB
TOML
Raw Normal View History

[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 Runa image server on localhost"
run = "cargo run -p runa"
[tasks.repl]
description = "Start the Runa REPL connected to the image server"
run = "cargo run -p runa-cli -- repl"
[tasks.world]
description = "Start the Runa graphical world client"
run = "cargo run -p runa-world"
[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" }]