add book tasks

This commit is contained in:
Jaroslaw Konik 2025-05-27 07:00:00 +02:00
parent ba799ee110
commit 0d03a47eed
2 changed files with 15 additions and 3 deletions

15
book/justfile Normal file
View file

@ -0,0 +1,15 @@
export CARGO_MANIFEST_DIR := `pwd`
build-deps:
cargo clean && cargo build
_test:
mdbook test -L target/debug/deps/
test: build-deps _test
test-watch: build-deps
watchexec --exts md just _test
serve:
mdbook serve

View file

@ -1,3 +0,0 @@
#!/bin/sh
CARGO_MANIFEST_DIR=$(pwd) cargo clean && cargo build && mdbook test -L target/debug/deps/