feature_generator 2.2.0 copy "feature_generator: ^2.2.0" to clipboard
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-usecase command - 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 --feature and --usecase flags 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 #

Fixed #

  • Added missing utils directory creation during installation
  • Fixed service locator file generation path error
  • Improved core folder structure initialization reliability

Changed #

  • Core folder structure now includes:

2.0.0 - 2025-05-14 #

Breaking Changes #

  • Core folders are no longer created during feature generation
  • Removed --install-deps flag from create command

Added #

  • New install command for dependency setup
  • Automatic creation of lib/core/service_locator.dart
  • Added get_it and injectable as dependencies

Changed #

  • Core folders (errors/, use_cases/) now only created via install command
  • 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
5
likes
0
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to generate Clean Architecture feature structure for Flutter projects

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, dartz, dio, flutter_bloc, get_it, injectable, meta, path

More

Packages that depend on feature_generator