-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
39 lines (32 loc) · 856 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
37
38
39
# This help screen
show-help:
just --list
# Test it was built ok
test:
RUST_BACKTRACE=1 cargo test
# Build release version
build:
npx tailwindcss -i ./input.css -o ./public/tailwind.css --minify
dx build --profile release
cargo build --profile release
# Run the dev server
dev: build
cargo shuttle run
# Deploy the server
deploy: build
cargo shuttle deploy --allow-dirty
# Lint it
lint:
cargo fmt --all -- --check
cargo clippy -- -D warnings -Dclippy::all -D clippy::pedantic -D clippy::cargo
cargo check
cargo audit
# Format what can be formatted
fmt:
cargo fix --allow-dirty --allow-staged
cargo clippy --allow-dirty --allow-staged --fix -- -D warnings -Dclippy::all -D clippy::pedantic -D clippy::cargo -D clippy::nursery
cargo fmt --all
npx prettier --write **.yml
# Clean the build directory
clean:
cargo clean