Minor build fix

This commit is contained in:
Emil Ernerfeldt 2018-12-30 11:01:14 +01:00
parent d05c03d1eb
commit 25d049ae35

View file

@ -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 $?