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

Components Discovery #11026

Closed
4 of 5 tasks
pi0 opened this issue Jun 18, 2021 · 5 comments
Closed
4 of 5 tasks

Components Discovery #11026

pi0 opened this issue Jun 18, 2021 · 5 comments

Comments

@pi0
Copy link
Member

pi0 commented Jun 18, 2021

  • Initial working version from @nuxt/components
  • .dts generation
  • Decide about prefix
  • Implement loader strategy (vite and webpack5)
  • Integrate with devtools

Discussion: Should we even have it with nuxt3?

Related tweet (https://twitter.com/youyuxi/status/1404795327144763398). I think that makes sense in many ways that auto-import is not that needed with new <script setup> syntax and better VSCode integrations. But there are still some cases most notable, CMS/Content integrations that implicitly need global components. And also this gives possibility with nuxt devtools component playground

Discussion: Where to implement?

In framework/packages/components as a fork of nuxt/components and add by default in nuxt3

Discussion: Prefixing

Should we use (by default) one level prefix components/utils/bar/baz => BarBaz or full prefix => UtilsBarBaz or not at all (Baz) by default (suggested by @Atinux). Second is much more future proof but less convenient for structuring components dir based on purpose (and atomic designs)

@antfu
Copy link
Member

antfu commented Jun 18, 2021

@Atinux
Copy link
Member

Atinux commented Sep 14, 2021

What is the state of this issue regarding the loaders @antfu ?

@antfu
Copy link
Member

antfu commented Sep 14, 2021

Do you mean the resolvers? Will work on Nuxt 2 @nuxt/components first (this week) and port to Nuxt 3 later

@pi0
Copy link
Member Author

pi0 commented Sep 14, 2021

Resolver support: nuxt/components#231 / Loader is already implemented

@pi0
Copy link
Member Author

pi0 commented Oct 12, 2021

Leaving devtools integration to the future.

@pi0 pi0 closed this as completed Oct 12, 2021
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
@danielroe danielroe added the 3.x label Jan 19, 2023
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

4 participants