docs: update readme
This commit is contained in:
parent
908611d32d
commit
3d5f10c5cf
@ -1,10 +1,7 @@
|
|||||||
name: wyatt_feature_brick
|
name: wyatt_feature_brick
|
||||||
description: New feature brick including state mananement
|
description: New feature brick including state mananement
|
||||||
|
|
||||||
version: 0.1.0+1
|
version: 0.1.1
|
||||||
|
|
||||||
environment:
|
|
||||||
mason: ">=0.1.0-dev.26 <0.1.0"
|
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
feature_name:
|
feature_name:
|
||||||
|
@ -1,23 +1,31 @@
|
|||||||
A sample command-line application to generate which allows to generate the template of a brick from a project which compiles.
|
# Dart - Brick Generator
|
||||||
|
|
||||||
|
A simple command-line application which allows to generate the template of a brick from a project which compiles.
|
||||||
|
|
||||||
With an entrypoint in `bin/`, library code in `lib/`.
|
With an entrypoint in `bin/`, library code in `lib/`.
|
||||||
|
|
||||||
# How to use
|
## How to use
|
||||||
|
|
||||||
- Add your app in `apps`.
|
|
||||||
- Add `brick_config.yaml` in you app folder and add this fields :
|
- Add your app in `apps/`.
|
||||||
|
- Add `brick_config.yaml` in you app folder and add this fields:
|
||||||
|
|
||||||
|
> Here we have created `wyatt_feature_brick` app in `apps/`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
brick_name: wyatt_feature_brick
|
name: wyatt_feature_brick
|
||||||
|
description: New feature brick including state mananement
|
||||||
|
path_to_brickify: lib/feature_name
|
||||||
|
|
||||||
path_to_brickify: lib/feature_brick_folder
|
version: 0.1.1
|
||||||
|
|
||||||
variables:
|
vars:
|
||||||
feature_brick:
|
feature_name:
|
||||||
variable_name: feature_brick
|
|
||||||
type: string
|
type: string
|
||||||
isBloc:
|
name: feature_name
|
||||||
variable_name: bloc
|
description: Name of the feature
|
||||||
type: bool
|
default: Dash
|
||||||
|
prompt: What is the name of your new feature
|
||||||
```
|
```
|
||||||
|
|
||||||
then run command with project path
|
then run command with project path
|
||||||
@ -26,5 +34,10 @@ then run command with project path
|
|||||||
dart tools/brick_generator/bin/brick_generator.dart ./apps/wyatt_feature_brick
|
dart tools/brick_generator/bin/brick_generator.dart ./apps/wyatt_feature_brick
|
||||||
```
|
```
|
||||||
|
|
||||||
# TODO
|
## TODO
|
||||||
- Work on bool variables
|
|
||||||
|
- [ ] bool variables
|
||||||
|
- [ ] enum variables
|
||||||
|
- [ ] array variables
|
||||||
|
- [ ] pre hooks
|
||||||
|
- [ ] post hooks
|
Loading…
x
Reference in New Issue
Block a user