File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "scripts" : {
3+ "setup" : " ./scripts/conductor-setup.sh" ,
4+ "run" : " npm start -- --port $CONDUCTOR_PORT"
5+ },
6+ "runScriptMode" : " nonconcurrent"
7+ }
Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments