add install and build script

This commit is contained in:
b1ek 2023-03-19 12:41:53 +10:00
parent 4a6e55f570
commit 7e7791b828
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 15 additions and 0 deletions

15
install_and_build.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
yarn install
yarn run build
while true; do
read -p "Do you want to copy dist to ../../../public/static/dist? (Y/n): " yn
case $yn in
[Yy]* cp dist ../../../public/static/dist; break;;
[Nn]* break;;
[]* ) cp dist ../../../public/static/dist; break;;
* ) echo "(Y/n)";;
esac
done