Browse Source

Minor build fix

pull/1/head
Emil Ernerfeldt 6 years ago
parent
commit
25d049ae35
  1. 11
      build.sh

11
build.sh

@ -4,14 +4,18 @@ set -eu
# Pre-requisites:
rustup target add wasm32-unknown-unknown
if ! [[ $(wasm-bindgen --version) ]]; then
cargo install wasm-bindgen-cli
cargo install -f wasm-bindgen-cli
fi
if ! [[ -f docs/webassembly.d.ts ]]; then
curl https://raw.githubusercontent.com/01alchemist/webassembly-types/master/webassembly.d.ts > docs/webassembly.d.ts
fi
BUILD=debug
# BUILD=release
# Clear output from old stuff:
rm -rf docs/*.d.ts
# rm -rf docs/*.d.ts
rm -rf docs/*.js
rm -rf docs/*.wasm
@ -28,8 +32,9 @@ function build_rust
# --no-modules-global hoboho
}
echo "Compile typescript:"
build_rust
echo "Compile typescript:"
tsc
# wait || exit $?

Loading…
Cancel
Save