flutter_feature_cli 1.2.0 copy "flutter_feature_cli: ^1.2.0" to clipboard
flutter_feature_cli: ^1.2.0 copied to clipboard

A Flutter CLI for generating feature modules using Partial Clean Architecture, Clean Architecture, MVC, and MVVM templates.

example/README.md

Example #

Generate a feature:

dart run flutter_feature_cli create authentication

Using the configuration:

flutter_feature_cli:
  path: lib/src/features
  template: clean_architecture

Generates:

lib/src/features/authentication

Custom Template #

Instead of clean_architecture, declare your own folder/file structure under custom in pubspec.yaml:

flutter_feature_cli:
  path: lib/src/features
  template: custom
  custom:
    presentation/views:
      - "{feature}_view.dart"
    domain/entities:
      - "{feature}_entity.dart"
dart run flutter_feature_cli create authentication -t custom

Want a folder with no generated files, just the directory? Give it an empty list:

flutter_feature_cli:
  custom:
    core/constants: []

Want a folder that has both its own files and a subfolder? Declare the parent path and the nested path separately:

flutter_feature_cli:
  custom:
    test1:
      - "{feature}_test1.dart"
    test1/sub:
      - "{feature}_sub.dart"

See the root README for the full schema.

2
likes
160
points
46
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter CLI for generating feature modules using Partial Clean Architecture, Clean Architecture, MVC, and MVVM templates.

Repository (GitHub)
View/report issues

Topics

#flutter #cli #codegen #architecture #productivity

License

MIT (license)

Dependencies

args, path, yaml

More

Packages that depend on flutter_feature_cli