Skip to content

Refactor and improve generators #251

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

Merged
merged 6 commits into from
Nov 5, 2019
Merged

Refactor and improve generators #251

merged 6 commits into from
Nov 5, 2019

Conversation

marcoroth
Copy link
Collaborator

Refactor and improve generators

This Pull-Requests refactors the generators and changes the names of them.

Changes

  • update the generator names (It's more Rails-like this way)

    • rails g matestack_app => rails g matestack:app
    • rails g matestack_page => rails g matestack:page
    • rails g matestack_component => rails g matestack:component
  • simplify the generation of a app/page/component

  • change the template handling

    • templates now use the .tt suffix
    • underneath the templates folder the templates are now placed at the location where they will be generated in the app
    • the dynamic parts in the template path are now interpolated with the %variable% syntax
  • add tests for the page generator for the options --namespace and --controller_action

  • update tooling docs

Notes

This PR is dependent on #249 and should only be merged after the other one is merged.

pascalwengerter and others added 5 commits October 18, 2019 12:24
- change name: matestack_page => matestack:page
- simplify the genration of a page
- change structure of templates
- add tests for the options --namespace and --controller_action
- change name: matestack_component => matestack:component
- simplify the genration of a component
- change structure of templates
- change name: matestack_app => matestack:app
- simplify the generation of an app
- change structure of templates
Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great effort and awesome work, thank you @marcoroth 🚀 🌹

Copy link
Contributor

@pascalwengerter pascalwengerter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good to me @marcoroth 🎉

@pascalwengerter pascalwengerter merged commit 4e005a0 into matestack:develop Nov 5, 2019
@marcoroth marcoroth deleted the refactor_generators branch November 5, 2019 19:50
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

Successfully merging this pull request may close these issues.

2 participants