Search code examples
vue.jsvue-cli

How to scaffold a vue project in an existing repo?


My workflow is:

  1. New Github repository using GitHub website
  2. Code > Open with GitHub Desktop > Clone
  3. Open in Visual Studio Code

How do I use vue create that does not create a subfolder in my project folder? I want the scaffold created by vue create to be my project root.


Solution

  • In your root folder, type

    • vue create .

    • select Y for "Generate project in current directory"

    Follow the rest of the setup and you're cool.