-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.yaml
38 lines (33 loc) · 1.19 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
targets:
$default:
builders:
dart_json_mapper:
options:
build_extensions:
'^lib/{{}}.dart': 'lib/generated/{{}}.g.dart'
generate_for:
# here should be listed entry point files having 'void main()' function
- lib/main.dart
# This part is needed to tell original reflectable builder to stay away
# it overrides default options for reflectable builder to an **empty** set of files
reflectable:
generate_for:
- no/files
source_gen|combining_builder:
options:
build_extensions:
'^lib/{{}}.dart': 'lib/generated/{{}}.g.dart'
freezed:
options:
# Tells Freezed not to format .freezed.dart files.
# This can significantly speed up code-generation.
# format: false
build_extensions:
'^lib/{{}}.dart': 'lib/generated/{{}}.freezed.dart'
# bugged: https://github.com/schultek/dart_mappable/issues/192
# dart_mappable_builder:
# options:
# build_extensions:
# '^lib/{{}}.dart':
# - 'lib/generated/{{}}.mapper.dart'
# - 'lib/generated/{{}}.init.dart'