builder library

Public entrypoints for build_runner.

Two factories:

  • fluentGenBuilder reads .ftl assets, runs inference and emission, and writes the result as a JSON payload to a cached temp file.

  • fluentFanOutBuilder reads that JSON and writes each {outputPath: source} entry to the consumer's source tree.

The split exists because Builder.buildExtensions is a static extension-to-extension map; the consumer-configurable output_path cannot be expressed there. The fan-out step translates the JSON to whatever path the consumer asked for.

Functions

fluentFanOutBuilder(BuilderOptions options) → PostProcessBuilder
Construct the JSON-payload → source-files PostProcessBuilder.
fluentGenBuilder(BuilderOptions options) → Builder
Construct the FTL → JSON-payload Builder.