mirror of
https://github.com/flutter/holobooth.git
synced 2025-08-06 14:50:05 +08:00
feat: included mason.yaml (#145)
This commit is contained in:

committed by
GitHub

parent
8b74872b1f
commit
33903aa40d
3
.gitignore
vendored
3
.gitignore
vendored
@ -128,3 +128,6 @@ app.*.map.json
|
||||
!.idea/codeStyles/
|
||||
!.idea/dictionaries/
|
||||
!.idea/runConfigurations/
|
||||
|
||||
# Mason
|
||||
.mason/
|
27
README.md
27
README.md
@ -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
1
mason-lock.json
Normal 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
6
mason.yaml
Normal 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
|
Reference in New Issue
Block a user