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: auto load directives #38

Merged
merged 1 commit into from
Jan 13, 2019
Merged

feat: auto load directives #38

merged 1 commit into from
Jan 13, 2019

Conversation

jacekkarczmarczyk
Copy link
Member

@jacekkarczmarczyk jacekkarczmarczyk commented Jan 13, 2019

Automatcally loads directive if detected in the template

<template>
  <v-app>
    <v-toolbar v-scroll some-attr v-invalid />
  </v-app>
</template>

<script>
export default {
  name: 'App',
};
</script>

Output:

/* vuetify-loader */
import installComponents from "!C:/cygwin64/home/Jacek/jacekkarczmarczyk/loader-test/node_modules/vuetify-loader/lib/runtime/installComponents.js"
import { VApp } from 'vuetify/lib'
import { VToolbar } from 'vuetify/lib'
installComponents(component, {VApp,VToolbar})


/* vuetify-loader */
import installDirectives from "!C:/cygwin64/home/Jacek/jacekkarczmarczyk/loader-test/node_modules/vuetify-loader/lib/runtime/installDirectives.js"
import { Scroll } from 'vuetify/lib/directives'
installDirectives(component, {Scroll})

TODO

  • readme.md
  • refactor names (match and attrsMatch, and some other stuff, might be breaking, probably not worth atm)

@KaelWD KaelWD merged commit a92e559 into master Jan 13, 2019
@KaelWD KaelWD deleted the feat/auto-load-directives branch January 13, 2019 03:46
@cnwangjie
Copy link

When the version containing this PR could be released?

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.

None yet

3 participants