-
-
Notifications
You must be signed in to change notification settings - Fork 44
feat: multiple dirs, prefix, watch & transpile support #2
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
Conversation
|
EDIT : Found the issue, it's cause I'm using So Gonna just add checks to fix it :) |
pi0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicee works!
|
@pi0 Thanks for the detailed review, will do updates accordingly 😊 |
|
Awesome work @kevinmarrec One question, what if I want:
Should this work? export default {
components: [
{ path: '@/components/bases/', prefix: 'Base' },
{ path: '@/components/icons/', prefix: 'Icons' },
'@/components')
]
}While avoiding to register |
|
@atinux Nice challenge :p I think we can easily satisfy that by:
|
|
@atinux Indeed nice challenge 😁 Yep I can sort directly after paths are resolved with Nuxt And indeed then make the scanning function skip files that already have been handled by previous loops on other child paths :) |


Multiple
dirssupport which each having :path-> Where to look for componentspattern(default:'**/*.{builder.supportedExtensions}')ignore(default: patterns ignored by default by nuxt (.nuxtignore, tests, etc..))prefix(default:'') -> Add prefix to component nameswatchoption (default:true) -> Watch directory for changestranspileoption (default:false) -> Transpile directory (build.transpile)Dynamic imports (lazy loading) support (with
lazyprefix)Top level options (
componentskey in config)TODO