forked from cartridge-gg/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconductor-setup.sh
More file actions
executable file
·59 lines (53 loc) · 1.41 KB
/
conductor-setup.sh
File metadata and controls
executable file
·59 lines (53 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status
echo "🔧 Setting up Cartridge Controller workspace..."
echo ""
# Verify pnpm is installed
if ! command -v pnpm &> /dev/null; then
echo "❌ Error: pnpm is not installed or not in PATH"
echo ""
echo "Please install pnpm first:"
echo " npm install -g pnpm"
echo " or"
echo " corepack enable pnpm"
echo ""
exit 1
fi
# Verify correct pnpm version
PNPM_VERSION=$(pnpm --version)
echo "✓ Found pnpm version $PNPM_VERSION"
echo ""
# Install dependencies
echo "📦 Installing dependencies..."
if ! pnpm install; then
echo ""
echo "❌ Error: Failed to install dependencies"
echo ""
echo "This might be due to:"
echo " - Network connectivity issues"
echo " - Corrupted pnpm store"
echo " - Missing system dependencies"
echo ""
echo "Try running: pnpm store prune"
exit 1
fi
echo ""
echo "🔨 Building dependencies..."
if ! pnpm build:deps; then
echo ""
echo "❌ Error: Failed to build dependencies"
echo ""
echo "This might indicate:"
echo " - Build configuration issues"
echo " - Missing build tools"
echo ""
exit 1
fi
echo ""
echo "✅ Workspace setup complete!"
echo ""
echo "You can now:"
echo " - Run 'pnpm dev' to start all development servers"
echo " - Run 'pnpm test' to run tests"
echo " - Run 'pnpm lint' to check code quality"
echo ""