forked from MutinyWallet/mutiny-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
51 lines (40 loc) · 2.14 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
pack:
wasm-pack build ./mutiny-wasm --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
dev:
wasm-pack build ./mutiny-wasm --dev --weak-refs --target web --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 --firefox ./mutiny-core
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --firefox ./mutiny-wasm
test-nix:
cargo test -p mutiny-core --target=aarch64-unknown-linux-gnu
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --firefox ./mutiny-core
WASM_BINDGEN_TEST_TIMEOUT=120 wasm-pack test --headless --firefox ./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
clippy-nix:
cargo clippy --all-features --tests --package mutiny-core --target=wasm32-unknown-unknown -- -D warnings
cargo clippy --all-features --tests --package mutiny-core --target=aarch64-unknown-linux-gnu -- -D warnings
cargo clippy --all-features --tests --package mutiny-wasm -- -D warnings