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 for creating app inside current directory like Vue CLI

See original GitHub issue

Vue CLI allows the user to create a new app inside the current directory, and it will name the app the same as the directory:

vue create .

The use case for this is that it’s really common to first create a repository (e.g. on GitHub), clone it, and then create the new app.

Right now to do the same with create-nuxt-app the user has to run (eg the repo name is my-website.com):

npx create-nuxt-app my-website.com

This means you end up with my-website.com\my-website.com and then you need to basically move the contents up one directory to be in the root.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:33
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
TheMangoTraincommented, Aug 16, 2020

I agree with the use case.

For reference, you can just move all the files from the newly created sub-folder, into the root of the repo.

4reactions
matgntcommented, May 6, 2021

it’s also a problem when working with Visual Studio Code and DevContainers [1]. Then you always have a hidden “.devcontainer” directory there and you always have to create the nuxt app in a sub-directory.

[1] https://code.visualstudio.com/docs/remote/containers

Read more comments on GitHub >

github_iconTop Results From Across the Web

"vue create" in current directory · Issue #1509 · vuejs/vue-cli
Currently the only option, I'm aware of, to create a new project is to let vue-cli create it's folder from scratch somewhere in...
Read more >
Creating a Project | Vue CLI
Vue CLI is in Maintenance Mode! For new projects, it is now recommended to use create-vue to scaffold Vite-based projects.
Read more >
How to add vue-cli to the existing project?
To initiate the development server, choose your sub-directory or folder (under your newly merged app), open the terminal, cd to the folder path( ......
Read more >
Integrating Vue CLI in an Existing Project | by Bram Doppen
Simply type in the terminal vue create [name-of-my-app] and it will create a new Vue.js project with a lot of configuration (the *magic*...
Read more >
Getting Started With the Vue CLI
We can start a new project by going to the "Create" tab, which will allow you to choose the path for your project:...
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