Initial commit: add .gitignore and README
This commit is contained in:
56
dbis/test-dbis-migration.sh
Executable file
56
dbis/test-dbis-migration.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Load shared libraries
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$SCRIPT_DIR/../lib/init.sh"
|
||||
|
||||
# Test DBIS monorepo migration
|
||||
|
||||
set -e
|
||||
|
||||
MONOREPO_PATH="${1:-dbis_monorepo}"
|
||||
|
||||
echo "🧪 Testing DBIS monorepo migration..."
|
||||
|
||||
if [ ! -d "$MONOREPO_PATH" ]; then
|
||||
echo "❌ Monorepo not found: $MONOREPO_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$MONOREPO_PATH"
|
||||
|
||||
# Check prerequisites
|
||||
command -v pnpm >/dev/null 2>&1 || { echo "❌ pnpm not found"; exit 1; }
|
||||
command -v node >/dev/null 2>&1 || { echo "❌ node not found"; exit 1; }
|
||||
|
||||
echo "✅ Prerequisites check passed"
|
||||
|
||||
# Install dependencies
|
||||
echo "📦 Installing dependencies..."
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
# Build packages
|
||||
echo "🔨 Building packages..."
|
||||
pnpm build
|
||||
|
||||
# Run type check
|
||||
echo "🔍 Running type check..."
|
||||
pnpm type-check
|
||||
|
||||
# Run lint
|
||||
echo "🧹 Running linter..."
|
||||
pnpm lint
|
||||
|
||||
# Run tests (if any)
|
||||
echo "🧪 Running tests..."
|
||||
pnpm test || echo "⚠️ No tests found (this is OK for initial setup)"
|
||||
|
||||
echo ""
|
||||
echo "✅ DBIS monorepo migration test complete!"
|
||||
echo ""
|
||||
echo "📝 Next steps:"
|
||||
echo " 1. Migrate projects to monorepo"
|
||||
echo " 2. Update imports to use shared packages"
|
||||
echo " 3. Test each migrated project"
|
||||
echo " 4. Update CI/CD configurations"
|
||||
|
||||
Reference in New Issue
Block a user