-
Notifications
You must be signed in to change notification settings - Fork 37
/
justfile
59 lines (45 loc) · 1.17 KB
/
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
setup:
cargo install git-cliff
rustup component add llvm-tools-preview --toolchain nightly
cargo install cargo-llvm-cov
install:
cargo install --path .
build:
cargo build --all
test:
cargo test --all
release:
cargo build --verbose --release --all
coverage:
cargo llvm-cov --all-features --workspace --html
server:
cargo run server
pages:
cargo run -- static
cargo build -p quake_wasm
cd quake_webapp && npm run local
# copy file after has dist
cp -a static_dump/* quake_webapp/dist/
cd quake_wasm && wasm-pack build --scope quakeworks --target web
mkdir -p quake_webapp/dist/js/dashboard/
cp quake_wasm/pkg/quake_wasm_bg.wasm quake_webapp/dist/js/dashboard/
@bench:
cargo bench
@lint:
rustup component add clippy
rustup component add rustfmt
cargo clippy -- -D warnings
cargo clippy --tests
cargo fmt -- --check
@fix:
cargo fmt --all
# cargo install cargo-bloat
@analysis:
cargo bloat --release -n 50
clean:
cargo clean
find . -type f -name "*.orig" -exec rm {} \;
find . -type f -name "*.bk" -exec rm {} \;
find . -type f -name ".*~" -exec rm {} \;
changelog:
git cliff --output CHANGELOG.md