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
Add generator option to specify first component name rather than hello_world #716
Comments
@oklas Any chance that you can submit a PR for this? We've been planning on doing this for ages. It just hasn't been a blocker or priority. The community would ❤️ this! |
I can not promise anything but will try to identify a gap in the boundless number of tasks. |
@oklas Thank you! I look forward to seeing what you get! |
@oklas Any word on this one? |
Hi Justin! I have no time currently. But I want to improve it definitely but I can not promise. |
Rename HelloWorld to MainPage (like this PR857) will be good step. You can imagine projects where there is MainPage. But it is unlikely that someone will want to have the HelloWorld in his power project. Therefore, each time everyone should rename several files and fix the code in them. |
Just to let you know I'm working on this feature. |
@ledestin Please be sure to see the details in https://github.com/shakacode/react_on_rails/blob/master/CONTRIBUTING.md and feel free to ping me when you're ready for review. Most importantly, we'll want to add an option to the super awesome generator testing developed by @robwise. |
@ledestin is no longer working on this one. I'm open to somebody else picking this one up and creating a PR. |
@justin808 I'll grab this one. |
@rodrigobdz That would be awesome! |
@rodrigobdz Please email me justin@shakacode.com to get in our Slack group. Maybe we could do #1089 first. |
@justin808 is this still up for grabs? |
@splashinn It should be. I'm not working on this anymore. |
@justin808 Hello dear Justin, since this is more of a backend issue than front, I would like to take a try at this. For clarifying I need to know if you want to change just the component name or all files including controller layout namespace, etc. |
The command:
create many things included
HelloWorld
component rails binding and view and so on.In most cases (except demo) need not
HelloWorld
but needApp
orBundle
orMainPage
or some practical useful name. It is need to rename about ten files and edit contents in some places. It is not difficult, but with this it will be not needed to do at all.It may be command some like this:
It will be good to change default value instead of
HelloWorld
may beMainPage
orApp
may be somebody has another name to suggest or opinion which name to prefer.The text was updated successfully, but these errors were encountered: