SvelixirNew. Project
(svelixir_new v0.11.0)
Copy Markdown
Edits to the freshly generated project.
render_config/1 uses a heredoc rather than a formatter round-trip: nothing
in the MVP re-reads svelixir.exs byte-for-byte, so a second encoder here
would duplicate the hex package's codec with no mechanism keeping the two in
step — and this archive ships zero dependencies, so it cannot call that codec.
The root suite asserts the rendered file is readable by the package's config
reader, which is the guarantee that actually matters.
Summary
Functions
Splices dep_line in as the first entry of the generated project's deps/0.
Renders svelixir.exs — the SDD 8.1 slim input shape.
Functions
@spec patch_mix_exs(binary(), binary()) :: {:ok, binary()} | {:error, :deps_not_found | :already_patched}
Splices dep_line in as the first entry of the generated project's deps/0.
@spec render_config(SvelixirNew.Options.t()) :: binary()
Renders svelixir.exs — the SDD 8.1 slim input shape.