add book tasks
This commit is contained in:
parent
ba799ee110
commit
0d03a47eed
2 changed files with 15 additions and 3 deletions
15
book/justfile
Normal file
15
book/justfile
Normal 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
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CARGO_MANIFEST_DIR=$(pwd) cargo clean && cargo build && mdbook test -L target/debug/deps/
|
||||
Loading…
Reference in a new issue