nex_design/scripts/clean.sh

27 lines
462 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/bin/bash
# 清理构建产物和临时文件
echo "清理构建产物..."
# 清理 dist 目录
if [ -d "dist" ]; then
rm -rf dist
echo "✓ 已清理 dist 目录"
fi
# 清理日志
if [ -d "logs" ]; then
rm -rf logs
echo "✓ 已清理 logs 目录"
fi
# 清理 node_modules可选取消注释使用
# if [ -d "node_modules" ]; then
# rm -rf node_modules
# echo "✓ 已清理 node_modules 目录"
# fi
echo ""
echo "清理完成!"