clean_dart_cli 0.0.21+3
clean_dart_cli: ^0.0.21+3 copied to clipboard

Dart native
Flutter Android iOS

This project is one CLI for integrate Flutter and Dart with Clean Architecture

Clean Dart CLI #

screenshots/logo.png

This project is one cli for integrate Flutter and Dart with Clean Architecture

With this cli you can generate the structure of the folders based on the structure of the Clean Architecture and files like models, usecases and entites for automatize the time of the development.

How to use? #

First thing that you need to do is activate the clean-dart-cli, for this run the command bellow in your terminal

$ pub global activate clean_dart_cli

Generate the layers folders #

With clean-dart-cli you can generate all folders of the one specific layer

how to generate domain layer

$ clean-dart gen layer domain /example

screenshots/domain.png

how to generate infra layer

$ clean-dart gen layer infra /example

screenshots/infra.png

how to generate external layer

$ clean-dart gen layer external /example

screenshots/external.png

how to generate ui layer

$ clean-dart gen layer ui /example

screenshots/ui.png

how to generate complete layers

$ clean-dart gen layer complete /example

screenshots/completedartcli.png

Generate Files #

how to generate usecases

$ clean-dart gen usecase /example/domain/usecases RegisterUser

screenshots/usecase.png

how to generate entities

$ clean-dart gen entity /example/domain/entities User

screenshots/entity.png

how to generate models

$ clean-dart gen model /example/infra/models User

screenshots/model.png

darthow to generate modelsJs (Model with Json Serializable)

$ clean-dart gen modelJs /user/external/models User

screenshots/model_js.png

how to generate error

$ clean-dart gen error /user/domain/error User

screenshots/error.png

Upgrade Clean Dart Cli #

$ clean-dart upgrade

List Commands #

$ clean-dart --help

How to contribute? #

You can clone this project and send a pull request with your improvements or open issues

1
likes
80
pub points
0%
popularity

This project is one CLI for integrate Flutter and Dart with Clean Architecture

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

bruno@sthorm.io

License

BSD (LICENSE)

Dependencies

ansicolor, args, get_it, path, process_run, recase

More

Packages that depend on clean_dart_cli