Cherry.Pipeline (cherry v0.2.0)

Copy Markdown View Source

Runs a build token through an ordered list of stages.

The default stage order is the architecture: load → validate → transform → layout → emit. A failing stage stops the run and reports which stage failed.

Summary

Functions

The standard build pipeline, in order.

Threads the token through each stage, stopping at the first error.

Functions

default_stages()

@spec default_stages() :: [module()]

The standard build pipeline, in order.

run(build, stages)

@spec run(Cherry.Build.t(), [module()]) ::
  {:ok, Cherry.Build.t()} | {:error, String.t()}

Threads the token through each stage, stopping at the first error.