bonfire-app icon indicating copy to clipboard operation
bonfire-app copied to clipboard

create custom generators

Open mayel opened this issue 2 years ago • 1 comments

see https://fly.io/phoenix-files/customizing-phoenix-generators/ and https://github.com/pragdave/mix_templates and https://elixirforum.com/t/codegen-simple-succint-and-customizable-code-generation-for-your-libraries/54521

  • [ ] schemas + migrations (depends on https://github.com/bonfire-networks/bonfire-app/issues/243)
  • [ ] views
  • [ ] components
  • [x] #972
  • [x] #980
  • [ ] smart input type
  • [ ] #981
  • [ ] settings item
  • [ ] new activity type + feed preview
  • [ ] object type feed preview
  • [ ] etc

mayel avatar Sep 17 '23 19:09 mayel

Implemented a generator for creating a new extension: ´mix extension.new extension_name´ for tutorial purposes Currently it:

  • clones the extension template
  • renames modules name (and any appearance) according the name provided
  • rename the bonfire_extension_template.exs config file (even if we do not use it anymore?)
  • delete .git

ivanminutillo avatar Jan 05 '24 14:01 ivanminutillo