mix skua.install (Skua v0.1.0)

Copy Markdown View Source

Installs Skua into the current Phoenix project:

  • imports assets/css/skua.css from assets/css/app.css
  • imports the hooks bundle into assets/js/app.js and spreads it into the LiveSocket hooks
  • imports Skua's components into lib/<app>_web.ex (excepting the button/input that collide with CoreComponents)
  • routes the Skua flash group through the layout so flashes render as toasts
  • generates an editable starter home LiveView and points / at it

Every step is idempotent — re-running is a no-op. Files that don't match the default Phoenix layout are skipped with a printed manual instruction rather than being corrupted.

mix skua.install

Run mix skua.install again any time after a Skua upgrade; it only adds what's missing.