35 lines
1.0 KiB
TOML
35 lines
1.0 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 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.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" }]
|