@nrwl/next
When using Next.js in Nx, you get the out-of-the-box support for TypeScript, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.
The Next.js plugin contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:
-
Scaffolding for creating, building, serving, linting, and testing Next.js applications.
-
Integration with building, serving, and exporting a Next.js application.
-
Integration with React libraries within the workspace.
Here is a list of all the executors and generators available from this package.
Executors
Build a Next.js application.
Serve a Next.js application.
Export a Next.js application. The exported application is located at
dist/$outputPath/exported
.
Generators
Initialize the
@nrwl/next
plugin.Create an application.
Create a page.
Create a component.
Create a library.