Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(kit): add registerComponentDirectory helper #1379

Merged
merged 7 commits into from
Oct 22, 2021
Merged

Conversation

danielroe
Copy link
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This adds a utility to register a components directory. If Nuxt 2, it will also enable @nuxt/components (though only for the registered directory, and any directories added by other modules, rather than globally).

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added enhancement New feature or request kit labels Oct 22, 2021
@danielroe danielroe requested a review from pi0 October 22, 2021 21:07
@danielroe danielroe self-assigned this Oct 22, 2021
@netlify
Copy link

netlify bot commented Oct 22, 2021

✔️ Deploy Preview for nuxt3-docs canceled.

🔨 Explore the source changes: d91af66

🔍 Inspect the deploy log: https://app.netlify.com/sites/nuxt3-docs/deploys/61733af01a8d270007a60599

@pi0 pi0 merged commit 8f119ab into main Oct 22, 2021
@pi0 pi0 deleted the feat/register-component-dir branch October 22, 2021 22:28
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x enhancement New feature or request kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

registerComponent(): registration of components by module authors
2 participants