add in build script

This commit is contained in:
iamBadgers
2024-06-08 15:35:02 -07:00
parent 9a20bfb8c8
commit 395c06e88e
2 changed files with 23 additions and 1 deletions

6
.gitignore vendored
View File

@@ -1,8 +1,12 @@
.DS_Store .DS_Store
node_modules node_modules
loader/venv
# dist folders
dist
frontend/dist frontend/dist
backend/dist backend/dist
loader/venv
# sqlite file # sqlite file
*.db *.db
*.sqbpro *.sqbpro

18
setup.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"/frontend
npm install
npm run build
cd ../
cp -r ./frontend/dist ./dist/frontend
cd "$parent_path"/frontend
npm install
npm run build
cd ../
cp -r ./backend/dist ./dist
cp ./backend/package.json ./dist/package.json
cd "$parent_path"/dist
npm install