wyatt-bricks/tools/brick_generator

A sample command-line application to generate which allows to generate the template of a brick from a project which compiles. With an entrypoint in bin/, library code in lib/.

How to use

  • Add your app in apps.
  • Add brick_config.yaml in you app folder and add this fields :
brick_name: wyatt_feature_brick

path_to_brickify: lib/feature_brick_folder

variables:
  feature_brick:
    variable_name: feature_brick
    type: string
  isBloc:
    variable_name: bloc
    type: bool

then run command with project path

dart tools/brick_generator/bin/brick_generator.dart ./apps/wyatt_feature_brick

TODO

  • Work on bool variables