Skip to content

Commit

Permalink
Question: how to configure build.yaml (or something else) to NOT ha…
Browse files Browse the repository at this point in the history
…ve the "not_enabled_builder" show up in the generated `build.dart` file?
  • Loading branch information
BenVercammen committed Oct 11, 2023
1 parent 9fe0f98 commit 3261128
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _test/pkgs/provides_builder/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ builders:
builder_factories: ["throwingBuilder"]
build_extensions: {".fail": [".fail.message"]}
auto_apply: dependents
not_enabled_builder:
import: "package:provides_builder/builders.dart"
builder_factories: [ "notEnabledBuilder" ]
build_extensions: { ".not.enabled": [ ".not.enabled.message" ] }
post_process_builders:
some_post_process_builder:
target: "provides_builder"
Expand Down
2 changes: 2 additions & 0 deletions _test/pkgs/provides_builder/lib/builders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ Builder notApplied(BuilderOptions options) => _SomeBuilder.fromOptions(options);
PostProcessBuilder somePostProcessBuilder(BuilderOptions options) =>
_SomePostProcessBuilder.fromOptions(options);
Builder throwingBuilder(_) => _ThrowingBuilder();
Builder notEnabledBuilder(BuilderOptions options) =>
_SomeBuilder.fromOptions(options);

0 comments on commit 3261128

Please sign in to comment.