cli icon indicating copy to clipboard operation
cli copied to clipboard

Support for adding multiple module at once

Open arashsheyda opened this issue 2 years ago • 1 comments

Use case

It would be nice to be able to add multiple modules in one command, e.g. nuxi-ng module add @vueuse/nuxt @unocss/nuxt

and in some cases, we need to install multiple packages and add one of them into modules, e.g. vuefire

I'd love to help if needed, thanks

arashsheyda avatar Jul 06 '23 12:07 arashsheyda

Any updates? I wanted to contibute but there was already a contribution to add this. I already added this in my own nuxi inspired CLI and it works nicely. Because multiple modules adding is not yet implemented, I had to add all the modules to add in an array, and then calling pnpx nuxi module add <module> inside the loop.

It will be nice just joining the array as a string, and passing the string of modules to the command and adding them all in a same process.

angelhdzmultimedia avatar Jan 25 '24 18:01 angelhdzmultimedia