From 27a277cc5bc07b9b07432b18e2300f420d675e8c Mon Sep 17 00:00:00 2001 From: thecookingsenpai Date: Tue, 30 Jan 2024 15:49:06 +0100 Subject: [PATCH] Organization and usefulness for the final user --- build.sh | 18 ++++++++++++++---- dev_build.sh | 16 ++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 dev_build.sh diff --git a/build.sh b/build.sh index fc39774..ba065e0 100755 --- a/build.sh +++ b/build.sh @@ -1,9 +1,19 @@ -#!/bin/zsh +#!/bin/bash +# REVIEW Above: bash is way more compatible than other shells # builds the latest version of the client and server -cd ../swingmusic-client -yarn build --outDir ../swingmusic/client +# REVIEW These are not useful if you dont have the source code +#cd ../swingmusic-client +#yarn build --outDir ../swingmusic/client +#../swingmusic -cd ../swingmusic +# REVIEW Cleaning up +rm -rf build dist + +# REVIEW Install poetry & requirements +pip install poetry +poetry install --no-root + +# Build the app poetry run python manage.py --build \ No newline at end of file diff --git a/dev_build.sh b/dev_build.sh new file mode 100644 index 0000000..09adbb8 --- /dev/null +++ b/dev_build.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# REVIEW Above: bash is way more compatible than other shells + +# builds the latest version of the client and server + +cd ../swingmusic-client || exit # REVIEW Failsafe exit + +yarn build --outDir ../swingmusic/client +cd ../swingmusic || exit # REVIEW Failsafe exit + +# REVIEW Optional cleaning up +# rm -rf build dist + +# REVIEW Install poetry & requirements +# Build the app +poetry run python manage.py --build \ No newline at end of file