mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-10 00:31:10 +08:00
【初始化】前端工程项目
This commit is contained in:
7
frontend/scripts/clear.sh
Normal file
7
frontend/scripts/clear.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# 查找并删除当前目录及子目录下所有 node_modules 文件夹和pnpm-lock.yaml文件 和 .turbo 文件夹
|
||||
find . -name "node_modules" -type d -prune -exec rm -rf {} +
|
||||
find . -name "pnpm-lock.yaml" -type f -delete
|
||||
find . -name "dist" -type d -prune -exec rm -rf {} +
|
||||
find . -name ".turbo" -type d -prune -exec rm -rf {} +
|
||||
echo "删除成功"
|
||||
Reference in New Issue
Block a user