The package merging_builder provides two types of Dart builders
MergingBuilder, a builder that reads several input files and writes the merged output to one output file,StandaloneBuilder, a builder that reads one input file and writes the generated output to a standalone file that can be located in a different folder and have a user defined suffix.
The example presented here contains two packages:
-
The package
researcher_builderdepends onmerging_builderin order to define the builderAddNamesBuilderand the generatorAddNameGenerator. -
The package
researcherdepends onresearcher_builder, specified as a dev_dependency, in order to access and configure the builderAddNamesBuilder.
Step by step instructions on how to set up and configure a MergingBuilder are provided in
the section usage. For more details regarding the build setup consult
the build.yaml files in researcher and researcher_builder.
To build the package researcher clone the project
merging_builder_example,
navigate to the root directory of researcher
and issue the command:
$ dart run build_runner build --delete-conflicting-outputs --verbose
Please file feature requests and bugs at the issue tracker.