UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

32 lines (31 loc) 1.31 kB
import { ProjectGraphProcessor } from '../config/project-graph'; import { TargetConfiguration } from '../config/workspace-json-project-json'; import { NxPluginV2 } from '../project-graph/plugins'; /** * @deprecated Add targets to the projects in a {@link CreateNodes} function instead. This will be removed in Nx 20 */ export type ProjectTargetConfigurator = (file: string) => Record<string, TargetConfiguration>; /** * @deprecated Use {@link NxPluginV2} instead. This will be removed in Nx 20 */ export type NxPluginV1 = { name: string; /** * @deprecated Use {@link CreateNodes} and {@link CreateDependencies} instead. This will be removed in Nx 20 */ processProjectGraph?: ProjectGraphProcessor; /** * @deprecated Add targets to the projects inside of {@link CreateNodes} instead. This will be removed in Nx 20 */ registerProjectTargets?: ProjectTargetConfigurator; /** * A glob pattern to search for non-standard project files. * @example: ["*.csproj", "pom.xml"] * @deprecated Use {@link CreateNodes} instead. This will be removed in Nx 20 */ projectFilePatterns?: string[]; }; /** * @todo(@agentender) v20: Remove this fn when we remove readWorkspaceConfig */ export declare function getDefaultPluginsSync(root: string): NxPluginV2[];