-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
56 lines (46 loc) · 1.07 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
alias b := build
alias l := lint
alias t := test
alias tc := test-coverage
build:
cargo check
cargo build
cargo build --release
build-local:
just build
sudo cp target/release/hitt /usr/local/bin/hitt-local
format:
just --fmt --unstable .
stylua .
mdsf format .
npx prettier --write --cache --ignore-unknown .
cargo fmt
lint:
cargo fmt -- --check --color always
cargo clippy --all-targets --all-features -- -D warnings
test:
just lint
RUST_BACKTRACE=full cargo test --release
test-coverage:
cargo llvm-cov clean --workspace
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
cargo llvm-cov --open
changelog:
npx auto-changelog -u
precommit:
just changelog
cargo clean
dist init --yes
just format
just build
just lint
just test
typos --exclude CHANGELOG.md .
publish-crates:
just build
just test
cargo publish -p hitt-formatter
cargo publish -p hitt-parser
cargo publish -p hitt-request
cargo publish -p hitt-sse
cargo publish -p hitt