feature_generator 2.4.1 copy "feature_generator: ^2.4.1" to clipboard
feature_generator: ^2.4.1 copied to clipboard

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

Changelog #

[2.4.1] - 2025-06-12 #

Fixed #

  • 🔧 File Naming Issue - Fixed critical bug where add-usecase command created files named after feature instead of use case
  • Files now correctly named: login_repository.dart instead of fe_repository.dart
  • Class names now follow use case naming: LoginRepository instead of FeRepository
  • Individual repository files are now created for each use case as intended
  • Data source files properly named after use case: login_data_source.dart

Improved #

  • Enhanced file organization with proper use case-specific naming
  • Better separation of concerns with individual files per use case
  • More intuitive file structure for developers

[2.4.0] - 2025-06-12 #

Changed #

  • 🚀 Simplified Use Case Architecture - The add-usecase command 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-usecase command 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-usecase is 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-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 PATH configuration - The install command now automatically adds $HOME/.pub-cache/bin to your shell PATH
  • 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
  • 🆕 Shell detection and automatic PATH configuration - Supports Bash, Zsh, and Fish shells

[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 PATH configuration - The install command now automatically adds $HOME/.pub-cache/bin to your shell PATH
  • 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
  • 🆕 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 #

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
4
likes
140
points
348
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

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

More

Packages that depend on feature_generator