achievements/justfile

33 lines
649 B
Makefile

_list:
@just --list --unsorted
# Check project
check:
just --unstable --fmt --check
cargo fmt --check
taplo fmt --check `fd --extension=toml`
taplo lint `fd --extension=toml`
cargo check
cargo nextest run
nix flake show
# Format project
fmt:
just --unstable --fmt
cargo fmt
taplo fmt `fd --extension=toml`
run-backend:
RUST_LOG=backend=debug cargo run -p backend
# POST /create
create-gul-bus:
xh post 127.0.0.1:4000/create goal='pej på en gul bus'
# ws://<host>/ws
subscribe-ws:
websocat ws://127.0.0.1:4000/ws
trunk-serve:
trunk serve --address=0.0.0.0 crates/frontend/index.html