This commit is contained in:
Simon Gardling
2022-02-10 17:44:29 -05:00
commit 1bd2f919a8
12 changed files with 1085 additions and 0 deletions

23
start-server.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
CONFIG=release
mkdir -p www/pkg
rustup target add wasm32-unknown-unknown
if [ -z "$(cargo install --list | grep wasm-pack)" ]
then
cargo install wasm-pack
fi
if [ "${CONFIG}" = "release" ]
then
wasm-pack build
else
wasm-pack build --release
fi
cd www
npm install
npm start