wasm-bindgen/examples/dom/build.sh

13 lines
334 B
Bash
Raw Normal View History

2018-03-21 18:26:00 +03:00
#!/bin/sh
2018-10-06 21:18:50 +03:00
# For more comments about what's going on here, see the `hello_world` example
2018-03-21 18:26:00 +03:00
set -ex
cargo +nightly build --target wasm32-unknown-unknown
2018-03-29 18:59:08 +03:00
cargo +nightly run --manifest-path ../../crates/cli/Cargo.toml \
2018-03-21 18:26:00 +03:00
--bin wasm-bindgen -- \
../../target/wasm32-unknown-unknown/debug/dom.wasm --out-dir .
npm install
npm run serve