Svelixir.Config.Assets (svelixir v0.11.0)

Copy Markdown

Which asset surfaces are generated — the assets: section.

type is the explicit selector. The api and ui blocks are detail consulted when it selects them, never on/off switches in their own right.

Selecting :api or :both requires project.type: :web; Svelixir.Config.Otp enforces that, since a section cannot see its siblings.

Summary

Functions

Builds this section, and any nested block, from input.

Reports whether type selects a surface that needs a Phoenix router.

Types

t()

@type t() :: %Svelixir.Config.Assets{
  api: Svelixir.Config.Assets.Api.t(),
  type: atom(),
  ui: Svelixir.Config.Assets.Ui.t()
}

Functions

new!(input \\ [])

@spec new!(keyword() | map()) :: t()

Builds this section, and any nested block, from input.

requires_web?(assets)

@spec requires_web?(t()) :: boolean()

Reports whether type selects a surface that needs a Phoenix router.

valid?(self)