-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
20 lines (16 loc) · 873 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
build-examples:
for dir in examples/crates/*; do \
if [ -f $dir/Cargo.toml ]; then \
cargo component build --manifest-path=$dir/Cargo.toml --workspace; \
cargo component build --release --manifest-path=$dir/Cargo.toml --workspace; \
fi \
done
build: build-examples
cargo component build --manifest-path=crates/seed-keeper-wallet/Cargo.toml
cargo component build --manifest-path=crates/seed-keeper-wit-ui/Cargo.toml
cargo component build --manifest-path=crates/seed-keeper-wallet/Cargo.toml --release
cargo component build --manifest-path=crates/seed-keeper-wit-ui/Cargo.toml --release
compose: build
wasm-tools compose --config examples/crates/aggregate-wit-ui/config.yml -o examples/aggregate.wasm target/wasm32-wasi/release/aggregate_wit_ui.wasm
preview: compose
cd examples/sveltekit && npm run build && npm run preview -- --open