2018-03-03 07:19:39 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2018-03-09 21:25:19 +03:00
|
|
|
cargo +nightly build --target wasm32-unknown-unknown
|
2018-03-03 07:19:39 +03:00
|
|
|
|
|
|
|
# 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 -- \
|
2018-03-09 21:25:19 +03:00
|
|
|
../../target/wasm32-unknown-unknown/debug/smorgasboard.wasm --out-dir .
|
2018-03-03 07:19:39 +03:00
|
|
|
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .
|
|
|
|
|
|
|
|
npm install
|
|
|
|
npm run serve
|