Skip to content

Vanessa-Berazategui/flutter_bricks

Repository files navigation

Bricks

How to create a brick

  1. Install mason
dart pub global activate mason_cli
  1. Initialize mason
mason init
  1. Create brick
mason new <BRICK_NAME>

How to use bricks for code generation in a new project

  1. Install mason
dart pub global activate mason_cli
  1. Initialize mason
mason init
  1. Add bricks submodule to the project
git submodule add https://github.com/Vanessa-Berazategui/flutter_bricks.git
  1. Add the desired brick <BRICK_NAME> to the project
mason add <BRICK_NAME> --path ./bricks/<BRICK_NAME>
  1. Run the brick <BRICK_NAME>
mason make <BRICK_NAME> --name=nombre_example

How to use bricks in a project that contains bricks with submodule

  1. Clone the project to use.
git clone https://github.com/Vanessa-Berazategui/repo_example.git
  1. Initialize mason
mason init
  1. Download bricks submodule (if authentication fails, perform a git clone)
git submodule init
git submodule update
  1. Get the bricks
git mason get

How to list the bricks installed in a project

mason list

Brick list

data_layer_model

mason make data_layer_model --name=<feature_name>

domain_layer_entity

mason make domain_layer_entity --name=<feature_name>

presentation_layer_feature

mason make presentation_layer_feature --name=<feature_name>

presentation_layer_hydrated_feature

mason make presentation_layer_hydrated_feature --name=<feature_name>

domain_layer_package

mason make domain_layer_package --name=<feature_name>

data_layer_package

mason make data_layer_package --name=<feature_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published