Replies: 2 comments 2 replies
-
|
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I would happily accept a well structured, well tested, PR that changed the parameter to a path. But given that there is working path for your use case, I'm not going to spend my time developing that PR. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
First off, this package has been great to work with. However, with some of the recent changes, I’ve run into a small workflow inconvenience.
In PR #226, project name validation was added. That definitely helps avoid invalid names and edge cases. Before that change, I would usually run the command with the project name set to
.which I know is not a valid package name, but it let me create the project in the current directory.I understand that, as mentioned in issue #157,
.is not a valid package name and the CLI argument is intended to be a package name, not a path. My point here is more about workflow convenience: it would be helpful if using.could create the project in the current directory and automatically use that directory’s name as the package name. This would make the experience smoother without changing the intended semantics of the CLI argument.I also think this would pair nicely with PR #244, which adds the
--gitoption and defaults to not creating a git repository. Often, when creating a project directly in the current directory, that directory is already in a git repo, so supporting.in this way would improve the workflow.My normal process is to create a directory, open it in my editor, then use the editor’s terminal to run the command. With the new validation, I have to cd back one level and run the command from there with the directory name I want. Many other create tools support
.and use the folder’s name for the project, which is a convenient pattern.I’m mostly looking for feedback on whether this concern makes sense and if others would find this helpful as well.
Beta Was this translation helpful? Give feedback.
All reactions