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

Automated tooling or way to auto adapt to this structure #3

Open
apgapg opened this issue Feb 7, 2022 · 4 comments
Open

Automated tooling or way to auto adapt to this structure #3

apgapg opened this issue Feb 7, 2022 · 4 comments

Comments

@apgapg
Copy link

apgapg commented Feb 7, 2022

Hi @areindl ,

Thank you for this sample.
I was wondering if there's a way where we can extend nuxt core so as to auto read our new dir structure?

Currently we need to define our strategy in a module's index.js, which seems a little overhead everytime we define a new module.

@areindl
Copy link
Owner

areindl commented Mar 11, 2022

Hi @apgapg!

Yes. Makes sense. I will think about it.

Do you have an idea about doing that?

@apgapg
Copy link
Author

apgapg commented Mar 13, 2022

Some parts we can do automatically like registering components by writing a script.
Little skeptical about auto route generation part (although manually can be done).
Similarly for store we can have that but all this tooling script will be external and nothing i can think of directly adding them by extending nuxt core

@rodolfo-santos
Copy link

Maybe some webpack related configuration can help 🤔

@areindl
Copy link
Owner

areindl commented Jan 4, 2024

@apgapg @rodolfo-santos with Nuxt 3's new module loading, the need to register the module is not loading existing.

Check out my last commit. The module is loading loading automatically.

What's left is the auto-registry of routes. I have mixed feelings about it. Do you think it is necessary?

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

3 participants