Skip to content

asnakeassefa/flutter_clean_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_clean_arch_scaffold_cli

CLI tool to initialize Flutter projects with clean architecture (data / domain / presentation) and to generate feature modules, using Mason templates, get_it + injectable, and go_router.

Requirements

  • Dart SDK ^3.5.0
  • Flutter SDK on PATH (for init and generated apps)

Install

From path (development)

dart pub global activate --source path .

Ensure Pub’s bin directory is on your PATH, then run flutter_clean_arch_scaffold_cli.

From pub.dev (after publish)

dart pub global activate flutter_clean_arch_scaffold_cli

Commands

Command Description
flutter_clean_arch_scaffold_cli init <project_name> Runs flutter create, applies core templates, adds dependencies, runs build_runner.
flutter_clean_arch_scaffold_cli feature <feature_name> Generates lib/features/<name>/ and inserts a GoRoute between fca:routes markers.
flutter_clean_arch_scaffold_cli codegen Runs dart run build_runner build --delete-conflicting-outputs.

Global options

  • -v, --verbose — verbose logs.
  • --no-interactive — no prompts (CI-friendly).

Examples

flutter_clean_arch_scaffold_cli init my_app
cd my_app
flutter_clean_arch_scaffold_cli feature user_profile
flutter_clean_arch_scaffold_cli feature auth --route /login --project-root .

Project layout (generated)

  • lib/core/ — DI (injection.dart), router (app_router.dart), errors, theme, docs.
  • lib/features/<feature>/data/, domain/, presentation/.

Publishing

This package ships Mason bricks from the bricks/ directory next to lib/. After dart pub publish, consumers resolve bricks via the published package layout.

License

See LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages