forked from jbms/wasm-split-prototype
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (30 loc) · 1.44 KB
/
Copy pathjustfile
File metadata and controls
40 lines (30 loc) · 1.44 KB
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
set positional-arguments
mod webpack './integration/webpack/justfile'
[working-directory: 'integration']
test-integrations toolchain="":
cargo ${1:+"$1"} test --target wasm32-unknown-unknown --workspace
cargo ${1:+"$1"} test --workspace
XCARGO_REPORT_TAG=opt cargo ${1:+"$1"} test --target wasm32-unknown-unknown --workspace --config profile.test.opt-level=3
XCARGO_REPORT_TAG=release cargo ${1:+"$1"} test --target wasm32-unknown-unknown --workspace --release
test-all-integrations: (test-integrations "+stable") (test-integrations "+nightly") (test-integrations "+1.84")
test-cli:
cargo test -p wasm_split_helpers
cargo test -p wasm_split_cli_support --all-features
all-tests: test-all-integrations test-cli webpack::all-tests
fmt-check:
cargo fmt --all --check
cd integration && cargo fmt --all --check
cd test-runner && cargo fmt --all --check
clippy:
cargo +nightly clippy -- -Dwarnings
cargo +nightly clippy --target wasm32-unknown-unknown -- -Dwarnings
cargo +nightly clippy --profile=release --target wasm32-unknown-unknown -- -Dwarnings
cd integration && cargo +nightly clippy -- -Dwarnings
cd test-runner && cargo +nightly clippy -- -Dwarnings
semver-check:
cargo semver-checks
[private]
@clean-dir:
git diff --quiet HEAD || (echo >&2 "not in a clean working directory" && exit 1)
release-checks: clean-dir fmt-check clippy all-tests semver-check
pr-checks: clean-dir fmt-check clippy all-tests