Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support creating project in current directory #896

Closed
cecilphillip opened this issue Feb 28, 2018 · 2 comments · Fixed by #916
Closed

Support creating project in current directory #896

cecilphillip opened this issue Feb 28, 2018 · 2 comments · Fixed by #916
Labels
contribution welcome feature request intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome.

Comments

@cecilphillip
Copy link

cecilphillip commented Feb 28, 2018

What problem does this feature solve?

Makes a step towards more easily using the 3.x CLI with other non-javascript backend projects such as asp.net or flask.

Currently, invoking vue create . in an empty directory throws the following error

🚀  Invoking generators...
 ERROR  Error: Cannot find module '@vue/cli-service/generator' from '/Users/cecilphillip/Desktop/toss'
Error: Cannot find module '@vue/cli-service/generator' from '/Users/cecilphillip/Desktop/toss'
    at Function.module.exports [as sync] (/usr/local/lib/node_modules/@vue/cli/node_modules/resolve/lib/sync.js:40:15)
    at Object.keys.map.id (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:246:30)
    at Array.map (<anonymous>)
    at Creator.resolvePlugins (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:245:36)
    at Creator.create (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:134:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)

What does the proposed API look like?

vue create . || vue create --here

@yyx990803 yyx990803 added feature request contribution welcome intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome. labels Feb 28, 2018
kazupon added a commit to kazupon/vue-cli that referenced this issue Mar 2, 2018
@willl
Copy link

willl commented Mar 31, 2018

Just tried doing this but couldn't get it to work.

image

It says "The batch file cannot be found" and then fails.

Currently running vue-cli 3.0.0-beta6.
image

Happy to create a new issue (if needed) and/or provide more info.

@willl
Copy link

willl commented Mar 31, 2018

Replying to my own comment, it looks like it works correctly when I tried again and told vue cli to manually select features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome feature request intend to implement The team has the intention to implement this feature at some point. Contribution is also welcome.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants