Add a smorgasboard example

This commit is contained in:
Alex Crichton
2018-03-02 20:19:39 -08:00
parent 4aa6793b9e
commit 4ebb3df330
14 changed files with 213 additions and 1 deletions

15
examples/smorgasboard/build.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -ex
cargo +nightly build --target wasm32-unknown-unknown --release
# 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/release/smorgasboard.wasm --out-dir .
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .
npm install
npm run serve