Skip to content

Commit

Permalink
Update Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Dec 10, 2022
1 parent 1704ec3 commit da5a86f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
run example_name:
cargo run --release --example {{example_name}}
run EXAMPLE_NAME:
cargo run --release --example {{EXAMPLE_NAME}}

build example_name:
cargo build --release --example {{example_name}}
build EXAMPLE_NAME:
cargo build --release --example {{EXAMPLE_NAME}}

serve example_name: (build_web example_name)
serve EXAMPLE_NAME: (build-web EXAMPLE_NAME)
miniserve --index index.html examples/wasm

build_web example_name:
cargo build --release --example {{example_name}} --target wasm32-unknown-unknown
wasm-bindgen --target web --out-dir examples/wasm/target --out-name wasm_example \
target/wasm32-unknown-unknown/release/examples/{{example_name}}.wasm
build-web EXAMPLE_NAME:
cargo build --release --example {{EXAMPLE_NAME}} --target wasm32-unknown-unknown
wasm-bindgen --target web --no-typescript --out-dir examples/wasm/target --out-name wasm_example \
target/wasm32-unknown-unknown/release/examples/{{EXAMPLE_NAME}}.wasm

0 comments on commit da5a86f

Please sign in to comment.