-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[CLI] lb4
does not create app with uppercase letters
#1663
Comments
Another option is to prompt the |
@raymondfeng can I implement an extra option for |
@vvdwivedi that's great! Let us know if you need any help along the way. See Contributing code and Submitting a pull request to LoopBack 4 to get you started. |
Sure, will start a PR soon. |
Hi everybody, I am looking for an open-source project to contribute, and I found this issue and I would like to work on it. This issue is unassigned I just want to validate there is nobody working on it. I was reviewing the source code and I found that utils.js is using validate-npm-package-name package from npm repository validate-npm-package-name. the Then I have a question, the lb4 command must allow the user to create packages with uppercase letters?? |
@javiersantossanchez I was supposed to work on this, but stuck with something else. I am not sure I understand your second question correctly, but if you want to know: Then npm doesn't allow Capital letters anymore in the package name. |
@javiersantossanchez sorry for responding so late. Are you still keen to work on this issue? Based on the previous discussion, I think the agreement is to add a new prompt for the npm package name. This prompt should use a lower-case version of the project name as the default value offered by CLI to the user running it, and we can use |
Hello, @bajtos |
@javiersantossanchez ping 😄 Have you managed to make any progress? Is there anything you need help with? |
Hi, @bajtos |
Description / Steps to reproduce / Feature proposal
$ lb4 myLB4app > Generation is aborted: Invalid npm package name: myLB4app
This is likely due to the
package.json
'sname
format restriction. We should use the user-submitted name for everything (directory name etc.), except for thename
property inpackage.json
; for that, CLI should do the hyphenation and lowercasing for the user.Thoughts?
Current Behavior
lb4
refuses to create an app if it contains uppercase letters.Expected Behavior
Should allow creation of apps with uppercase and lowercase letters.
See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: