Skip to content

批量清理 Flutter 项目 [build、ios/Pods] 目录,优化电脑空间,顺手练习一下 Dart CLI

License

Notifications You must be signed in to change notification settings

BytesZero/clear_flutter_build

Repository files navigation

English 简体中文

cf(Clean Flutter)

Clean up the [build, ios/Pods] directory of Flutter projects in batches, optimize computer space, and practice Dart CLI

Install & Update

  • Dart activate
dart pub global activate cf_cli
  • Git source
dart pub global activate -sgit https://github.com/yy1300326388/clear_flutter_build.git

Run cleanup

  • Cleanup build
➜  cf
🚀 Cleanup mode:build
🎉 All cleaned up
  • Cleanup ios/Pods
➜  cf -m pods
🚀 Cleanup mode:pods
🎉 All cleaned up
  • Cleanup buildios/Pods
➜  cf -m all
🚀 Cleanup mode:all
🎉 All cleaned up
  • Get the version
➜  cf -v
🚀 CF Version:1.1.0
🐦 Dart:2.15.0 (stable) (Fri Dec 3 14:23:23 2021 +0100) on "macos_x64"
💻 OS:Version 12.0.1 (Build 21A559)
  • Help description
➜  cf -h
-m, --mode            🚀 Set the cleanup mode build is the build folder, pods is the ios/Pods folder, all folders
                      [build (default), pods, all]
-v, --[no-]version    📦️ Get the version
-h, --[no-]help       💡 Help description

My cleanup results

Before After

CleanMyMac can’t save me, so I wrote the cf_cli tool

Buy me coffee

coffee

About

批量清理 Flutter 项目 [build、ios/Pods] 目录,优化电脑空间,顺手练习一下 Dart CLI

Topics

Resources

License

Stars

Watchers

Forks

Languages