Add console and web sys for logging

This commit is contained in:
2020-08-20 13:16:45 +07:00
parent b04176248d
commit 9a7f63c7bc
5 changed files with 40 additions and 2 deletions

13
run
View File

@@ -1,5 +1,18 @@
#!/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