-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Feature Request: Allow generating kebab-case projects #1391
Comments
React Native will not permit a project to be generated with kebab case, I presume because it would cause problems in the native code. Are you suggesting that it only apply to the package.json and that we would automatically convert the project name to CamelCase before running the RN generator? |
@kevinvangelder I'm suggesting:
|
@derekgreenberg I support this, good idea. I'm not sure if an option is the right way to go or if it's better to just do This is likely to be somewhat nontrivial, though, because of how we are making assumptions throughout the spin-up process. The workaround is to generate the new project and then simply rename the main folder after the fact. |
This feature was added to v9 in #2446 |
What's going on?
This is more of a feature request than an issue report.
Ignite new
requires an app name to be provided in camel case. For example:Please use camel case for your project name. Ex: FooBar
. This generates a containing directory using the same project name, such asFooBar
For some users, it would be preferable to generate the containing directory in kebab case, such as 'foo-bar'. Furthermore, when generating a new app, the name of the package (i.e. the
name prop in package.json
) is generated in camel case, and Prettier gripes about the format:String does not match the pattern of "^(?:@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".
To summarize, this is a request for an option for the user to have the Ignited app directory name in kebab case and to have the package name prop is kebab case as well.
Steps to reproduce
ignite new FooBar
FooBar
. That's expected, but it would be great if the user could provide an option so the project directory name was in kebab case:foo-bar
FooBar
. That's expected, but it would be nice if the package name was in kebab case. At the very least, how about if the user could provide a kebab case option to Ignite so the package name was generated in kebab case?ignite doctor
results:The text was updated successfully, but these errors were encountered: