-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (22 loc) · 713 Bytes
/
justfile
File metadata and controls
31 lines (22 loc) · 713 Bytes
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
set dotenv-load
default: linux self
linux:
cargo build --release --target=x86_64-unknown-linux-musl
self:
cargo build --release
alias ar := auto-reload
auto-reload:
fd -t f -e rs -e html -e css | entr -r cargo run
fmt:
cargo fmt
prettier --write "static/css/**/*.css" "templates/**/*.html"
lint:
cargo fmt
cargo clippy --fix --bin "jonathansm" --allow-dirty -- -D clippy::correctness -W clippy::suspicious -W clippy::complexity -D clippy::perf -W clippy::style -W clippy::pedantic
test:
cargo test
clean:
cargo test
deploy: linux
rsync -avzP target/x86_64-unknown-linux-musl/release/jonathansm $DEPLOY_SERVER:$DEPLOY_PATH
ssh -t "$DEPLOY_SERVER" "sudo systemctl restart jonathansm"