-
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
fix(cli): fix app default project name. untildify the project path #3252
Conversation
I agree. Can the user type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix 👍. Can we add a test for the changes?
Yes, |
3d91a94
to
3ec96f2
Compare
4f01419
to
fdbf542
Compare
fdbf542
to
84c3f70
Compare
b32c2f4
to
9a3cca9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM at high level, I'll leave the detailed review to others.
It would be great to add tests to cover the new behavior and prevent regressions in the future.
c16fe6b
to
7db70e1
Compare
7db70e1
to
9a65d61
Compare
8783ac7
to
cf231c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9ed5116
to
99a2361
Compare
3631bd8
to
5c311fd
Compare
5c311fd
to
174052f
Compare
Description
In the issue 2092, the default project name could be generated incorrectly if the cwd folder name has hyphens, fixed. The input app name has no such issue.
The user also suggested that
lb4
should allow the project to be generated in the CWD. However, that could be messy and confusing. The other issue is thatlb4
allows user to use any project path as they want. This could be problematic:The change here is to untildify the input path to make sure that it always uses absolute path.
resolves #2092
Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