Skip to content

The @nx/vue plugin adds first-class Vue support to an Nx workspace, so you can scaffold, build, and test apps and libraries in a Vue monorepo.

The @nx/vue plugin supports the following package versions.

PackageSupported Versions
vue^3.0.0

Nx generators install the latest supported versions automatically when scaffolding new projects.

To create a new workspace with Vue, run npx create-nx-workspace@latest --preset=vue.

In any Nx workspace, you can install @nx/vue by running the following command:

Terminal window
nx add @nx/vue

This will install the correct version of @nx/vue.

To generate a Vue application, run the following:

Terminal window
nx g @nx/vue:app apps/my-app

To generate a Vue library, run the following:

Terminal window
nx g @nx/vue:lib libs/my-lib

In CI, Nx runs nx affected to rebuild and retest only the projects a change touches, and caches results to skip repeated work.

For a complete pipeline, see Set up CI.