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.
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.