-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
36 lines (28 loc) · 813 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 b := build
alias c := check
alias cl := check-links
alias t := test
alias d := develop
alias dc := develop-client
# COMMANDS -----------------------------------------------------------------------------------------
# List commands
default:
@just --list
# Check
check:
cargo check && cargo clippy --all -- -W clippy::all
# Check links are valid
check-links:
lychee data.json --accept "200..=204, 403" -t 5
# Test
test: check
cargo test --all
# Build
build: test
cargo build --release
# Recompile then restart the server whenever any change is made
develop:
RUST_LOG="debug" cargo watch -q -c -w src/ -x "run"
# Re-run quick development queries whenever any change is made
develop-client:
cargo watch -q -c -w tests/ -w src/ -x "test -q quick_dev -- --ignored --nocapture"