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

feat: remove vuetify-helper-json and use runtime pkg info #1365

Merged
merged 2 commits into from
Aug 7, 2019

Conversation

nekosaur
Copy link
Contributor

@nekosaur nekosaur commented Jul 24, 2019

switched to using vetur option inside package.json for auto-completion instead of separate package.

also added support through @nuxtjs/vuetify package

@nekosaur nekosaur force-pushed the feat/vuetify-completion branch from 58dba21 to 05b0fe7 Compare July 24, 2019 10:51
@nekosaur nekosaur force-pushed the feat/vuetify-completion branch from 05b0fe7 to 4056e3d Compare August 1, 2019 18:21
settings['vuetify'] = true;
}
if (dependencies['@nuxtjs/vuetify'] || devDependencies['@nuxtjs/vuetify']) {
dependencies['vuetify'] = true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be :

Suggested change
dependencies['vuetify'] = true;
settings['vuetify'] = true;

?

Copy link
Contributor Author

@nekosaur nekosaur Aug 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. I am not actually 100% sure what setting the settings object accomplishes 😕 . And since settings[dep] = true is executed later anyway, it shouldn't matter.

The actual loading of the autocomplete data specified in vetur package.json option happens here

for (const dep in dependencies) {
and that depends on what is inside the dependencies object. Since vuetify is not a direct dependency when using nuxtjs module, we fake it by inserting vuetify.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, then all good I believe

@octref
Copy link
Member

octref commented Aug 7, 2019

LGTM, thanks!

@octref octref merged commit 7740680 into vuejs:master Aug 7, 2019
octref added a commit that referenced this pull request Aug 7, 2019
@vue-bot
Copy link

vue-bot commented Aug 7, 2019

Thanks again! 💚

yoyo930021 pushed a commit to yoyo930021/vuter that referenced this pull request Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants