-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Justfile
48 lines (44 loc) · 1.81 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
default:
@just --list
# build the library
build:
cargo build --release
# detect linting problems.
lint:
cargo fmt --all -- --check --unstable-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo check --workspace --locked
# fix linting problems.
fix:
cargo clippy --workspace --all-targets --all-features --fix --allow-dirty --allow-staged
cargo fix --allow-dirty --allow-staged
cargo fmt --all -- --unstable-features
publish:
# Note: the order of publishing is important, as some crates depend on others.
cargo publish -p mago-casing --allow-dirty
cargo publish -p mago-fixer --allow-dirty
cargo publish -p mago-trinary --allow-dirty
cargo publish -p mago-interner --allow-dirty
cargo publish -p mago-source --allow-dirty
cargo publish -p mago-span --allow-dirty
cargo publish -p mago-reporting --allow-dirty
cargo publish -p mago-reflection --allow-dirty
cargo publish -p mago-token --allow-dirty
cargo publish -p mago-ast --allow-dirty
cargo publish -p mago-walker --allow-dirty
cargo publish -p mago-traverser --allow-dirty
cargo publish -p mago-ast-utils --allow-dirty
cargo publish -p mago-composer --allow-dirty
cargo publish -p mago-docblock --allow-dirty
cargo publish -p mago-feedback --allow-dirty
cargo publish -p mago-lexer --allow-dirty
cargo publish -p mago-parser --allow-dirty
cargo publish -p mago-formatter --allow-dirty
cargo publish -p mago-names --allow-dirty
cargo publish -p mago-symbol-table --allow-dirty
cargo publish -p mago-semantics --allow-dirty
cargo publish -p mago-typing --allow-dirty
cargo publish -p mago-reflector --allow-dirty
cargo publish -p mago-linter --allow-dirty
cargo publish -p mago-wasm --allow-dirty
cargo publish --allow-dirty