mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-19 03:30:52 +00:00
Adapted from https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes
16 lines
375 B
Bash
Executable File
16 lines
375 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# For more coments about what's going on here, see the `hello_world` example
|
|
|
|
set -ex
|
|
cd "$(dirname $0)"
|
|
|
|
cargo +nightly build --target wasm32-unknown-unknown
|
|
|
|
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
|
|
--bin wasm-bindgen -- \
|
|
../../target/wasm32-unknown-unknown/debug/wasm_bindgen_canvas_demo.wasm --out-dir .
|
|
|
|
npm install
|
|
npm run serve
|