nx/docs/generated/devkit/getWorkspaceLayout.md

1.2 KiB

Function: getWorkspaceLayout

getWorkspaceLayout(tree): Object

Returns workspace defaults. It includes defaults folders for apps and libs, and the default scope.

Example:

{ appsDir: 'apps', libsDir: 'libs', npmScope: 'myorg' }

Parameters

Name Type Description
tree Tree file system tree

Returns

Object

Name Type Description
appsDir string -
libsDir string -
npmScope string Deprecated This will be removed in Nx 17. Use getNpmScope instead.
standaloneAsDefault boolean -