UNPKG

nx

Version:

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

21 lines (20 loc) 1.31 kB
import type { ProjectGraph } from '../../config/project-graph'; import { type PluginConfiguration } from '../../config/nx-json'; import type { RawProjectGraphDependency } from '../project-graph-builder'; import type { CreateDependenciesContext, CreateMetadataContext, CreateNodesContextV2, CreateNodesResult, NxPluginV2, PostTasksExecutionContext, PreTasksExecutionContext, ProjectsMetadata } from './public-api'; export declare class LoadedNxPlugin { index?: number; readonly name: string; readonly createNodes?: [ filePattern: string, fn: (matchedFiles: string[], context: CreateNodesContextV2) => Promise<Array<readonly [plugin: string, file: string, result: CreateNodesResult]>> ]; readonly createDependencies?: (context: CreateDependenciesContext) => Promise<RawProjectGraphDependency[]>; readonly createMetadata?: (graph: ProjectGraph, context: CreateMetadataContext) => Promise<ProjectsMetadata>; readonly preTasksExecution?: (context: PreTasksExecutionContext) => Promise<NodeJS.ProcessEnv>; readonly postTasksExecution?: (context: PostTasksExecutionContext) => Promise<void>; readonly options?: unknown; readonly include?: string[]; readonly exclude?: string[]; constructor(plugin: NxPluginV2, pluginDefinition: PluginConfiguration); }