Svelixir.Component.Derive (svelixir v0.61.1)

Copy Markdown

Turns an observed diff into a component (SDD R1, 10).

The diff is the source of truth; the manifest is generated from it, not written by hand. Derive is a read-modify-write rather than a regenerate: files, their inferred modes and deps are recomputed, and every author-owned field is carried across untouched, so 10.1's confirmed annotations survive a re-run.

Input is a RAW working project (cache_component); output is the templated component beside it (meta_cache).

Summary

Functions

Derives a component from a raw working project.

Functions

run(opts)

@spec run(keyword()) :: {:ok, map()} | {:error, term()}

Derives a component from a raw working project.

Options: :name, :baseline, :meta (the raw project), :names (the Svelixir.Template name triple) and :out.