54 lines
1.4 KiB
TOML
54 lines
1.4 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.install-extension]
|
|
description = "Package and install the extension in local VS Code"
|
|
run = "npm --prefix vscode run install:local"
|
|
|
|
[tasks.package-extension]
|
|
description = "Generate vscode/runa.vsix for manual installation"
|
|
run = "npm --prefix vscode run package"
|
|
|
|
[tasks.serve]
|
|
description = "Start the Runa image server on localhost"
|
|
run = "cargo run --release -p runa"
|
|
|
|
[tasks.repl]
|
|
description = "Start the Runa REPL connected to the image server"
|
|
run = "cargo run --release -p runa-cli -- repl"
|
|
|
|
[tasks.ui]
|
|
description = "Start the Runa graphical world client"
|
|
run = "cargo run --release -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" }]
|