Skip to content

Automatic plugin install #844

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

Closed
Akryum opened this issue Feb 16, 2018 · 2 comments
Closed

Automatic plugin install #844

Akryum opened this issue Feb 16, 2018 · 2 comments

Comments

@Akryum
Copy link
Member

Akryum commented Feb 16, 2018

When running the vue invoke <name> command, vue-cli could automatically install the @vue/cli-plugin-<name> or vue-cli-plugin-<name>, using the user prefered tool (npm or yarn).
If <name> contains @vue/cli-plugin or vue-cli-plugin, use npm install <name> directly.
Then run the real invoke.

Example:

vue create my-app
cd my-app
vue invoke apollo
@yyx990803
Copy link
Member

yyx990803 commented Mar 1, 2018

I kinda hope it's possible to explicitly separate the install and invocation steps.

Maybe instead we can have a different command vue add which combines both.

@zephraph
Copy link

zephraph commented Mar 2, 2018

Yeah. I was noticing tonight when I tried to add the just plugin to a project just by installing it it didn't automatically make the config updates. I just created an example with vue create with the plugin that I wanted and manually moved over the config.

Having a command like vue add to both install and configure the plugin would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants