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

Auto-register Vue components #46

Closed
jakedohm opened this issue Oct 10, 2023 · 0 comments
Closed

Auto-register Vue components #46

jakedohm opened this issue Oct 10, 2023 · 0 comments
Assignees

Comments

@jakedohm
Copy link
Contributor

jakedohm commented Oct 10, 2023

TLDR

Components in src/js/components should be auto-registered into Vue, so you don't have to manually import each component.

Spec

  • Components in src/js/components and all subfolders will be automatically registered
  • Component name will match the filename. Button.vue becomes <Button>
    • Note: this will require the developer to make sure they don't name two components exactly the same, which I'm fine with.
  • Lazy loading: If some components aren't required on page-load, we should be able to lazy load them. To lazy load a component, you name the file ComponentName.lazy.vue

This also will take care of #25.

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

No branches or pull requests

2 participants