Skip to content

Add nuxt add/rm commandsΒ #31

Closed
nuxt/cli
#197
@galvez

Description

@galvez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions