nx/docs/generated/devkit/NxPluginV2.md
Juri Strumpflohner b51676a89a
docs(core): restructure guides into technologies sections (#31288)
Updates the docs structure, navigation etc to be easier + better suited
for showing Nx technology support beyond just TS.

**Notes:**

- API (`/nx-api`) tab is removed from the navigation (i.e. menu bar),
but pages still remain for now until we update references in `*.md`
files.
- Redirects are set up `/nx-api` to go to their respect new location
e.g. `/technologies` or `/reference/core-api`
- Old URLs still exist in the sitemap for now, but majority of them will
be redirected -- a follow-up PR can remove them.

**Preview:**
https://nx-dev-git-nx-dev-polyglot-docs-restructure-nrwl.vercel.app/docs

---------

Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2025-05-29 14:55:34 -04:00

3.9 KiB

Type alias: NxPluginV2<TOptions>

Ƭ NxPluginV2<TOptions>: Object

A plugin which enhances the behavior of Nx

Type parameters

Name Type
TOptions unknown

Type declaration

Name Type Description
createDependencies? CreateDependencies<TOptions> Provides a function to analyze files to create dependencies for the ProjectGraph
createMetadata? CreateMetadata<TOptions> Provides a function to create metadata for the ProjectGraph
createNodes? CreateNodes<TOptions> Provides a file pattern and function that retrieves configuration info from those files. e.g. { '**/*.csproj': buildProjectsFromCsProjFile } **Deprecated** Use createNodesV2 instead. In Nx 21 support for calling createNodes with a single file for the first argument will be removed.
createNodesV2? CreateNodesV2<TOptions> Provides a file pattern and function that retrieves configuration info from those files. e.g. { '*/.csproj': buildProjectsFromCsProjFiles } In Nx 21 createNodes will be replaced with this property. In Nx 22, this property will be removed.
name string -
postTasksExecution? PostTasksExecution<TOptions> Provides a function to run after the Nx runs tasks
preTasksExecution? PreTasksExecution<TOptions> Provides a function to run before the Nx runs tasks