So here's a DX idea:
nuxt add router: install @nuxtjs/router and update modules section in nuxt.config.js
nuxt add http: install @nuxt/http and update modules section in nuxt.config.js
We 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.
| Reserved keyword |
Repository |
| nuxt add http |
nuxt/http |
| nuxt add axios |
nuxt-community/axios-module |
| nuxt add pwa |
nuxt-community/pwa-module |
| nuxt add auth |
nuxt-community/auth-module |
| nuxt add router |
nuxt-community/router-module |
| nuxt add style-resources |
nuxt-community/style-resources-module |
| nuxt add i18n |
nuxt-community/nuxt-i18n |
| nuxt add dotenv |
nuxt-community/dotenv-module |
| nuxt add sentry |
nuxt-community/sentry-module |
| nuxt add universal-storage |
nuxt-community/universal-storage |
| nuxt add sitemap |
nuxt-community/sitemap-module |
| nuxt add proxy |
nuxt-community/proxy-module |
So here's a DX idea:
nuxt add router: install@nuxtjs/routerand updatemodulessection in nuxt.config.jsnuxt add http: install@nuxt/httpand updatemodulessection 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.