15 lines
212 B
Bash
Executable File
15 lines
212 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"
|