refactor(scripts): reorganize scripts/ into seed/ and validate/ subfolders
Move 9 init/seed scripts into scripts/seed/ and 7 validation scripts (+ validators/ subfolder) into scripts/validate/ to reduce clutter in the root scripts/ directory. Update all references across Makefile, CI/CD configs, pre-commit hooks, docs (~40 files), and Python imports. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@ Successfully refactored the Makefile to establish clear separation between **pro
|
||||
**Before:**
|
||||
```makefile
|
||||
init-prod:
|
||||
$(PYTHON) scripts/init_production.py
|
||||
$(PYTHON) scripts/seed/init_production.py
|
||||
```
|
||||
|
||||
**After:**
|
||||
@@ -42,13 +42,13 @@ init-prod:
|
||||
init-prod:
|
||||
@echo "🔧 Initializing production database..."
|
||||
@echo "Step 1/4: Creating admin user and platform alerts..."
|
||||
$(PYTHON) scripts/init_production.py
|
||||
$(PYTHON) scripts/seed/init_production.py
|
||||
@echo "Step 2/4: Initializing log settings..."
|
||||
$(PYTHON) scripts/init_log_settings.py
|
||||
$(PYTHON) scripts/seed/init_log_settings.py
|
||||
@echo "Step 3/4: Creating default CMS content pages..."
|
||||
$(PYTHON) scripts/create_default_content_pages.py
|
||||
$(PYTHON) scripts/seed/create_default_content_pages.py
|
||||
@echo "Step 4/4: Creating platform pages and landing..."
|
||||
$(PYTHON) scripts/create_platform_pages.py
|
||||
$(PYTHON) scripts/seed/create_platform_pages.py
|
||||
@echo "✅ Production initialization completed"
|
||||
```
|
||||
|
||||
@@ -85,13 +85,13 @@ Now properly re-initializes the platform after reset!
|
||||
```makefile
|
||||
# Utility commands (usually not needed - init-prod handles these)
|
||||
create-cms-defaults:
|
||||
$(PYTHON) scripts/create_default_content_pages.py
|
||||
$(PYTHON) scripts/seed/create_default_content_pages.py
|
||||
|
||||
create-platform-pages:
|
||||
$(PYTHON) scripts/create_platform_pages.py
|
||||
$(PYTHON) scripts/seed/create_platform_pages.py
|
||||
|
||||
init-logging:
|
||||
$(PYTHON) scripts/init_log_settings.py
|
||||
$(PYTHON) scripts/seed/init_log_settings.py
|
||||
```
|
||||
|
||||
These are now available for advanced use cases or re-running specific steps.
|
||||
|
||||
Reference in New Issue
Block a user