Skip to content

Commit dd0a742

Browse files
ostermanclaude
andauthored
Add Conductor workspace configuration (#825)
Co-authored-by: Claude <[email protected]>
1 parent 0c451f4 commit dd0a742

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

conductor.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"scripts": {
3+
"setup": "./scripts/conductor-setup.sh",
4+
"run": "npm start -- --port $CONDUCTOR_PORT"
5+
},
6+
"runScriptMode": "nonconcurrent"
7+
}

scripts/conductor-setup.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "🚀 Setting up Cloud Posse Documentation workspace..."
5+
6+
# Check for Node.js
7+
if ! command -v node &> /dev/null; then
8+
echo "❌ Error: Node.js is not installed or not in PATH"
9+
echo "Please install Node.js v20.10 or later from https://nodejs.org/"
10+
exit 1
11+
fi
12+
13+
# Check Node version
14+
NODE_VERSION=$(node --version | cut -d'v' -f2)
15+
REQUIRED_VERSION="20.10"
16+
17+
if [ "$(printf '%s\n' "$REQUIRED_VERSION" "$NODE_VERSION" | sort -V | head -n1)" != "$REQUIRED_VERSION" ]; then
18+
echo "❌ Error: Node.js version $NODE_VERSION is too old"
19+
echo "Required: Node.js v$REQUIRED_VERSION or later"
20+
exit 1
21+
fi
22+
23+
# Check for npm
24+
if ! command -v npm &> /dev/null; then
25+
echo "❌ Error: npm is not installed or not in PATH"
26+
exit 1
27+
fi
28+
29+
echo "✅ Node.js $(node --version) detected"
30+
echo "✅ npm $(npm --version) detected"
31+
32+
# Clear any cached build artifacts
33+
echo "🧹 Clearing cached build artifacts..."
34+
rm -rf .docusaurus build 2>/dev/null || true
35+
36+
# Install dependencies
37+
echo "📦 Installing npm dependencies..."
38+
npm install
39+
40+
echo "✅ Setup complete! You can now click 'Run' to start the development server."

0 commit comments

Comments
 (0)