feature_generator 2.2.0
feature_generator: ^2.2.0 copied to clipboard
A CLI tool to generate Clean Architecture feature structure for Flutter projects
Changelog #
2.2.0 - 2025-06-09 #
Added #
- New
add-usecasecommand - Add individual use cases to existing features without recreating the entire structure - Automatic domain entity generation - Creates domain entities for each use case with proper business object structure
- Automatic data model generation - Creates data models with JSON serialization, extending domain entities
- Enhanced Clean Architecture compliance - Use cases now work with specific entities instead of generic models
- Automatic updates to repository interfaces, implementations, and data sources when adding new use cases
- Enhanced CLI with
--featureand--usecaseflags for the new command - Comprehensive documentation and examples for the new functionality
Features #
feature_generator add-usecase --feature=auth --usecase=resetPassword- Add new use cases to existing features- Automatic file updates maintain clean architecture structure
- Validates existing feature structure before adding new use cases
- Generates complete use case files with proper imports and exports
- Creates domain entities with equality operators and toString methods
- Creates data models with fromJson, toJson, and copyWith methods
- Updates repository methods to use specific entity types
2.1.0 - 2025-05-15 #
- Added automatic PATH configuration post-install
- Support for Bash/Zsh/Fish shells
2.0.1 - 2025-05-15 #
2.0.0 - 2025-05-14 #
Breaking Changes #
- Core folders are no longer created during feature generation
- Removed
--install-depsflag fromcreatecommand
Added #
- New
installcommand for dependency setup - Automatic creation of
lib/core/service_locator.dart - Added
get_itandinjectableas dependencies
Changed #
- Core folders (
errors/,use_cases/) now only created viainstallcommand - Separated dependency installation from feature creation
- Improved service locator setup
1.0.6 - 2025-05-12 #
- Make a core files created only at fist time with installing dependencies
- Modify readme.md