Skip to content

simphotonics/merging_builder_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merging Builder - Example

Introduction

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:

  1. The package researcher_builder depends on merging_builder in order to define the builder AddNamesBuilder and the generator AddNameGenerator.

  2. The package researcher depends on researcher_builder, specified as a dev_dependency, in order to access and configure the builder AddNamesBuilder.

Build Setup

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

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

Source code generation with Dart.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published