addition of new dashboard
This commit is contained in:
17
bin/build-frontend.sh
Executable file
17
bin/build-frontend.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd frontend
|
||||
if [ ! -d node_modules ]; then
|
||||
npm install
|
||||
fi
|
||||
|
||||
set -x
|
||||
npm run build
|
||||
mkdir -p ../backend/ui
|
||||
cp -a ./dist/index.html ../backend/ui/
|
||||
cp -a ./dist/favicon.* ../backend/http/public/
|
||||
rm -rf ../backend/http/public/_astro
|
||||
cp -a ./dist/_astro ../backend/http/public/_astro
|
||||
rm -rf ../backend/http/public/fonts
|
||||
cp -a ./dist/fonts ../backend/http/public/fonts
|
||||
{ set +x; } 2>/dev/null
|
||||
Reference in New Issue
Block a user