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

Control Case Of Template Name #73

Closed
ds17f opened this issue Mar 8, 2018 · 1 comment
Closed

Control Case Of Template Name #73

ds17f opened this issue Mar 8, 2018 · 1 comment

Comments

@ds17f
Copy link
Contributor

ds17f commented Mar 8, 2018

I'm trying to use create-component-app for some of the other templated files I create. Specifically redux actions, reducers, and selectors. I'd like to be able to use the COMPONENT_NAME replacement key with different casing. Currently it just uses whatever I've entered as the component name.

What I'd love to be able to do is:

  • Specify: ComponentName on the command line
  • In the template specify something like: _component_name_ for an lcased version of the ComponentName
  • in the template specify something like _COMPONENT_NAME_ for a ucased version of the ComponentName
  • in the template specify something like _Component_Name_ for a raw output of the ComponentName
@CVarisco
Copy link
Owner

CVarisco commented Mar 9, 2018

Hi @damiansilbergleithcunniff,

thank you for your suggestion 🙂
I believe that now made these changes could be very difficult.
The API of COMPONENT_NAME is used by all the users and it is like that in every template.

I prefer to don't touch that API for now.
Thanks man 👍

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

2 participants