2018-09-15 23:28:15 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-10-06 20:18:50 +02:00
|
|
|
# For more comments about what's going on here, see the `hello_world` example
|
2018-09-15 23:28:15 -07:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
cd "$(dirname $0)"
|
|
|
|
|
2018-10-28 10:25:39 -07:00
|
|
|
cargo build --target wasm32-unknown-unknown
|
2018-09-15 23:28:15 -07:00
|
|
|
|
2018-10-28 10:25:39 -07:00
|
|
|
cargo run --manifest-path ../../crates/cli/Cargo.toml \
|
2018-09-15 23:28:15 -07:00
|
|
|
--bin wasm-bindgen -- \
|
2018-09-20 16:20:42 -07:00
|
|
|
../../target/wasm32-unknown-unknown/debug/webgl.wasm --out-dir .
|
2018-09-15 23:28:15 -07:00
|
|
|
|
|
|
|
npm install
|
|
|
|
npm run serve
|