mix phoenix_live_calendar.install (PhoenixLiveCalendar v0.1.0)

Copy Markdown View Source

Installs PhoenixLiveCalendar into your Phoenix project.

$ mix phoenix_live_calendar.install

This task:

  1. Finds your app.css and adds an @source directive so Tailwind scans PhoenixLiveCalendar's component templates
  2. Finds your app.js, adds the JS hook import, and registers window.PhoenixLiveCalendarHooks in your LiveSocket when it can do so safely

Both steps are idempotent — safe to run multiple times. When the task can't edit a file automatically it prints exact manual instructions instead of guessing.

Options

  • --css-path — Path to your app.css file (auto-detected if not specified)
  • --js-path — Path to your app.js file (auto-detected if not specified)