-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add nuxt add/rm commands #31
Comments
If accepted I'll dive into an implementation. |
I like this idea 👍 |
Nice idea. However some notes:
|
I believe so, yes. We may also have
The question here is aesthetics, or rather, the lack of it when we force users to repeat themselves. That is, (Edit: moved the proposed table to the RFC description.)
Yeah, I've been tinkering with some approaches for this -- agree it must be handled carefully. Perhaps this could be coupled with the nuxt config refactoring.
Not sure what you mean there: we have two packages? :) cc @atinux |
For modularity and consistency, we can also change it to
This list may look fancy at the beginning but over time maintenance will be harder. Also when a new official module comes out, we have to instruct users wait/upgrade their nuxt to support this module! Or provide two different sets of instructions. I think most users just copy-paste the install command so some extra characters is not a problem but it makes command to be more clear and maintenance better for a long time vision
Yep. However not sure. But we planned to allow installing |
I think that makes lots of sense about having a DB of all modules meta-data. That could be useful for making a store for searching through modules, readme reading, and simple install command (like visual-studio code) but still thinking passing explicit package name into CLI command would be a simpler and better idea. One side note: Adding modules may involve more than modification of |
Hi @galvez :) I'm interested to push this feature. Can i help you on this topic ? |
So here's a DX idea:
nuxt add router
: install@nuxtjs/router
and updatemodules
section in nuxt.config.jsnuxt add http
: install@nuxt/http
and updatemodules
section in nuxt.config.jsWe could use a hash of module slugs for official ones (eliminating the need to prefix with nuxt or nuxtjs) and then defer to npm lookup.
The text was updated successfully, but these errors were encountered: