UNPKG

nx

Version:

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

140 lines (139 loc) 4.61 kB
/** * Note to developers: STOP! These exports end up as the public API of @nx/devkit. * Try hard to not add to this API to reduce the surface area we need to maintain. */ /** * @category Tree */ export type { FileChange, Tree } from './generators/tree'; /** * @category Workspace */ export type { ProjectConfiguration, ProjectsConfigurations, ProjectType, TargetConfiguration, TargetDependencyConfig, Workspace, WorkspaceJsonConfiguration, } from './config/workspace-json-project-json'; /** * @category Workspace */ export type { AsyncIteratorExecutor, CustomHasher, Executor, ExecutorContext, ExecutorsJson, Generator, GeneratorCallback, GeneratorsJson, HasherContext, Migration, MigrationReturnObject, MigrationsJson, PromiseExecutor, TaskGraphExecutor, } from './config/misc-interfaces'; export { workspaceLayout } from './config/configuration'; export type * from './project-graph/plugins/public-api'; export { AggregateCreateNodesError, StaleProjectGraphCacheError, } from './project-graph/error-types'; export { createNodesFromFiles } from './project-graph/plugins'; /** * @category Tasks */ export type { Task, TaskGraph } from './config/task-graph'; /** * @category Tasks */ export type { TaskResult, TaskResults } from './tasks-runner/life-cycle'; /** * @category Workspace */ export type { ExpandedPluginConfiguration, ImplicitDependencyEntry, ImplicitJsonSubsetDependency, NxAffectedConfig, NxJsonConfiguration, PluginConfiguration, TargetDefaults, } from './config/nx-json'; /** * @category Logger */ export { logger } from './utils/logger'; /** * @category Utils */ export { output } from './utils/output'; /** * @category Package Manager */ export type { PackageManager } from './utils/package-manager'; /** * @category Package Manager */ export { detectPackageManager, getPackageManagerCommand, getPackageManagerVersion, isWorkspacesEnabled, } from './utils/package-manager'; /** * @category Commands */ export type { Target } from './command-line/run/run'; /** * @category Commands */ export { runExecutor } from './command-line/run/run'; /** * @category Generators */ export { addProjectConfiguration, getProjects, readProjectConfiguration, removeProjectConfiguration, updateProjectConfiguration, } from './generators/utils/project-configuration'; /** * @category Generators */ export { glob, globAsync } from './generators/utils/glob'; /** * @category Generators */ export { readNxJson, updateNxJson, } from './generators/utils/project-configuration'; /** * @category Project Graph */ export type { FileData, FileMap, ProjectFileMap, ProjectGraph, ProjectGraphDependency, ProjectGraphExternalNode, ProjectGraphProjectNode, } from './config/project-graph'; export type { GraphJson } from './command-line/graph/graph'; /** * @category Project Graph */ export { DependencyType } from './config/project-graph'; /** * @category Project Graph */ export { DynamicDependency, ImplicitDependency, RawProjectGraphDependency, StaticDependency, validateDependency, } from './project-graph/project-graph-builder'; /** * @category Generators */ export { readJson, updateJson, writeJson } from './generators/utils/json'; /** * @category Utils */ export { parseJson, serializeJson, stripJsonComments } from './utils/json'; /** * @category Utils */ export type { JsonParseOptions, JsonSerializeOptions } from './utils/json'; /** * @category Utils */ export { readJsonFile, writeJsonFile } from './utils/fileutils'; /** * @category Utils */ export { stripIndents } from './utils/strip-indents'; /** * @category Utils */ export { joinPathFragments, normalizePath } from './utils/path'; /** * @category Utils */ export { workspaceRoot } from './utils/workspace-root'; /** * @category Utils */ export { reverse } from './project-graph/operators'; /** * @category Utils */ export { createProjectGraphAsync, readCachedProjectGraph, readProjectsConfigurationFromProjectGraph, } from './project-graph/project-graph'; /** * @category Utils */ export { getOutputsForTargetAndConfiguration } from './tasks-runner/utils'; /** * @category Utils */ export { defaultTasksRunner, DefaultTasksRunnerOptions, RemoteCache, } from './tasks-runner/default-tasks-runner'; /** * @category Utils */ export { hashArray } from './hasher/file-hasher'; export { Hash, Hasher, TaskHasher } from './hasher/task-hasher'; /** * @category Utils */ export { cacheDir } from './utils/cache-directory'; /** * @category Utils */ export { createProjectFileMapUsingProjectGraph } from './project-graph/file-map-utils'; export { isDaemonEnabled } from './daemon/client/client';