clean_architect 1.4.0 copy "clean_architect: ^1.4.0" to clipboard
clean_architect: ^1.4.0 copied to clipboard

A configurable CLI generator for clean architecture Flutter and Dart feature modules.

1.4.0 #

  • Added clean_architect scan to infer layered, feature-first, and vertical architecture from existing package roots, source layout, and dependencies.
  • Added confidence-rated detection for paths, data layout, state management, network, storage, dependency injection, model generators, Either usage, and Flutter platforms.
  • Added scan --write with transactional validation and comment-preserving updates to known clean_architect.yaml keys; unknown keys remain untouched.
  • Added scan --json, scan --root, and explicit --force handling for medium-confidence structural detections.
  • Exported the scanner result, finding, diagnostic, and config-writer APIs.

1.3.0 #

  • Reworked manual dependency injection around a single GetIt container with explicit local, remote, repository, and domain registration order.
  • Added awaited local-storage initialization, including one shared ObjectBox Store, before repositories and use cases become available.
  • Made feature, standalone use-case, and operation commands update manual DI registrations idempotently in layered and vertical package structures.
  • Wired generated presentation entry points through initDi before the Flutter application starts.

1.2.0 #

  • Added data_layout with backward-compatible source_first and new type_first modes for organizing models and data sources.
  • Applied the selected data layout consistently to architecture, auth, generic features, operation commands, and Injectable data-module updates.
  • Stopped repository-only generation from registering a storage box that the command does not create.

1.1.0 #

  • Added vertical_packages, which generates a runnable Flutter app, a shared core package, and self-contained feature packages with internal domain, data, presentation, and DI layers.
  • Added configurable paths.app, paths.core, and paths.features roots.
  • Added idempotent app path-dependency updates and feature-local Injectable, Dio, Hive, ObjectBox, and operation-module wiring.
  • Added public feature barrels that expose stable domain, presentation, and DI entry points and grow idempotently with operation commands.
  • Added vertical package validation to doctor and a resolving, generated, analyzed integration-matrix scenario.

1.0.0 #

  • Promoted the frozen CLI, configuration schema, generated paths, and public Dart API to the stable 1.0 contract.
  • Added executable README contracts for the default YAML and architecture, auth, feature, and operation file manifests.
  • Added byte-for-byte rerun checks for every generation command and compatibility alias.
  • Expanded real-project validation to shared preferences, JSON-only models, Freezed-only models, custom public paths, standalone use case and repository commands, and the default asset generator setting.
  • Made Freezed and json_serializable independently configurable, including manual JSON methods for Freezed-only DTOs and generated JSON support for operation DTOs.
  • Rejected cross-package lib/src layer roots, which produce Dart implementation-import violations.
  • Required all generated-project scenarios to rerun unchanged before dependency resolution, code generation, analysis, and doctor checks.
  • Fixed architecture reruns adding a nonexistent BaseFeatureBox provider to injectable Hive/ObjectBox data modules.
  • Added clean-tree, warning-free pub.dev validation as the final release gate.

0.9.0 #

  • Froze the supported CLI commands, compatibility aliases, configuration keys, default paths, and public Dart API for the 1.0 release line.
  • Exported GeneratedFile and OperationKind so every type used by the public generator API is directly importable.
  • Added golden snapshots for default auth, generic feature, and remote, local, and cached operation output.
  • Added a runnable generated Flutter web example with all four architecture packages.
  • Removed the incompatible stock MyApp widget test after flutter create scaffolding.
  • Added CI jobs for formatting, analysis, unit and golden tests, the generated-project matrix, runnable-example builds, and pub.dev validation.
  • Documented backward compatibility guarantees, deprecation rules, configuration migrations, and the upgrade policy.

0.6.0 #

  • Replaced doctor reminders with real validation of all configured layer pubspecs and package roots.
  • Added required dependency and compatible version-constraint checks.
  • Added Dart and Flutter SDK compatibility checks plus per-package build_runner availability checks.
  • Added detection for missing referenced .g.dart files.
  • Made clean_architect doctor return exit code 1 when project checks fail.
  • Added doctor coverage to the generated-project integration matrix.

