-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
57 lines (57 loc) · 1.44 KB
/
build.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
targets:
$default:
sources:
- $package$
- lib/**
- pubspec.yaml
- test/**
builders:
json_serializable:
enabled: true
generate_for:
include:
- lib/**
- test/**
options:
any_map: false
checked: false
create_factory: true
create_to_json: true
disallow_unrecognized_keys: false
explicit_to_json: true
field_rename: none
ignore_unannotated: false
include_if_null: true
#nullable: true
freezed:
enabled: true
options:
union_key: type
union_value_case: snake
generate_for:
include:
- lib/**
- test/**
#built_value_generator|built_value:
# enabled: true
# generate_for:
# exclude:
# - test
# include:
# - lib/**
build_web_compilers:entrypoint:
# These are globs for the entrypoints you want to compile.
generate_for:
- test/**.browser_test.dart
- web/**.dart
enabled: true
options:
sound_null_safety: true
compiler: dart2js
# List any dart2js specific args here, or omit it.
dart2js_args:
- -DIS_WEB=true
- -O2
pubspec_generator:
options:
output: lib/src/common/constant/pubspec.yaml.g.dart