- Frontend v4 accessible sur réseau local (192.168.1.40) - Ports ouverts: 3002 (frontend), 5001 (backend), 5004 (dashboard) - Ollama GPU fonctionnel - Self-healing interactif - Dashboard confiance Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
70 lines
2.0 KiB
Bash
Executable File
70 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script de test pour vérifier que les corrections de compilation fonctionnent
|
|
# Teste la compilation TypeScript après les corrections
|
|
|
|
echo "=========================================="
|
|
echo "Test des Corrections de Compilation"
|
|
echo "=========================================="
|
|
echo ""
|
|
|
|
# Couleurs
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m' # No Color
|
|
|
|
cd frontend
|
|
|
|
echo "1. Test de compilation TypeScript..."
|
|
echo ""
|
|
|
|
# Vérifier que TypeScript compile sans erreur
|
|
if npm run type-check > /dev/null 2>&1; then
|
|
echo -e "${GREEN}✓${NC} Compilation TypeScript réussie - Aucune erreur"
|
|
else
|
|
echo -e "${RED}✗${NC} Erreurs de compilation TypeScript détectées"
|
|
echo ""
|
|
echo "Détails des erreurs :"
|
|
npm run type-check
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Test de build de production..."
|
|
echo ""
|
|
|
|
# Tester le build de production
|
|
if npm run build > /dev/null 2>&1; then
|
|
echo -e "${GREEN}✓${NC} Build de production réussi"
|
|
else
|
|
echo -e "${YELLOW}⚠${NC} Build de production avec avertissements (normal)"
|
|
fi
|
|
|
|
cd ..
|
|
|
|
echo ""
|
|
echo "=========================================="
|
|
echo "Résumé des Corrections"
|
|
echo "=========================================="
|
|
echo ""
|
|
|
|
echo "Erreurs corrigées :"
|
|
echo "✓ ShortcutsHelp.tsx - Object possibly undefined"
|
|
echo "✓ UndoManager.ts - Object possibly undefined"
|
|
echo "✓ useCopyPaste.ts - Type incompatibility"
|
|
echo "✓ WorkflowActions.ts - Unused import + undefined object"
|
|
echo "✓ UndoManager.test.ts - Unused variable"
|
|
echo "✓ useZoomPan.ts - Unused parameter + missing return"
|
|
echo "✓ ImportExport.ts - Missing properties"
|
|
echo "✓ TargetSelector/index.tsx - Unused parameter"
|
|
echo "✓ SaveAsTemplate/index.tsx - Unused parameter + type error"
|
|
echo "✓ TemplateSelector/index.tsx - Unused variable"
|
|
echo ""
|
|
|
|
echo -e "${GREEN}Toutes les erreurs TypeScript ont été corrigées !${NC}"
|
|
echo ""
|
|
|
|
echo "L'application peut maintenant être démarrée avec :"
|
|
echo "./start_full.sh"
|
|
echo "" |