vuetifyjs / vue-cli-plugins

🔌 A collection of Vuetify plugins for Vue CLI
https://vuetifyjs.com/en/getting-started/quick-start#vue-cli-3
Other
427 stars 113 forks source link

"vue add vuetify" is overriding existing files #249

Closed IgorIlgiyaev closed 3 years ago

IgorIlgiyaev commented 3 years ago

Hey.

I have installed yesterday Vuetify on an existing project to make the app prettier but have encounter some issues after (Default)install. 1: After install files have been overwritten and deleting the existing files (image attached). 1a: files like: app.vue|package.json and etc. This is only one example but had a lot of changes in the package.json on the default install (not Advanced).

Screen Shot 2021-03-07 at 11 12 17
ElijahKotyluk commented 3 years ago

Would you be able to provide a reproduction link to the repository?

IgorIlgiyaev commented 3 years ago

Will send you here in a few hours so you can check it in the commits area.

ElijahKotyluk commented 3 years ago

Perfect, I'll give it a look and figure out what's going on. Thank you.

IgorIlgiyaev commented 3 years ago

Hey this is the Repo - https://github.com/IgorIlgiyaev/taskmanager

check the last and pre last commits and you will see that the config is overwritten and not added code.

ElijahKotyluk commented 3 years ago

I got a chance to go through the repro you provided, so as far as the App.vue goes and main.js, those files do get replaced due to the current CLI API not provided a way to easily extend the root vue instance for Vue 3. I can write up a more elegant way to just inject the code when/where necessary to solve that.

As far as the config file, it looks like in this commit : https://github.com/IgorIlgiyaev/taskmanager/commit/2e1940d2baf177c9784b2e1181cf0440d0e470c2 it does get updated and the transpile dependencies key is provided when you add Vuetify. But in this commit gets removed with the code that was in there prior: https://github.com/IgorIlgiyaev/taskmanager/commit/5f78aed000e84c4184fb96d94ff415ab43411a4f

IgorIlgiyaev commented 3 years ago

Exactly :-) Hope that will help you to solve it as I am pretty new to Vue and Vuetify and learning as I am a WP site builder :-)

ElijahKotyluk commented 3 years ago

To get around having your files replaced you can select the configure option and enter no at the following prompt: Use a pre-made template? (will replace App.vue and HelloWorld.vue)