easy_code 0.0.2 copy "easy_code: ^0.0.2" to clipboard
easy_code: ^0.0.2 copied to clipboard

This package is a code generator for flutter projects.

mason logo

en es

Codescript CLI is a tool designed to streamline the process of generating Flutter project components. It provides simple commands to generate various architecture components such as views, viewmodels, repositories, bindings, and use cases, or even set up a full architecture in a matter of seconds. This enhances consistency and speeds up development in Flutter projects.

Codescript #

Features #

  • Generate individual components: Easily create views, viewmodels, repositories, bindings, and use cases.
  • Full architecture generation: Generate a complete architecture setup with one command.
  • Fast and efficient: Automate repetitive tasks, saving time and effort.

Usage #

Once installed, you can use the codescript commands to generate components directly from your terminal.

Commands #

  • Generate a View:

    codescript g view <view_name>
    
  • Generate a ViewModel:

    codescript g viewmodel <viewmodel_name>
    
  • Generate a Repository:

    codescript g repository <repository_name>
    
  • Generate a Binding:

    codescript g binding <binding_name>
    
  • Generate a Use Case:

    codescript g usecase <usecase_name>
    
  • Generate a Full Architecture (includes view, viewmodel, repository, binding, and use case):

    codescript g full <resource_name>
    

Example #

To generate a full architecture setup for a User resource, run:

codescript g full user

This command will be generate: #

lib/
└── app/
     ├── /ui
     │   └── /views
        │   └── user_view.dart
        │   └── user_viewmodel.dart
└── data/
     ├── repositories/
     │   └── user_repository.dart
     │   └── user_repository_implementation.dart
└── di/
     ├── user_binding.dart
└── domain/
        └── usecases/
            └── user_usecase.dart
0
likes
0
points
53
downloads

Publisher

verified publishercodescript.us

Weekly Downloads

This package is a code generator for flutter projects.

Repository

License

unknown (license)

Dependencies

args, completion, path, usage, yaml, yaml_edit

More

Packages that depend on easy_code