View Source mix inertia.install (Inertia v2.5.1)
Installs and configures the Inertia.js adapter in a Phoenix application.
This installer:
- Updates controller and HTML components to import Inertia functions
- Adds the Inertia plug to the browser pipeline
- Adds basic configuration in config.exs
- Updates esbuild and configures code splitting
- Set up the client-side integration packages
Usage
mix inertia.install
Options
--client-framework FRAMEWORK Framework to use for the client-side integration
(react, vue, or svelte). Default is react.
--camelize-props Enable camelCase for props
--history-encrypt Enable history encryption
--typescript Enable TypeScript
--yes Don't prompt for confirmations