Skip to content
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

Apply specific addon instead of the whole template #41

Open
andyduong1920 opened this issue Nov 2, 2020 · 1 comment
Open

Apply specific addon instead of the whole template #41

andyduong1920 opened this issue Nov 2, 2020 · 1 comment

Comments

@andyduong1920
Copy link
Member

Currently, the template doesn't support to apply only specific addon yet, someone might use the template to add a few add-ons instead of the whole template.

For example:

mix nimble.phx.gen.template addon=credo # applying only credo addon to an existing project
mix nimble.phx.gen.template addon=wallaby # applying only wallaby addon to an existing project
@andyduong1920
Copy link
Member Author

As the existing project's structure might differ from the original project, so it will be challenging to apply the addon to that. We can implement this one by 2 phrases

  • Phrase 1: Instead of applying the addon, we can render the step-by-step how to integrate the addon like a guide so the user can add it manually regardless of their existing structure.

    eg: with the Oban addon

    • Step 1: add Oban into the mix.ex file
    • Step 2: Create the migration file with the following content ....
    • Step 3: ....
  • Phrase 2: Apply to any existing structure, this would be a hard task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant