-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
60 lines (48 loc) · 911 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/just
_default:
clear && just --list --unsorted
# format, lint and serve
wfs:
cargo watch -s "just fl && just s"
# Serve web app
s:
@clear
@printf "\nhttp://127.0.0.1:8080/#dev\n\n"
@dx serve --hot-reload
# Watch web app
w:
@clear
@cargo watch -c -x "fmt --all && cargo clippy --locked --all-targets"
# Build .css file
bc:
sass --no-source-map style.scss:public/style.css
# Build debug profile
b:
@clear
@cargo build
# Run debug profile
r:
@clear
@cargo run
# Format and Lint
fl:
@clear
@cargo fmt --all
@cargo clippy --locked --all-targets
# Test all
t:
@clear
@cargo test
# Update locked Dependencies
u:
@clear
@cargo update
# Clean build artifacts, Cargo.lock and dist/
c:
@clear
@rm -rf target/
@rm Cargo.lock
@rm -rf dist/
# Create a new release
rel version:
bash scripts/release.sh {{ version }}