- Enhanced `README.md` with a quick start guide and detailed project structure. - Updated `SETUP_GUIDE.md` by removing it as it was redundant. - Improved `local-development.md` and `development.md` with clearer instructions for database migrations. - Added bilingual comments in various scripts for better understanding and usability. - Updated `.gitignore` to include specific build scripts while ignoring others. - Enhanced `scripts` for database management, including backup and seeding functionalities with bilingual support.
28 lines
799 B
Bash
Executable File
28 lines
799 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "🧹 Cleaning up temporary files..."
|
|
|
|
# EN: Remove node_modules (optional, comment out if you want to keep them)
|
|
# VI: Xóa node_modules (tùy chọn, comment lại nếu muốn giữ)
|
|
# find . -name "node_modules" -type d -prune -exec rm -rf {} \;
|
|
|
|
# EN: Remove build artifacts
|
|
# VI: Xóa các file build
|
|
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
|
|
|
|
# EN: Remove logs
|
|
# VI: Xóa file logs
|
|
find . -name "*.log" -type f -delete
|
|
|
|
# EN: Remove cache
|
|
# VI: Xóa cache
|
|
find . -name ".turbo" -type d -prune -exec rm -rf {} \;
|
|
find . -name ".cache" -type d -prune -exec rm -rf {} \;
|
|
|
|
echo "✅ Cleanup completed!"
|