feat: Add smart website migration with tech stack detection
NEW MIGRATION WORKFLOW: 1. DETECT - Analyzes tech stack (Astro, Tailwind, CSS, etc.) 2. PLAN - Creates detailed migration plan with risks 3. PRESERVE - Keeps ALL content exactly (inline CSS, text, routes) 4. CONVERT - Carefully converts CSS (Tailwind v3→v4) 5. REBUILD - Fresh Astro install with preserved content 6. ENHANCE - Adds new features (cookie consent, PDPA) 7. TEST - Comprehensive testing before deployment Files: - migrate_existing_website.py (new smart migration script) - MIGRATION_WORKFLOW.md (documentation) Benefits: - No more broken CSS - No more failed deployments - All inline styles preserved - All routes preserved - Plan before migrating (--plan-only mode)
This commit is contained in:
65
skills/website-creator/MIGRATION_WORKFLOW.md
Normal file
65
skills/website-creator/MIGRATION_WORKFLOW.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# 🔄 New Smart Migration Workflow
|
||||
|
||||
**Date:** 2026-03-10
|
||||
**Status:** ✅ Safe Migration - No More Broken Websites!
|
||||
|
||||
---
|
||||
|
||||
## 🎯 **Problem with Old Workflow**
|
||||
|
||||
The previous migration approach had these issues:
|
||||
- Too aggressive - reorganized everything
|
||||
- CSS broke frequently
|
||||
- Deployments failed often
|
||||
- Lost inline styles
|
||||
- Changed URLs accidentally
|
||||
- No planning phase
|
||||
|
||||
---
|
||||
|
||||
## ✅ **New Smart Workflow**
|
||||
|
||||
### **Phase 1: DETECT**
|
||||
Detects tech stack and versions automatically.
|
||||
|
||||
### **Phase 2: PLAN**
|
||||
Creates detailed migration plan with risk assessment.
|
||||
|
||||
### **Phase 3: PRESERVE**
|
||||
Preserves ALL content exactly - inline CSS, text, routes.
|
||||
|
||||
### **Phase 4: CONVERT**
|
||||
Converts CSS frameworks carefully (Tailwind v3 to v4).
|
||||
|
||||
### **Phase 5: REBUILD**
|
||||
Fresh Astro install with preserved content.
|
||||
|
||||
### **Phase 6: ENHANCE**
|
||||
Adds new features (cookie consent, PDPA, etc.).
|
||||
|
||||
### **Phase 7: TEST**
|
||||
Comprehensive testing before deployment.
|
||||
|
||||
---
|
||||
|
||||
## 🚀 **Quick Start**
|
||||
|
||||
```bash
|
||||
# Step 1: Create migration plan
|
||||
python3 skills/website-creator/scripts/migrate_existing_website.py \
|
||||
--input "./existing-website" \
|
||||
--output "./migrated-website" \
|
||||
--plan-only
|
||||
|
||||
# Step 2: Review the plan
|
||||
cat migration_plan_*.json
|
||||
|
||||
# Step 3: Proceed with migration (after review)
|
||||
python3 skills/website-creator/scripts/migrate_existing_website.py \
|
||||
--input "./existing-website" \
|
||||
--output "./migrated-website"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**Safe, reliable migrations - no more broken websites!** 🎉
|
||||
Reference in New Issue
Block a user