main #8
2 changed files with 36 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
# build output
|
# build output
|
||||||
dist/
|
build/
|
||||||
# generated types
|
# generated types
|
||||||
.astro/
|
.astro/
|
||||||
|
|
||||||
|
|
38
build.sh
38
build.sh
|
@ -1,4 +1,36 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pnpm i
|
read -p "build the frontend? Yes(y) / No(n) / Cancel(c):- " choice
|
||||||
pnpm run build
|
if [ "$choice" = "y" ]; then
|
||||||
./backend/gradlew shadowJar
|
echo "building static site!"
|
||||||
|
pnpm i
|
||||||
|
pnpm run build
|
||||||
|
read -p "build the backend? Yes(y) / No(n) / Cancel(c):- " choice
|
||||||
|
if [ "$choice" = "y" ]; then
|
||||||
|
echo "building backend!"
|
||||||
|
cd backend
|
||||||
|
./gradlew shadowJar
|
||||||
|
elif [ "$choice" = "n" ]; then
|
||||||
|
echo "exiting..."
|
||||||
|
elif [ "$choice" = "c" ]; then
|
||||||
|
echo "build cancelled"
|
||||||
|
else
|
||||||
|
echo "no choice given, exiting..."
|
||||||
|
fi
|
||||||
|
elif [ "$choice" = "n" ]; then
|
||||||
|
read -p "build the backend? Yes(y) / No(n) / Cancel(c):- " choice
|
||||||
|
if [ "$choice" = "y" ]; then
|
||||||
|
echo "building backend!"
|
||||||
|
cd backend
|
||||||
|
./gradlew shadowJar
|
||||||
|
elif [ "$choice" = "n" ]; then
|
||||||
|
echo "exiting..."
|
||||||
|
elif [ "$choice" = "c" ]; then
|
||||||
|
echo "build cancelled"
|
||||||
|
else
|
||||||
|
echo "no choice given, exiting..."
|
||||||
|
fi
|
||||||
|
elif [ "$choice" = "c" ]; then
|
||||||
|
echo "Installation cancelled"
|
||||||
|
else
|
||||||
|
echo "No Choice given, exiting..."
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue