wasm-bindgen/examples/duck-typed-interfaces/build.sh
2018-10-06 21:09:18 +02:00

16 lines
378 B
Bash
Executable File

#!/bin/sh
# For more comments 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/rust_duck_typed_interfaces.wasm --out-dir .
npm install
npm run serve