-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
39 lines (32 loc) · 1.01 KB
/
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
_default:
@just --list
# run the server, watching for changes
watch:
@killall buenzlimarks &> /dev/null || true
cd server && cargo watch -x run
# run the server
run *args:
@cd server && cargo run -q -- {{ args }}
# run the web app devel server, watching for changes
app-watch:
@killall trunk &> /dev/null || true
cd app && trunk serve --open
# initialize a new development database
db-reset:
cd server && cargo run --bin db_reset
# render the documentation book, watching for changes
book-watch:
@killall mdbook &> /dev/null || true
cd docs && mdbook serve --port 5000
# render d2 diagrams, watching for changes
diagrams-watch:
watchexec --debounce 1000 \
--emit-events-to file \
--watch docs/diagrams \
--restart ./devel/render_diagrams.sh
# start a terminal workspace for development
zellij:
zellij --layout devel/zellij.kdl
@killall buenzlimarks &> /dev/null || true
@killall trunk &> /dev/null || true
@killall mdbook &> /dev/null || true