0.5.0 #

  • Added clean_architect --version and command-specific help.
  • Added strict validation for names, Flutter platforms, layer paths, YAML value types, and incompatible CLI settings.
  • Added concise malformed YAML errors without stack traces.
  • Added plan-first transactional generation with complete conflict preflight.
  • Required existing features before remote, local, or cached operation commands can patch them.
  • Made repeated feature, operation, architecture, and scaffolding commands idempotent.
  • Added config_version: 1 for future configuration migrations.

0.4.0 #

  • Added a generated-project integration matrix covering five representative configurations, both structure modes, auth, generic features, and all operation commands.
  • Added real pub get, build_runner, and per-layer analysis validation for generated temporary projects.
  • Added a sharded GitHub Actions workflow for unit and generated-project verification.
  • Fixed plain-Dart operation entities to use the same String ID contract as DTOs and Freezed entities.
  • Fixed package-root Failure imports for Either-enabled feature and operation files.
  • Fixed GetX Either fold syntax and made operation-added controller dependencies final.
  • Separated local integer box IDs from API-provided remote IDs in generated feature and operation models.

0.3.0 #

  • Updated package and generated-project dependencies to current compatible releases.
  • Switched generated Hive storage to the maintained Hive CE packages.
  • Made generated dependency sections conditional so unused frameworks and builders are omitted.
  • Added Freezed 3-compatible entity and DTO declarations.
  • Fixed injectable repository interface registration, async initialization, Dio providers, and Hive box providers.
  • Added stable Hive type IDs and per-box adapter registration for features and operation commands.
  • Made feature_first place presentation and DI files under feature-specific folders.
  • Fixed Either<Failure, T> handling in generated controllers.
  • Generated real asset directories with .gitkeep files.

0.2.3 #

  • Kept one-off feature item widgets inside their pages and moved auth form state into the controller instead of generating standalone view-item files.

0.2.2 #

  • Updated cached operations and use cases to use sync<Name> remotely and stream<Name> locally across generated layers.

0.2.1 #

  • Fixed injectable data_module.dart updates when adding another Hive/ObjectBox feature.

0.2.0 #

  • Renamed generated remote API service templates to remote data source templates.
  • Added Dio providers to injectable data/lib/data_module.dart.
  • Updated local/cached operation generation to patch data_module.dart with new box providers.
  • Added Bloc and Provider state management template support.
  • Added Hive and ObjectBox local storage options.
  • Added generated local box models and injectable data/lib/data_module.dart initialization for Hive and ObjectBox storage.

0.1.9 #

  • Added optional Flutter presentation bootstrap with flutter.create_presentation, flutter.platforms, --flutter-create, and --platforms.

0.1.8 #

  • Added remote/local/cached operation commands for extending existing features.
  • Added use_either_failure configuration for Future<Either<Failure, T>> repository and use case return types.

0.1.7 #

  • updated example/clean_architect.yaml and added build runner package for presentation

0.1.6 #

  • Expanded README documentation with all supported configuration options and generated project structure examples.
  • Aligned auth local source, controller, and page templates with the generic feature template style.

0.1.5 #

  • Added a new configuration option, use_asset_generator, that enables the asset generator kit.

0.1.4 #

  • local data source for auth and feature uses injectable package
  • Updated auth presentation layer to use GetX

0.1.3 #

  • Refactor packages versions for layers.
  • Refactor initialization of feature controller and screen

0.1.2 #

  • Generate freezed entities and DTOs by default.
  • Generate Retrofit API service templates for remote data sources.
  • Add injectable-style injector templates matching separated data/domain/di layers.
  • Update GetX pages to initialize and retrieve controllers with Get.put and Get.find.

0.1.1 #

  • Clarify empty-folder usage through the globally activated clean_architect executable.
  • Document create architecture as the default clean architecture scaffold command.

0.1.0 #

  • Add clean_architect init.
  • Add clean_architect create auth.
  • Add clean_architect create feature <name>.
  • Add --dry-run, --overwrite, --force, and --skip-presentation.
  • Support feature_first and layered_packages path layouts.
  • Support getx and none state management templates.
  • Support dio and abstract remote source templates.
  • Support secure_storage and abstract local source templates.
  • Add clean_architect doctor.
0
likes
150
points
1.06k
downloads

Documentation

API reference

Publisher

verified publisherpinz.dev

Weekly Downloads

A configurable CLI generator for clean architecture Flutter and Dart feature modules.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, collection, mason_logger, meta, path, pub_semver, yaml, yaml_edit

More

Packages that depend on clean_architect