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

generator mix tasks #139

Merged
merged 5 commits into from
Mar 12, 2024
Merged

generator mix tasks #139

merged 5 commits into from
Mar 12, 2024

Conversation

bcardarella
Copy link
Contributor

@bcardarella bcardarella commented Mar 6, 2024

  • lvn.gen - generates lib/{:app_name}_native.ex
  • lvn.gen.layout - generates lib/{:app_name}_web/components/layouts.{:format}.ex, lib/{:app_name}_web/components/layouts_{:format}/(app.{:format}.neex, root.{:format}.neex)

Plugin authors can also override LVN's default templates. For example, to provide a plugin-specific layout file just add:

priv/templates/lvn.gen.layout/app.neex and for that given plugin the LVN gen task will know to use the one provided by the plugin instead of the default that comes with live_view_native

* lvn.gen - generates `lib/{:app_name}_native.ex`
This will allow plugins to override the default templates
for format specific gen tasks
@bcardarella bcardarella marked this pull request as ready for review March 12, 2024 11:36
@bcardarella bcardarella merged commit 11ec1ba into main Mar 12, 2024
1 check passed
@bcardarella bcardarella deleted the bc-gen-mix-tasks branch March 12, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant