33 lines
631 B
Makefile
33 lines
631 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 crates/frontend/index.html
|