2023-03-19 03:41:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
yarn install
|
|
|
|
|
|
|
|
yarn run build
|
|
|
|
|
|
|
|
while true; do
|
2023-03-21 14:09:23 +01:00
|
|
|
read -p "Do you want to copy dist to ../../public/static/dist? (Y/n): " yn
|
2023-03-19 03:41:53 +01:00
|
|
|
case $yn in
|
2023-03-21 14:09:23 +01:00
|
|
|
[Yy]* cp dist ../../public/static/dist; break;;
|
2023-03-19 03:41:53 +01:00
|
|
|
[Nn]* break;;
|
2023-03-21 14:09:23 +01:00
|
|
|
[]* ) cp dist ../../public/static/dist; break;;
|
2023-03-19 03:41:53 +01:00
|
|
|
* ) echo "(Y/n)";;
|
|
|
|
esac
|
|
|
|
done
|