initial commit
This commit is contained in:
31
scripts/clean.sh
Executable file
31
scripts/clean.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Script de limpieza para el proyecto Balotario
|
||||
|
||||
echo "🧹 Limpiando proyecto Balotario..."
|
||||
|
||||
# Limpiar cache de Python
|
||||
echo "📦 Eliminando __pycache__..."
|
||||
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
||||
find . -name "*.pyc" -delete 2>/dev/null || true
|
||||
find . -name "*.pyo" -delete 2>/dev/null || true
|
||||
|
||||
# Limpiar archivos temporales
|
||||
echo "🗑️ Eliminando archivos temporales..."
|
||||
find . -name "*.tmp" -delete 2>/dev/null || true
|
||||
find . -name "*.temp" -delete 2>/dev/null || true
|
||||
find . -name "*~" -delete 2>/dev/null || true
|
||||
find . -name ".DS_Store" -delete 2>/dev/null || true
|
||||
|
||||
# Limpiar logs
|
||||
echo "📝 Eliminando logs..."
|
||||
find . -name "*.log" -delete 2>/dev/null || true
|
||||
|
||||
echo "✅ Limpieza completada"
|
||||
echo ""
|
||||
echo "📊 Estado del proyecto:"
|
||||
echo " 📁 Directorio principal: $(pwd)"
|
||||
echo " 📄 Archivos Python: $(find . -name "*.py" | wc -l)"
|
||||
echo " 🌐 Archivos HTML: $(find . -name "*.html" | wc -l)"
|
||||
echo " 🎨 Archivos CSS: $(find . -name "*.css" | wc -l)"
|
||||
echo " ⚡ Archivos JS: $(find . -name "*.js" | wc -l)"
|
||||
echo " 🧪 Tests: $(find test/ -name "test_*" | wc -l)"
|
||||
Reference in New Issue
Block a user