-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
44 lines (43 loc) · 1.27 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
targets:
$default:
sources:
- lib/**
builders:
graphql_builder:
import: 'package:ferry_generator/graphql_builder.dart'
builder_factories: ['graphqlBuilder']
build_extensions:
{
'{{inputDir}}/{{file}}.graphql':
[
'{{dir}}/__generated__/{{file}}.ast.gql.dart',
'{{dir}}/__generated__/{{file}}.data.gql.dart',
'{{dir}}/__generated__/{{file}}.var.gql.dart',
'{{dir}}/__generated__/{{file}}.req.gql.dart',
'{{dir}}/__generated__/{{file}}.schema.gql.dart',
],
}
auto_apply: none
build_to: source
applies_builders:
[
'ferry_generator|serializer_builder',
'built_value_generator|built_value',
]
runs_before:
[
'ferry_generator|serializer_builder',
'built_value_generator|built_value',
]
serializer_builder:
import: 'package:ferry_generator/serializer_builder.dart'
builder_factories: ['serializerBuilder']
build_extensions:
{
'{{dir}}/{{file}}.graphql':
['{{dir}}/__generated__/{{file}}.serializer.gql.dart'],
}
auto_apply: none
build_to: source
applies_builders: ['built_value_generator|built_value']
runs_before: ['built_value_generator|built_value']