update comment to be more descriptive

This commit is contained in:
robert masen 2018-04-23 11:32:57 -05:00
parent 79a49b2a56
commit 6a6be7ef88

View File

@ -2,7 +2,10 @@
set -ex set -ex
# This is the same as the directory above this. # This is the same build.sh, later we are going to use the
# fetch flag to avoid including the wasm module as a string
# of base64, instead using the js `fetch` function
#to request the module from the server.
cargo +nightly build --target wasm32-unknown-unknown cargo +nightly build --target wasm32-unknown-unknown
cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \ cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
../../../target/wasm32-unknown-unknown/debug/hello_world.wasm --out-dir . ../../../target/wasm32-unknown-unknown/debug/hello_world.wasm --out-dir .
@ -12,7 +15,7 @@ cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
cargo +nightly run -p wasm-bindgen-cli --bin wasm2es6js -- \ cargo +nightly run -p wasm-bindgen-cli --bin wasm2es6js -- \
--fetch ./hello_world_bg.wasm -o hello_world_bg.js hello_world_bg.wasm --fetch ./hello_world_bg.wasm -o hello_world_bg.js hello_world_bg.wasm
# And like the directory above this, from here it's the same. # Install the npm items as usual.
npm install npm install
# since we kept the same name for the .js module, we need # since we kept the same name for the .js module, we need