View Source mix igniter.phx.install (igniter v0.5.9)
Creates a new Phoenix project in the current application.
Example
mix igniter.phx.install . --module MyApp --app my_app
Options
--app- the name of the OTP application--module- the name of the base module in the generated skeleton--database- specify the database adapter for Ecto. One of:postgres- via https://github.com/elixir-ecto/postgrexmysql- via https://github.com/elixir-ecto/myxqlmssql- via https://github.com/livehelpnow/tdssqlite3- via https://github.com/elixir-sqlite/ecto_sqlite3
Please check the driver docs for more information and requirements. Defaults to "postgres".
--adapter- specify the http adapter. One of:cowboy- via https://github.com/elixir-plug/plug_cowboybandit- via https://github.com/mtrudel/bandit
Please check the adapter docs for more information and requirements. Defaults to "bandit".
--no-assets- equivalent to--no-esbuildand--no-tailwind--no-dashboard- do not include Phoenix.LiveDashboard--no-ecto- do not generate Ecto files--no-esbuild- do not include esbuild dependencies and assets. We do not recommend setting this option, unless for API only applications, as doing so requires you to manually add and track JavaScript dependencies--no-gettext- do not generate gettext files--no-html- do not generate HTML views--no-live- comment out LiveView socket setup in your Endpoint and assets/js/app.js. Automatically disabled if --no-html is given--no-mailer- do not generate Swoosh mailer files--no-tailwind- do not include tailwind dependencies and assets. The generated markup will still include Tailwind CSS classes, those are left-in as reference for the subsequent styling of your layout and components--binary-id- usebinary_idas primary key type in Ecto schemas--verbose- use verbose output
When passing the --no-ecto flag, Phoenix generators such as
phx.gen.html, phx.gen.json, phx.gen.live, and phx.gen.context
may no longer work as expected as they generate context files that rely
on Ecto for the database access. In those cases, you can pass the
--no-context flag to generate most of the HTML and JSON files
but skip the context, allowing you to fill in the blanks as desired.
Similarly, if --no-html is given, the files generated by
phx.gen.html will no longer work, as important HTML components
will be missing.
Summary
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.
Functions
Callback implementation for Igniter.Mix.Task.igniter/1.