mix svelixir.baseline.compose (svelixir v0.61.1)

Copy Markdown

Builds a DERIVED baseline from a generator baseline plus a component.

mix svelixir.baseline.compose web

:web is no longer generated. It is :api plus the web layer, so its tree is produced rather than downloaded — which is what makes the Svelte layer's deletions cease to exist rather than need representing.

Two steps: RENAME the source tree from its own names to the target's, then APPLY the component. The rename is Svelixir.Template.capture/2 followed by render/2 — two functions that already exist and are tested — rather than new machinery, and it runs before apply because a component is captured against the source's names and resolves APP against the target's.

Separate from mix svelixir.baseline.record on purpose. Record is pure over directories and shells out to nothing, which is what lets the drift check run offline on every commit; this task writes the tree, record hashes it.