add in build script
This commit is contained in:
1 parent
9a20bfb8c8
commit
395c06e88e
2 files changed
+23
-1
No files matched your search
+5
-1
@@ -1,8 +1,12 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
loader/venv
|
||||
|
||||
# dist folders
|
||||
dist
|
||||
frontend/dist
|
||||
backend/dist
|
||||
loader/venv
|
||||
|
||||
# sqlite file
|
||||
*.db
|
||||
*.sqbpro
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user