forked from MutinyWallet/mutiny-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
38 lines (30 loc) · 1.51 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
pack:
wasm-pack build ./mutiny-wasm --dev --weak-refs --target web --scope mutinywallet
link:
wasm-pack build ./mutiny-wasm --dev --weak-refs --target web --scope mutinywallet && cd mutiny-wasm/pkg && pnpm link --global
login:
wasm-pack login --scope=@mutinywallet
release:
wasm-pack build ./mutiny-wasm --release --weak-refs --target web --scope mutinywallet
publish:
wasm-pack publish --access public -t web
[macos]
test:
cargo test -p mutiny-core --target=aarch64-apple-darwin
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --chrome ./mutiny-core
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --chrome ./mutiny-wasm
[linux]
test:
cargo test -p mutiny-core --target=x86_64-unknown-linux-gnu
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --chrome ./mutiny-core
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --chrome ./mutiny-wasm
[macos]
clippy:
cargo clippy --all-features --tests --package mutiny-core --target=wasm32-unknown-unknown -- -D warnings
cargo clippy --all-features --tests --package mutiny-core --target=aarch64-apple-darwin -- -D warnings
cargo clippy --all-features --tests --package mutiny-wasm -- -D warnings
[linux]
clippy:
cargo clippy --all-features --tests --package mutiny-core --target=wasm32-unknown-unknown -- -D warnings
cargo clippy --all-features --tests --package mutiny-core --target=x86_64-unknown-linux-gnu -- -D warnings
cargo clippy --all-features --tests --package mutiny-wasm -- -D warnings