generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
brick.yaml
63 lines (60 loc) · 1.97 KB
/
brick.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: template
description: A new brick created with the Mason CLI.
# The following defines the version and build number for your brick.
# A version number is three numbers separated by dots, like 1.2.34
# followed by an optional build number (separated by a +).
version: 0.1.0+1
# The following defines the environment for the current brick.
# It includes the version of mason that the brick requires.
environment:
mason: ">=0.1.0-dev.41 <0.1.0"
# Variables specify dynamic values that your brick depends on.
# Zero or more variables can be specified for a given brick.
# Each variable has:
# * a type (string, number, boolean, enum, or array)
# * an optional short description
# * an optional default value
# * an optional list of default values (array only)
# * an optional prompt phrase used when asking for the variable
# * a list of values (enums only)
vars:
project_name:
type: string
description: Your project name
default: your_project_name
prompt: Project name?
package_name:
type: string
description: Your package name
default: co.nimblehq.template
prompt: Package name?
app_name:
type: string
description: Your app name
default: Your App Name
prompt: App name?
app_version:
type: string
description: Your app version
default: "0.1.0"
prompt: App version?
build_number:
type: string
description: Your app version
default: "1"
prompt: Build number?
json_field_rename_format:
type: enum
description: Default Json field renaming format with json_serializable (https://pub.dev/packages/json_serializable#build-configuration)
default: snake
prompt: Default Json field renaming format?
values:
- none
- kebab
- snake
- pascal
add_permission_handler:
type: boolean
description: Add permission_handler (https://pub.dev/packages/permission_handler) package to the project with some basic setup
default: false
prompt: Add permission_handler package?