Feature- Cleanup Files#29
Closed
ff-vivek wants to merge 2 commits into
Closed
Conversation
1. added cleanup file 2. commented project setup temporary
1. refactored flutterflow_cli.dart to include projectInfo
Contributor
|
I do like the idea, but I think it could also be done by running this on the repo: We could document that when synching we will not delete files by default and suggest using dart_code_linter to cleanup unused files. |
|
Hola @ff-vivek, ¡Me pareció muy interesante tu trabajo con FlutterFlow y la optimización de archivos en Git! ¿Tienes LinkedIn o un correo donde pueda escribirte? |
Author
|
Will raise another PR ASAP! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!