Skip to content

addProjectConfiguration

addProjectConfiguration(tree, projectName, projectConfiguration): void

Adds project configuration to the Nx workspace.

NameTypeDescription
treeTreethe file system tree
projectNamestringunique name. Often directories are part of the name (e.g., mydir-mylib)
projectConfigurationProjectConfigurationproject configuration

void

addProjectConfiguration(tree, projectName, projectConfiguration, standalone): void

Adds project configuration to the Nx workspace.

NameTypeDescription
treeTreethe file system tree
projectNamestringunique name. Often directories are part of the name (e.g., mydir-mylib)
projectConfigurationProjectConfigurationproject configuration
standalonebooleanwhether the project is configured in workspace.json or not

void

Deprecated

Nx only supports standalone projects. The standalone parameter is ignored and will be removed in a future version. Use the 3-argument overload instead.