Allow to have a different directory and project name
See original GitHub issueWhat problem does this feature solve?
Full stack projects might use a project structure where the web is only a certain part amongst e.g. the server, scripts, database definitions. Consider for example the default Go project structure. For such a project it is desirable to have the output of vue-cli
generated in a specific folder (web/
in the case. of go) that is not named just as the whole project, while the actual name (package.json) should still be the one of the application. As of now, I would need to manually rename the folder:
# create a web named 'my-cool-app'
$ vue create my-cool-app
# rename the target folder to a more generic name
$ mv my-cool-app web
IMHO it would be a great benefit to allow to (optionally) provide a different project name to vue-cli
, while the standard behaviour should remain (i.e. derive the project name from the output folder’s name).
What does the proposed API look like?
# create the web 'my-web' in the 'web' directory
$ vue create --name my-web web
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How can I rename a project folder from within Visual Studio?
In Solution Explorer, double click, or right click on Properties → goto Application Tab, rename Assembly name and Default namespace to match.
Read more >Cannot create proejct same name in different solution folder ...
I am trying to create a project with same name in different solution folder/physical folder but cannot in Visual Studio 2019, 16.4.2.
Read more >Renaming Projects | PyCharm Documentation - JetBrains
Right-click the root folder of your project and select Refactor | Rename from the context menu or press Shift+F6 . In the dialog...
Read more >Organizing & Viewing Your Projects - Qualtrics
Now let's click the “Specific feature tests” folder and see what's inside. ... The search bar on the Projects page can locate items...
Read more >How to Change or Rename a File, Folder, or Directory
How to rename in MS-DOS and the Windows command line ... MS-DOS and Windows command (CMD) line users can change the name of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I personally think renaming a folder is straightforward and was enough.
Adding another option for this does not add any considerable value.
I’d prefer
vue create my-app --dir web
as a more convienient way to do this.