mix mithril_ui.install (Mithril UI v0.1.2)

View Source

Installs Mithril UI into your Phoenix application.

$ mix mithril_ui.install

This task will:

  1. Create Mithril UI configuration file
  2. Update Tailwind config with DaisyUI plugin
  3. Add @source directive to app.css for class scanning
  4. Add JavaScript hooks to app.js
  5. Update root layout with theme attributes
  6. Print next steps

Options

  • --no-tailwind - Skip Tailwind/DaisyUI configuration
  • --no-js - Skip JavaScript hook installation
  • --no-config - Skip config file generation
  • --no-layout - Skip root layout modification
  • --dry-run - Show what would be done without making changes

Examples

$ mix mithril_ui.install
$ mix mithril_ui.install --no-js
$ mix mithril_ui.install --dry-run