add in build script
This commit is contained in:
18
setup.sh
Executable file
18
setup.sh
Executable 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
|
||||
Reference in New Issue
Block a user