-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.yaml
32 lines (32 loc) · 1.17 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
targets:
$default:
builders:
mockor:
generate_for:
- example/**.dart
mocktailFallbackBuilder:
generate_for:
- example/**.dart
# Read about `build.yaml` at https://pub.dev/packages/build_config
builders:
# 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.
mockor:
import: "package:mockor/src/builder.dart"
builder_factories: ["mockor"]
build_extensions: {".dart": [".mockor.dart"]}
auto_apply: dependents
build_to: source
runs_before: ["mockito|mockBuilder"]
mocktailFallbackBuilder:
import: "package:mockor/src/builder.dart"
builder_factories: ["mocktailFallbackBuilder"]
build_extensions: {".dart": [".fallback.dart"]}
auto_apply: dependents
build_to: source