Organization and usefulness for the final user

This commit is contained in:
thecookingsenpai 2024-01-30 15:49:06 +01:00
parent 9bf005668b
commit 27a277cc5b
2 changed files with 30 additions and 4 deletions

View File

@ -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

16
dev_build.sh Normal file
View File

@ -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