-
Notifications
You must be signed in to change notification settings - Fork 64
Add backpex.install command
#957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…pex into feature/backpex-installer
|
I would recommend to test the installer with this command:
You also need to install igniter before using this command. You can use the archive or install it in the mix.exs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a Backpex installer using the Igniter framework that automates the installation and setup of Backpex in Phoenix applications. The installer handles configuration, dependency installation, file modifications, and layout generation to streamline the onboarding process.
Key changes:
- Adds a comprehensive installer task that automates most manual setup steps from the installation guide
- Integrates with Igniter and IgniterJS for automated file modifications and dependency management
- Includes helper utilities for common installation tasks like file manipulation and module checking
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| priv/templates/layouts/admin.html.heex | Template for the default admin layout generated by the installer |
| mix.exs | Adds igniter and igniter_js dependencies required for the installer |
| lib/mix/tasks/backpex.install.ex | Main installer task with comprehensive setup automation |
| lib/mix/helpers.ex | Helper functions for file manipulation, module checking, and configuration |
| guides/get_started/installation.md | Documentation update mentioning the new installer |
| demo/mix.exs | Removes sourceror dependency (cleanup) |
closes #980
This is the starting point for a backpex installer with igniter. You can use
mix igniter.install backpexto add backpex to your project and have almost everything set up without any further work. More information about installing with igniter can be found in its docs.The installer requires the new tailwind and daisyui update (#920), as it greatly reduces the pain of the tailwind and daisyui setup (no tailwind.config.js 🥳).
ToDo
backpex_routestorouter.exs.admin.html.heexto layouts folder@source "../../deps/backpex/**/*.*ex";toapp.csstailwindcss/formsplugin exists inapp.cssbg-whiteclass is used onbodytagIgniter.Test