Add justfile task runner
Recipes: check (lint+test+tape-test), lint, test, tape-test, record. `just` with no args lists all recipes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b72a95f4ed
commit
4413f2229d
2 changed files with 34 additions and 0 deletions
|
|
@ -239,6 +239,15 @@ After cloning, enable the pre-commit hook (runs ShellCheck + tests):
|
||||||
git config core.hooksPath .githooks
|
git config core.hooksPath .githooks
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Common tasks via [`just`](https://github.com/casey/just):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
just check # lint + unit tests + tape tests
|
||||||
|
just test # unit tests only
|
||||||
|
just lint # ShellCheck only
|
||||||
|
just record # re-record demo GIFs with VHS
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
|
|
|
||||||
25
justfile
Normal file
25
justfile
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
# systab task runner — `just` to list all recipes
|
||||||
|
|
||||||
|
# List available recipes
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
# Run ShellCheck linter
|
||||||
|
lint:
|
||||||
|
shellcheck systab
|
||||||
|
|
||||||
|
# Run unit tests
|
||||||
|
test:
|
||||||
|
./test.sh
|
||||||
|
|
||||||
|
# Run demo tape command tests (no VHS required)
|
||||||
|
tape-test:
|
||||||
|
./demo/test-tapes.sh
|
||||||
|
|
||||||
|
# Run all checks: lint + unit tests + tape tests
|
||||||
|
check: lint test tape-test
|
||||||
|
|
||||||
|
# Record demo GIFs with VHS
|
||||||
|
record:
|
||||||
|
vhs demo/quickstart.tape
|
||||||
|
vhs demo/all-features.tape
|
||||||
Loading…
Add table
Add a link
Reference in a new issue