Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byteszero/clear_flutter_build
批量清理 Flutter 项目 [build、ios/Pods] 目录,优化电脑空间,顺手练习一下 Dart CLI
https://github.com/byteszero/clear_flutter_build
cleanup-script cool flutter flutter-cli mac
Last synced: 4 days ago
JSON representation
批量清理 Flutter 项目 [build、ios/Pods] 目录,优化电脑空间,顺手练习一下 Dart CLI
- Host: GitHub
- URL: https://github.com/byteszero/clear_flutter_build
- Owner: BytesZero
- License: mit
- Created: 2021-12-20T02:29:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-21T15:33:03.000Z (about 1 year ago)
- Last Synced: 2023-11-05T13:22:11.811Z (about 1 year ago)
- Topics: cleanup-script, cool, flutter, flutter-cli, mac
- Language: Dart
- Homepage: https://pub.dev/packages/cf_cli
- Size: 2.11 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh_CN.md
- Changelog: CHANGELOG-zh_CN.md
- License: LICENSE
Awesome Lists containing this project
README
| [English](https://github.com/yy1300326388/clear_flutter_build) | 简体中文 |
|-------|-------|## cf
批量清理 Flutter 项目 [`build`、`ios/Pods`] 目录,优化电脑空间,顺手练习一下 Dart CLI
## 安装&更新
- 方法一
```
dart pub global activate cf_cli
```- 方法二
```
dart pub global activate -sgit https://github.com/yy1300326388/clear_flutter_build.git
```## 运行效果
- 清理 `build`
```
➜ cf
🚀 清理模式:build
🎉 全部清理完毕
```- 清理 `ios/Pods`
```
➜ cf -m pods
🚀 清理模式:pods
🎉 全部清理完毕
```- 清理 `build` 和 `ios/Pods`
```
➜ cf -m all
🚀 清理模式:all
🎉 全部清理完毕
```- 版本信息
```
➜ cf -v
🚀 CF Version:1.0.0
🐦 Dart:2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "macos_x64"
💻 OS:10.16
```- 帮助说明
```
➜ cf -h
-m, --mode 🚀 设置清理模式 build 是 build 文件夹,pods 是 ios/Pods 文件夹, all 全部文件夹
[build (default), pods, all]
-v, --[no-]version 📦️ 获取版本
-h, --[no-]help 💡 帮助说明
```## 我的清理结果
|清理前|清理后|
|--|--|
|![](https://user-images.githubusercontent.com/8764899/146867779-b0e86b0a-6e7f-473a-b4e1-d69fbfd5bc3c.png)|![](https://user-images.githubusercontent.com/8764899/146867789-b5284afa-c016-4727-a0a9-723ee3616c8f.png)|> `CleanMyMac` 都无法拯救我的磁盘空间,所以写了 cf_cli 工具
## ☕请我喝咖啡