wasm-bindgen/examples/smorgasboard/build.sh
2018-03-29 08:59:08 -07:00

16 lines
475 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/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