UNPKG

@nx-dotnet/core

Version:

- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup). - .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https

20 lines (19 loc) 1.67 kB
import { CreateNodesFunction, CreateNodesV2, NxJsonConfiguration, ProjectConfiguration, TargetConfiguration } from '@nx/devkit'; import { NxDotnetConfigV2, ResolvedConfig } from '@nx-dotnet/utils'; import type { PackageJson } from 'nx/src/utils/package-json'; export declare const projectFilePatterns: string[]; export declare function parseName(projectFile: string, nxJson: NxJsonConfiguration | null, rootPackageJson: PackageJson): { name: string; scheme: string; }; export declare function createProjectDefinition(projectFile: string, projectFileContents: string, nxDotnetConfig: ResolvedConfig, nxJson: NxJsonConfiguration | null, rootPackageJson: PackageJson): (ProjectConfiguration & Required<Pick<ProjectConfiguration, 'root'>>) | null; export declare const registerProjectTargets: (projectFile: string, opts?: ResolvedConfig) => { [targetName: string]: TargetConfiguration<any>; }; type CreateNodesFunctionV16 = (file: string, ctx: Parameters<CreateNodesFunction>[2], _: undefined) => ReturnType<CreateNodesFunction>; type CreateNodesFunctionCompat<T> = (p0: Parameters<CreateNodesFunction<T>>[0] | Parameters<CreateNodesFunctionV16>[0], p1: Parameters<CreateNodesFunction<T>>[1] | Parameters<CreateNodesFunctionV16>[1], p2: Parameters<CreateNodesFunction<T>>[2] | Parameters<CreateNodesFunctionV16>[2]) => ReturnType<CreateNodesFunction<T>>; type CreateNodesCompat<T> = [string, CreateNodesFunctionCompat<T>]; export declare function isFileIgnored(file: string, options: NxDotnetConfigV2): boolean; export declare const createNodesV2: CreateNodesV2<NxDotnetConfigV2>; export declare const createNodes: CreateNodesCompat<NxDotnetConfigV2>; export {};