@nx/devkit
The Nx Devkit is the underlying technology used to customize Nx to support different technologies and custom use-cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more.
As with most things in Nx, the core of Nx Devkit is very simple. It only uses language primitives and immutable objects (the tree being the only exception).
Table of contents
Enumerations
Classes
Interfaces
- DefaultTasksRunnerOptions
- ExecutorContext
- ExecutorsJson
- FileChange
- FileData
- GeneratorsJson
- Hash
- HasherContext
- ImplicitJsonSubsetDependency
- JsonParseOptions
- JsonSerializeOptions
- MigrationsJson
- ModuleFederationConfig
- NxAffectedConfig
- NxJsonConfiguration
- NxPlugin
- ProjectConfiguration
- ProjectFileMap
- ProjectGraph
- ProjectGraphDependency
- ProjectGraphExternalNode
- ProjectGraphProcessorContext
- ProjectGraphProjectNode
- ProjectsConfigurations
- RemoteCache
- SharedLibraryConfig
- StringDeletion
- StringInsertion
- Target
- TargetConfiguration
- TargetDependencyConfig
- Task
- TaskGraph
- TaskHasher
- Tree
- Workspace
Type Aliases
- AdditionalSharedConfig
- CustomHasher
- Executor
- Generator
- GeneratorCallback
- Hasher
- ImplicitDependencyEntry
- ModuleFederationLibrary
- PackageManager
- ProjectGraphNode
- ProjectTargetConfigurator
- ProjectType
- Remotes
- SharedFunction
- SharedWorkspaceLibraryConfig
- StringChange
- TaskGraphExecutor
- WorkspaceConfiguration
- WorkspaceJsonConfiguration
- WorkspaceLibrary
- WorkspaceLibrarySecondaryEntryPoint
Variables
Functions
- addDependenciesToPackageJson
- addProjectConfiguration
- applyAdditionalShared
- applyChangesToString
- applySharedFunction
- convertNxExecutor
- convertNxGenerator
- createProjectFileMapUsingProjectGraph
- createProjectGraphAsync
- defaultTasksRunner
- detectPackageManager
- ensurePackage
- extractLayoutDirectory
- formatFiles
- generateFiles
- getDependentPackagesForProject
- getNpmPackageSharedConfig
- getOutputsForTargetAndConfiguration
- getPackageManagerCommand
- getPackageManagerVersion
- getProjects
- getWorkspaceLayout
- getWorkspacePath
- hashArray
- installPackagesTask
- isStandaloneProject
- joinPathFragments
- mapRemotes
- mapRemotesForSSR
- moveFilesToNewDirectory
- names
- normalizePath
- offsetFromRoot
- parseJson
- parseTargetString
- readAllWorkspaceConfiguration
- readCachedProjectGraph
- readJson
- readJsonFile
- readNxJson
- readProjectConfiguration
- readRootPackageJson
- readTargetOptions
- readWorkspaceConfiguration
- removeDependenciesFromPackageJson
- removeProjectConfiguration
- reverse
- runExecutor
- runTasksInSerial
- serializeJson
- sharePackages
- shareWorkspaceLibraries
- stripIndents
- stripJsonComments
- targetToTargetString
- toJS
- updateJson
- updateNxJson
- updateProjectConfiguration
- updateTsConfigsToJs
- updateWorkspaceConfiguration
- visitNotIgnoredFiles
- workspaceLayout
- writeJson
- writeJsonFile