wasmweb-sample/run

21 lines
308 B
Plaintext
Raw Normal View History

2020-08-20 12:33:29 +07:00
#!/bin/bash
2020-08-20 13:16:45 +07:00
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"
2020-08-20 12:33:29 +07:00
echo "install deps...."
cd www && npm install
echo "starting development server..."
npm start