feature_generator 2.4.0
feature_generator: ^2.4.0 copied to clipboard
A CLI tool to generate Clean Architecture feature structure for Flutter projects
Changelog #
2.4.0 - 2025-06-12 #
Changed #
- π Simplified Use Case Architecture - The
add-usecasecommand now creates standalone models without entity dependencies - π Individual File Creation - Each use case generates separate files instead of updating existing ones
- β‘ Faster Development - No need to create entity boilerplate, direct model usage for cleaner code
- π Entity-Free Architecture - Models are self-contained with full JSON serialization capabilities
Features #
add-usecasecommand now creates standalone models with complete JSON serialization- Individual use case files generated for each new use case
- Shared infrastructure files (data sources, repositories) are created once and reused
- No entity directory or files created - simplified clean architecture approach
- Enhanced code templates with proper dependency injection and error handling
Improved #
- Documentation - Updated README.md to clarify that
add-usecaseis optional - User Experience - Clear indication that step 3 (adding use cases) is only needed for extending features
- Code Generation - More efficient file creation with better template reuse
2.3.0 - 2025-06-10 #
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 PATH configuration - The
installcommand now automatically adds$HOME/.pub-cache/binto your shell PATH - 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
- π Shell detection and automatic PATH configuration - Supports Bash, Zsh, and Fish shells
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 PATH configuration - The
installcommand now automatically adds$HOME/.pub-cache/binto your shell PATH - 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
- π Shell detection and automatic PATH configuration - Supports Bash, Zsh, and Fish shells
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