Allow for creating app inside current directory like Vue CLI
See original GitHub issueVue 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:
- Created 3 years ago
- Reactions:33
- Comments:7 (1 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
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