-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
42 lines (33 loc) · 860 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env just --justfile
set dotenv-load := true
library-name := "tempted-library"
# lists out all available recipes
list:
@just --list
# setup develop environment
init:
cargo binstall -V || cargo install cargo-binstall
cargo binstall mdbook --no-confirm
cargo binstall mdbook-admonish --no-confirm
cargo binstall mdbook-mermaid --no-confirm
cargo binstall cargo-generate --no-confirm
# create docs
docs:
mdbook build
docs-serve:
mdbook serve -p 8003 --open
generate-tempted-library:
cargo generate --path . --lib --name {{library-name}}
cd {{library-name}} && just init
# build out template variations
generate:
@just clean
@just generate-tempted-library
ci:
@just generate
cd {{library-name}} && just test
cd {{library-name}} && just benchmark
# clean up all builds
clean:
rm -rf book
rm -rf {{library-name}}