Files
Wyatt Johnson 8861f0a4a6 chore: add Conductor configuration for parallel development (#88116)
## What?

Adds [Conductor](https://www.conductor.build/) configuration to enable
team members to use parallel Claude Code agents for Next.js development.

**Files added:**
- `.conductor/conductor.json` - Main configuration with setup/run
scripts
- `.conductor/README.md` - Documentation for using Conductor with
Next.js
- `.gitignore` - Added entry to ignore Conductor worktree directories

## Why?

Conductor is a Mac app that orchestrates multiple Claude Code agents in
parallel, each with its own isolated git worktree. This enables:

- **Parallel development** - Work on multiple features simultaneously
without branch conflicts
- **Isolated environments** - Each agent has its own clean working
directory
- **Faster iteration** - Multiple AI assistants can tackle different
aspects of a task concurrently

Sharing this configuration allows other team members to leverage the
same workflow for Next.js development.

## How?

The configuration includes:

1. **Setup script** that runs when creating a new workspace:
   - Enables corepack for pnpm
   - Validates Node.js version (18+)
   - Installs dependencies with `--prefer-offline`
   - Runs `pnpm build`

2. **Run script** that starts watch mode (`pnpm --filter=next dev`) for
fast iteration

3. **Environment variables** to disable telemetry during development

4. **Gitignore entry** (`.conductor/*/`) to prevent accidentally
committing worktree contents
2026-01-06 13:39:50 -07:00

42 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
#
# Conductor Setup Script for Next.js
#
# This script runs when creating a new Conductor workspace.
# It ensures the development environment is properly configured.
#
set -e
echo "🔧 Setting up Next.js development environment..."
# Enable corepack for pnpm (requires pnpm 9.6.0)
if command -v corepack &> /dev/null; then
echo "📦 Enabling corepack for pnpm..."
corepack enable pnpm
fi
# Validate Node.js version
NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "❌ Node.js 18+ required (found: $(node -v))"
exit 1
fi
echo "✓ Node.js $(node -v) detected"
# Install dependencies
echo "📦 Installing dependencies..."
pnpm install --prefer-offline
# Build all packages
echo "🏗️ Building packages..."
pnpm build
echo ""
echo "✅ Setup complete! Ready for development."
echo ""
echo "Tips:"
echo " • Run 'pnpm test-dev-turbo <path>' for fast test iteration"
echo " • Run 'pnpm --filter=next dev' for watch mode"
echo " • Run 'pnpm sweep' periodically to clean Rust build artifacts"