-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.yaml
More file actions
43 lines (36 loc) · 1.7 KB
/
build.yaml
File metadata and controls
43 lines (36 loc) · 1.7 KB
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
# Read about `build.yaml` at https://pub.dev/packages/build_config
builders:
# name of the builder
#member_count:
# library URI containing the builder - maps to `lib/member_count_library_generator.dart`
#import: "package:source_gen_example/builder.dart"
# Name of the function in the above library to call.
#builder_factories: ["metadataLibraryBuilder"]
# The mapping from the source extension to the generated file extension
#build_extensions: {".dart": [".info.dart"]}
# Will automatically run on any package that depends on it
#auto_apply: dependents
# Generate the output directly into the package, not to a hidden cache dir
#build_to: source
# The next three builders are `SharedPartBuilder` instances.
# Notice they each have
# `build_extensions` set to a `NAME.g.part` file.
# NAME corresponds to the second argument to the SharedPartBuilder ctor.
# `.g.part` is the extension expected of SharedPartBuilder.
# `build_to: cache` - the output is not put directly into the project
# `applies_builders` - uses the `combining_builder` from `source_gen` to
# combine the parts from each builder into one part file.
property_sqfentity_forms:
import: "package:sqfentity_gen/builder.dart"
builder_factories: ["sqfentityFormBuilder"]
build_extensions: {".dart": [".g.view.dart"]}
auto_apply: dependents
build_to: source
applies_builders: ["source_gen|combining_builder"]
property_sqfentity:
import: "package:sqfentity_gen/builder.dart"
builder_factories: ["sqfentityBuilder"]
build_extensions: {".dart": ["sqfentity.g.part"]}
auto_apply: dependents
build_to: cache
applies_builders: ["source_gen|combining_builder"]