wasmweb-sample/run

21 lines
308 B
Bash
Executable File

#!/bin/bash
echo "build wasm pack..."
wasm-pack build
if [ $? -eq 0 ]
then
echo -e "\e[32mBuild successfully!"
else
echo -e "\e[31mBuild failed for wasm-pack into script!" >&2
exit 1
fi
echo -e "\e[39m"
echo "install deps...."
cd www && npm install
echo "starting development server..."
npm start