Install mason
dart pub global activate mason_cli
Initialize mason
Create brick
How to use bricks for code generation in a new project
Install mason
dart pub global activate mason_cli
Initialize mason
Add bricks submodule to the project
git submodule add https://github.com/Vanessa-Berazategui/flutter_bricks.git
Add the desired brick <BRICK_NAME> to the project
mason add < BRICK_NAME> --path ./bricks/< BRICK_NAME>
Run the brick <BRICK_NAME>
mason make < BRICK_NAME> --name=nombre_example
How to use bricks in a project that contains bricks with submodule
Clone the project to use.
git clone https://github.com/Vanessa-Berazategui/repo_example.git
Initialize mason
Download bricks submodule (if authentication fails, perform a git clone)
git submodule init
git submodule update
Get the bricks
How to list the bricks installed in a project
mason make data_layer_model --name=< feature_name>
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>
mason make domain_layer_package --name=< feature_name>
mason make data_layer_package --name=< feature_name>