From 4d799b6151d40149184563af1086d512f779231a Mon Sep 17 00:00:00 2001 From: Josh Finlay Date: Mon, 6 Jan 2025 10:56:52 +1000 Subject: [PATCH] Added build script --- build.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e8ac0e3 --- /dev/null +++ b/build.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Exit on any error +set -e + +echo "🏗️ Building DLB Gatekeeper..." + +# Build Frontend +echo "📦 Building Frontend..." +cd frontend +npm install +npm run build +cd .. + +# Build Backend +echo "📦 Building Backend..." +cd backend +npm install +npm run build +cd .. + +# Create dist directory if it doesnt exist +mkdir -p dist + +# Copy frontend build to dist +echo "📋 Copying frontend build..." +cp -r frontend/dist/* dist/ + +# Copy backend build to dist +echo "📋 Copying backend build..." +cp -r backend/dist/* dist/ + +echo "✅ Build complete!"