Updated and function for main and sum tests

Add build script
This commit is contained in:
2020-08-20 14:51:06 +07:00
parent afa4f43eb1
commit 39101f2081
3 changed files with 38 additions and 0 deletions

14
build Executable file
View File

@@ -0,0 +1,14 @@
#!/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"