Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature- Cleanup Files #29

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

ff-vivek
Copy link

I’ve been working on a solution to automatically detect and delete unreferenced files in FlutterFlow projects using flutterflow_cli.

Currently, when renaming/deleting files, FlutterFlow regenerates code but doesn’t remove old files locally, leading to accumulation of unused files in Git repositories. I’ve implemented a DCM-based cleanup script that:
• Finds unreferenced files using DCM.
• Prompts or auto-deletes them based on user preference (--auto-delete flag).
• Ensures efficiency & safety, avoiding accidental deletions.

I’d love to collaborate and see if we can integrate this directly into flutterflow_cli to improve project hygiene for developers. Let me know your thoughts, and I’d be happy to share the implementation details!

1. added cleanup file
2. commented project setup temporary
1. refactored flutterflow_cli.dart to include projectInfo
@tmpsantos tmpsantos self-requested a review February 17, 2025 21:23
@tmpsantos
Copy link
Contributor

I do like the idea, but I think it could also be done by running this on the repo:

dart pub add --dev dart_code_linter
dart run dart_code_linter:metrics check-unused-files -d lib

We could document that when synching we will not delete files by default and suggest using dart_code_linter to cleanup unused files.

@TaniaCruzado
Copy link

Hola @ff-vivek,

¡Me pareció muy interesante tu trabajo con FlutterFlow y la optimización de archivos en Git!
Soy de Perú y me gustaría poder contactarte para conversar más sobre este tema y contar con tu apoyo.

¿Tienes LinkedIn o un correo donde pueda escribirte?
¡Muchas gracias y espero tu respuesta! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants