feat: included mason.yaml (#145)

This commit is contained in:
Alejandro Santiago
2022-10-17 18:30:01 +01:00
committed by GitHub
parent 8b74872b1f
commit 33903aa40d
4 changed files with 37 additions and 0 deletions

3
.gitignore vendored
View File

@ -128,3 +128,6 @@ app.*.map.json
!.idea/codeStyles/
!.idea/dictionaries/
!.idea/runConfigurations/
# Mason
.mason/

View File

@ -131,6 +131,33 @@ Widget build(BuildContext context) {
}
```
## Working with Mason 🧱
This project relies on [mason](https://github.com/felangel/mason) to create and consume reusable templates called bricks. For additional documentation see [BrickHub](https://docs.brickhub.dev).
1. Install mason from [pub](https://pub.dev):
```sh
dart pub global activate mason_cli
```
2. Check the current project bricks:
```sh
mason list
```
3. Add your own bricks:
```sh
mason add bloc
```
4. Generate code from a brick:
```sh
mason make bloc
```
> **Note**
> Mason support for Visual Studio Code can be found [here](https://marketplace.visualstudio.com/items?itemName=FelixAngelov.mason).
[build_status_badge]: https://github.com/flutter/photobooth/actions/workflows/main.yaml/badge.svg
[coverage_badge]: coverage_badge.svg
[firebase_link]: https://firebase.google.com/

1
mason-lock.json Normal file
View File

@ -0,0 +1 @@
{"bricks":{"very_good_dart_package":"0.1.1","very_good_flutter_package":"0.1.2","very_good_flutter_plugin":"0.1.1","bloc":"0.2.0","flutter_bloc_feature":"0.2.0"}}

6
mason.yaml Normal file
View File

@ -0,0 +1,6 @@
bricks:
very_good_dart_package: ^0.1.1
very_good_flutter_package: ^0.1.2
very_good_flutter_plugin: ^0.1.1
bloc: ^0.2.0
flutter_bloc_feature: ^0.2.0