Hook-driven Mason bricks and shared generation logic for Grumpy projects.
unitmoduleservicedatasourceguardmiddlewarescreencomponentrepositorymodel
Install Mason CLI if needed:
dart pub global activate mason_cliTo use the bricks from this repository, create a mason.yaml with the following contents:
bricks:
unit:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_unit
module:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_module
service:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_service
datasource:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_datasource
guard:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_guard
middleware:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_middleware
screen:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_screen
component:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_component
repository:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_repository
model:
git:
url: https://github.com/necodeIT/grumpy_bricks
path: bricks/grumpy_modelThen fetch the bricks:
mason getEach brick is pulled from the GitHub repository and resolved from its directory within the repo.
Generate a brick by name and pass the required name variable:
mason make screen --name loginAll bricks use the shared Grumpy generation hooks included in this repository.