-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(nuxi): manage modules via cli #4001
Conversation
β Deploy Preview for nuxt3-docs failed.
|
Thanks for the PR @Intevel. Some notes:
|
Thank you for the PR :) Agree to start with |
@pi0 https://github.com/Intevel/qpind Maybe this instead of |
Nice work on qpind @Intevel π However we already have antfu/install-pkg and other solutions, I would still wait for new unjs package designed for nuxi and nuxt universal integration. |
247e18b
to
c98e5c7
Compare
Folks, can we start working on this feature again? I think this would be an awesome DX improvement to the Nuxi tool. I can help with implementing this as well :) |
Surely, so the package installing can we do with install-pkg but where do we get the data from to check if this is a nuxt module or not? |
Can't we just parse the user input against a regexp and if it includes the |
@pi0 What do you think? Is a regex in this case the best way? |
@Baroshem pushed some new stuff, what are you're thoughts about it? (btw i know its not an regex, wrong commit message) |
Yes, this is what I meant in my proposition in the Discord channel. Nice work! Now, let's wait for Pio, Daniel, or Sebastien to give their opinion and recommend next steps :) |
@Intevel Did you close this intentionally? |
Supporting module management from CLI is definitely one thing we always dreamt of having but has been tricky so far because we lacked the CLI infra and AST modification tool to make it happen. Would be happy to have you on board in next weeks on this feature @Intevel and sorry was delayed in the roadmap. |
All right, I'm happy to be there. We can talk about it again as soon as it goes to the feature. I find the module management via the CLI quite good, maybe I open this PR again with a new PoC. |
I can help with this as well. Just let me know :) |
Nice to hear, thank you. |
π Linked issue
nuxt/rfcs#31
https://github.com/nuxt/framework/discussions/569
#3915
β Type of change
π Description
With the new commands you can now add different Nuxt 3 modules (& bridge) to the project via Nuxi. The given module name is matched with a list that is currently still done manually (maybe in the future an API?), the name is matched to prevent that not Nuxt modules are installed. The module is added to the
.nuxtrc
file which is merged with the normal nuxt config.π Checklist