-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Justfile
36 lines (30 loc) · 881 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
alias release := backend-release
frontend:
#!/bin/bash -eux
cd frontend/
pnpm install
pnpm build
backend target="x86_64-unknown-linux-gnu": frontend
rm -f ./target/{{target}}/debug/deps/dietpi_dashboard-*
cargo build --target {{target}}
backend-release target="x86_64-unknown-linux-gnu": frontend
cargo build --target {{target}} --release
backend-only target="x86_64-unknown-linux-gnu":
cargo build --target {{target}} --release --no-default-features
ci target backend-only:
#!/bin/bash -eux
if {{backend-only}}; then
cross build --target {{target}} --release --no-default-features
else
just frontend
cross build --target {{target}} --release
fi
dev:
#!/bin/bash -eux
cd frontend/
pnpm install
pnpm dev &
cd ..
cargo run --features dev &
trap 'kill $(jobs -pr)' EXIT
wait