-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathJustfile
More file actions
36 lines (25 loc) · 819 Bytes
/
Justfile
File metadata and controls
36 lines (25 loc) · 819 Bytes
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
alias b := build
alias r := release
release: build test lint
build:
cargo build --all-features
test *TEST:
cargo test {{TEST}}
lint: fmt clippy
fmt:
cargo fmt -- --version && cargo fmt --check
clippy *args:
cargo clippy --tests {{args}} -- -Adead-code -Dwarnings -Dclippy::dbg_macro
fix: (clippy "--fix --allow-dirty")
cargo fmt
test-cov:
cargo llvm-cov --features update-snapshots,skip-clean --no-fail-fast --lcov --output-path target/lcov.info
install-tools:
cargo install cargo-llvm-cov
wasm-build:
wasm-pack build --all-features --target=nodejs --dev --out-name=index --out-dir=target/wasm-package
wasm-test: wasm-build
cd wasm-tests && npm ci
rm -rf wasm-tests/node_modules/cdk-from-cfn
cp -R target/wasm-package wasm-tests/node_modules/cdk-from-cfn
cd wasm-tests && npm test