Files
pos-system/scripts/utils/cleanup.sh
Ho Ngoc Hai 4da46b5b8e Sure! Pl
2025-12-27 01:31:10 +07:00

24 lines
646 B
Bash
Executable File

#!/bin/bash
set -e
echo "🧹 Cleaning up temporary files..."
# Remove node_modules (optional, comment out if you want to keep them)
# find . -name "node_modules" -type d -prune -exec rm -rf {} \;
# Remove build artifacts
find . -name "dist" -type d -prune -exec rm -rf {} \;
find . -name ".next" -type d -prune -exec rm -rf {} \;
find . -name "build" -type d -prune -exec rm -rf {} \;
find . -name "*.tsbuildinfo" -type f -delete
# Remove logs
find . -name "*.log" -type f -delete
# Remove cache
find . -name ".turbo" -type d -prune -exec rm -rf {} \;
find . -name ".cache" -type d -prune -exec rm -rf {} \;
echo "✅ Cleanup completed!"