mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-19 08:02:09 +03:00
d8e5930799
Also clean up some other exampels
16 lines
488 B
Bash
Executable File
16 lines
488 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
cargo +nightly build --target wasm32-unknown-unknown
|
|
|
|
# Here we're using the version of the CLI in this repository, but for external
|
|
# usage you'd use the commented out version below
|
|
cargo +nightly run --manifest-path ../../crates/wasm-bindgen-cli/Cargo.toml \
|
|
--bin wasm-bindgen -- \
|
|
../../target/wasm32-unknown-unknown/debug/smorgasboard.wasm --out-dir .
|
|
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .
|
|
|
|
npm install
|
|
npm run serve
|