-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
62 lines (51 loc) · 1.42 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
60
61
62
build:
cargo check
cargo build
cargo build --release
build-local:
just build
sudo cp target/release/mdsf /usr/local/bin/mdsf-local
lint:
cargo fmt -- --check --color always
cargo clippy --all-targets --all-features
lint-aggressive:
cargo clean
cargo clippy --fix --allow-staged --all-targets --all-features -- -Dclippy::style -Dclippy::double_neg -Dclippy::perf -Dclippy::pedantic -Dclippy::all -Dclippy::cargo -Dclippy::complexity -Dclippy::nursery -Dclippy::suspicious -Aclippy::module_name_repetitions -Aclippy::missing_errors_doc -Aclippy::must_use_candidate -Aclippy::multiple_crate_versions
cargo clean
test:
just lint
RUST_BACKTRACE=full cargo test --release
test-coverage:
cargo llvm-cov clean
cargo llvm-cov --all-features --open
changelog:
npx auto-changelog -u
codegen:
just changelog
cargo run --package mdsf-codegen
cargo run --package mdsf-codegen
dist init --yes
just format
sort-json:
npx jsonlint -s -i mdsf.json
find ./tools -type f -name "*.json" -exec npx jsonlint -s -i {} \;
format:
taplo format
cargo fmt
just --fmt --unstable .
npx --yes prettier@latest --write --cache .
cargo run -- format .
dist init --yes
precommit:
cargo clean
just format
just codegen
just build
just lint
just test
just format
publish:
just build
just lint
cargo clean
cargo publish -p mdsf