Skip to content

Commit 7b7efaf

Browse files
committed
add build script
1 parent 0e3e070 commit 7b7efaf

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

scripts/build-all.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "======================================"
5+
echo "Building Dashtec Monorepo for Production"
6+
echo "======================================"
7+
8+
# Check if pnpm is installed
9+
if ! command -v pnpm &> /dev/null; then
10+
echo "Error: pnpm is not installed"
11+
exit 1
12+
fi
13+
14+
# Clean previous builds
15+
echo ""
16+
echo "📦 Cleaning previous builds..."
17+
pnpm clean
18+
19+
# Install dependencies
20+
echo ""
21+
echo "📦 Installing dependencies..."
22+
pnpm install --frozen-lockfile
23+
24+
# Generate Prisma client
25+
echo ""
26+
echo "🔧 Generating Prisma client..."
27+
pnpm db:generate
28+
29+
# Build all packages
30+
echo ""
31+
echo "🚀 Building all packages..."
32+
pnpm build
33+
34+
echo ""
35+
echo "======================================"
36+
echo "✅ Build completed successfully!"
37+
echo "======================================"
38+
echo ""
39+
echo "Next steps:"
40+
echo " 1. Configure environment: pnpm env:propagate mainnet"
41+
echo " 2. Run database migrations: pnpm db:migrate"
42+
echo " 3. Start services using PM2 (see scripts/deploy-*.sh)"
43+
echo ""

0 commit comments

Comments
 (0)