forked from google/json_serializable.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
125 lines (114 loc) · 3.39 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Read about `build.yaml` at https://pub.dev/packages/build_config
targets:
$default:
builders:
source_gen|combining_builder:
options:
ignore_for_file:
- lines_longer_than_80_chars
# Only for the JSON literal output file
- text_direction_code_point_in_literal
json_serializable:
generate_for:
- example/*
- test/default_value/*
- test/field_matrix_test.field_matrix.dart
- test/generic_files/*
- test/integration/*
- test/kitchen_sink/*
- test/literal/*
- test/supported_types/*
- tool/readme/*
json_serializable|_field_matrix_builder:
generate_for:
- test/field_matrix_test.dart
json_serializable|_test_builder:
generate_for:
- test/default_value/default_value.dart
- test/generic_files/generic_class.dart
- test/integration/json_test_example.dart
- test/kitchen_sink/kitchen_sink.dart
json_serializable|_type_builder:
generate_for:
- test/supported_types/input.dart
json_serializable|_type_test_builder:
generate_for:
- test/supported_types/type_test.dart
builders:
_test_builder:
import: 'tool/test_builder.dart'
builder_factories: ['testBuilder']
build_extensions:
.dart:
- .factories.dart
- .g_any_map.dart
- .g_any_map__checked.dart
- .g_exclude_null.dart
- .g_explicit_to_json.dart
build_to: source
runs_before: ["json_serializable"]
_type_builder:
import: 'tool/test_type_builder.dart'
builder_factories: ['typeBuilder']
build_extensions:
.dart:
- .type_bigint.dart
- .type_bool.dart
- .type_datetime.dart
- .type_double.dart
- .type_duration.dart
- .type_enumtype.dart
- .type_int.dart
- .type_iterable.dart
- .type_list.dart
- .type_map.dart
- .type_num.dart
- .type_object.dart
- .type_set.dart
- .type_string.dart
- .type_uri.dart
build_to: source
runs_before: ["json_serializable"]
_type_test_builder:
import: 'tool/test_type_builder.dart'
builder_factories: ['typeTestBuilder']
build_extensions:
.dart:
- .bigint_test.dart
- .bool_test.dart
- .datetime_test.dart
- .double_test.dart
- .duration_test.dart
- .enumtype_test.dart
- .int_test.dart
- .iterable_test.dart
- .list_test.dart
- .map_test.dart
- .num_test.dart
- .object_test.dart
- .set_test.dart
- .string_test.dart
- .uri_test.dart
build_to: source
runs_before: ["json_serializable"]
_field_matrix_builder:
import: 'tool/field_matrix_builder.dart'
builder_factories: ['builder']
build_extensions:
.dart: [.field_matrix.dart]
build_to: source
runs_before: ["json_serializable"]
_readme_builder:
import: "tool/readme_builder.dart"
builder_factories: ["readmeBuilder"]
build_extensions: {"tool/readme/readme_template.md": ["README.md"]}
build_to: source
auto_apply: root_package
required_inputs: ['.dart']
json_serializable:
import: "package:json_serializable/builder.dart"
builder_factories: ["jsonSerializable"]
build_extensions: {".dart": ["json_serializable.g.part"]}
auto_apply: dependents
build_to: cache
applies_builders: ["source_gen|combining_builder"]