Setup a module programmatically from the CLI

arnaudlewis
3
arnaudlewis
commented a month ago

What problem does this feature solve?

I'm currently building a tool that will bootstrap a nuxt project from our CLI.
Our CLI will run create-nuxt-app to bootstrap the app but i'd like to setup a module right away in the newly generated project without having to manually edit the nuxt.config.js file.

What does the proposed changes look like?

It's an ongoing discussion with @Atinux right now, maybe something on create-nuxt-app that would offer a way to do that.
Something like:
npx create-nuxt-app <my_project> --useModule [ "myModuleName", { myConf: '' }]
or
npx create-nuxt-app <my_project> --useModule ./myModuleConfig.js

Or maybe we could consider having some kind of way to setup the module interactively.
It would be done on the module level and executed by the CLI.

idea
1
Informations
Feature Request โ€ข Open
#c9957 - Created a month ago