question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to have a different directory and project name

See original GitHub issue

What 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:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
LinusBorgcommented, Aug 10, 2019

I personally think renaming a folder is straightforward and was enough.

Adding another option for this does not add any considerable value.

0reactions
sh7dmcommented, Aug 18, 2019

I’d prefer vue create my-app --dir web as a more convienient way to do this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found