-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathJustfile
73 lines (59 loc) · 1.3 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
run *args:
cd app \
&& cargo run --release -- \
serve \
../data \
--http 127.0.0.1:1313 \
--ssh 127.0.0.1:1314 \
{{ args }}
toolbox *args:
cd app \
&& cargo run --release -- \
toolbox \
{{ args }}
web:
cd web \
&& npm run dev
# ---
check:
cd app \
&& cargo check --workspace \
&& cargo check --workspace --tests \
&& cargo clippy --workspace \
&& cargo clippy --workspace --tests \
&& cargo doc -p kartoffel
clean:
cd app \
&& cargo clean
doc *args:
cd app \
&& cargo doc -p kartoffel {{ args }}
fmt:
cd app \
&& cargo fmt
test:
cd app \
&& cargo test --release --workspace
test-and-bless:
BLESS=1 just test
bless:
fd -e new --no-ignore-vcs --full-path --exec mv {} {.}
perf:
cd app \
&& cargo build --release \
&& perf record --call-graph dwarf \
./target/release/kartoffels \
serve \
../data \
--debug \
--bench \
--ssh 127.0.0.1:1314
# ---
demo:
sudo nixos-container update demo --flake .
sudo nixos-container start demo
@echo
@echo "ready:"
@echo "http://$(nixos-container show-ip demo)"
stop-demo:
sudo nixos-container stop demo