# scaffolding_test
How to use š
Command Line
mason init
mason add scaffolding_test
mason make scaffolding_test --package scaffolding_sample --feature feature1 --properties "String firstName=Your first name, String lastName=Your surname, bool registered=false, int age=21"
Then add your properties! (Optional)
Variables for the Command Line and Config Json āØ
Variable | Description | Default | Type |
---|---|---|---|
package | The name of the package this is generated into | scaffolding_sample | string |
feature | The name of the feature | feature1 | string |
properties | string of the properties of this feature (string,bool,num) | string |
Config
mason make scaffolding_test -c config_template.json
{
"package": "scaffolding_sample",
"feature": "feature1",
"properties": "String firstName=Your first name, String lastName=Your surname, bool registered=false, int age=21"
}
Outputs š¦
--package scaffolding_sample --feature feature1 --properties "String firstName=Your first name, String lastName=Your surname, bool registered=false, int age=21"
test/
āā features/
āā feature1/
āā data/
ā āā feature1_model_test.dart
ā āā feature1_repository_impl_test.dart
āā domain/
ā āā feature1_test.dart
āā presentation/
āā bloc/
ā āā feature1_edit_bloc_test.dart
ā āā feature1_read_bloc_test.dart
āā views/
āā feature1_edit_view_test.dart
āā feature1_read_view_test.dart