Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions conductor-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
set -e

echo "🔧 Setting up React on Rails Demo Common workspace..."

# Verify required tools are installed
if ! command -v bundle &> /dev/null; then
echo "❌ Error: Bundler not found. Please install Ruby and Bundler first."
exit 1
fi

if ! command -v npm &> /dev/null; then
echo "❌ Error: npm not found. Please install Node.js and npm first."
exit 1
fi

# Install Ruby dependencies
echo "📦 Installing Ruby dependencies..."
bundle install

# Install Node dependencies (for Prettier)
echo "📦 Installing Node dependencies..."
npm install

# Set up git hooks
echo "🪝 Installing git hooks..."
bundle exec lefthook install

echo "✅ Workspace setup complete!"
7 changes: 7 additions & 0 deletions conductor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"scripts": {
"setup": "./conductor-setup.sh",
"run": "bundle exec rake spec"
},
"runScriptMode": "nonconcurrent"
}