Skip to content

Commit

Permalink
chmod +x build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeMasen committed Jun 26, 2018
1 parent c3e6be9 commit 95e5407
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions examples/node_and_browser/build.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/sh

set -ex

# Build the `hello_world.wasm` file using Cargo/rustc
cargo +nightly build --target wasm32-unknown-unknown

# Run the `wasm-bindgen` CLI tool to postprocess the wasm file emitted by the
# Rust compiler to emit the JS support glue that's necessary
#
# 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/node_and_browser.wasm --out-dir . --both
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .

# Finally, package everything up using Webpack and start a server so we can
# browse the result
npm install
npm run serve
#!/bin/sh

set -ex

# Build the `hello_world.wasm` file using Cargo/rustc
cargo +nightly build --target wasm32-unknown-unknown

# Run the `wasm-bindgen` CLI tool to postprocess the wasm file emitted by the
# Rust compiler to emit the JS support glue that's necessary
#
# 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/node_and_browser.wasm --out-dir . --both
# wasm-bindgen ../../target/wasm32-unknown-unknown/hello_world.wasm --out-dir .

# Finally, package everything up using Webpack and start a server so we can
# browse the result
npm install
npm run serve

0 comments on commit 95e5407

Please sign in to comment.