Automate common Phoenix setup tasks so you can quickly get to building!
- Add tasks - Install and configure packages like Bun, Oban, Credo, Pgvector, and more
- Remove tasks - Clean up unwanted code like DaisyUI, Topbar, theme toggle
- Gen tasks - Generate boilerplate code and run convenience tasks like sorting dependencies by name
Add project to your list of dependencies in mix.exs:
def deps do
[
{:project, "~> 1.0"}
]
endThen fetch the dependency:
mix deps.getmix project.gen.setupThis creates lib/mix/tasks/<your_app_name>.setup.ex which you can edit to control which tasks run and in what order.
mix project.setupmix project.setup --oban-pro --gigalixir --mix-test-watch
mix your_app_name.setup --oban-pro Add a package:
mix project.add bun
mix project.add oban,credo,pgvectorRemove code:
mix project.remove daisy_ui
mix project.remove theme_toggleGenerate code:
mix project.gen home_page
mix project.gen app_layoutFor a complete list of available tasks, see the documentation.
After running mix project.gen.setup, edit the tasks/0 function in lib/mix/tasks/<your_app_name>.setup.ex.
- Reorder tasks
- Remove tasks you don't need
- Add your own custom tasks
- Use
{:optional, :flag_name}placeholders for custom flags
