Skip to content

@ui5/project/graph/providers/DependencyTree

@ui5/project/graph/providers/DependencyTree

Helper module to create a @ui5/project/graph/ProjectGraph from a dependency tree as returned by translators.

Constructor

new @ui5/project/graph/providers/DependencyTree(options)

Source: project/lib/graph/providers/DependencyTree.js, line 24

Parameters:
NameTypeDescription
optionsobject
Properties:
NameTypeAttributesDescription
dependencyTree@ui5/project/graph/providers/DependencyTree~TreeNodeDependency tree as returned by a translator
rootConfigurationobjectoptionalConfiguration object to use for the root module instead of reading from a configuration file
rootConfigPathstringoptionalConfiguration file to use for the root module instead the default ui5.yaml

Type Definitions

TreeNode

Description: Tree node

Source: project/lib/graph/providers/DependencyTree.js, line 1

Properties:
NameTypeAttributesDescription
node.idstringUnique ID for the project
node.versionstringVersion of the project
node.pathstringFile System path to access the projects resources
node.configurationobject \| Array<object>optionalConfiguration object or array of objects to use instead of reading from a configuration file
node.configPathstringoptionalConfiguration file to use instead the default ui5.yaml
dependenciesArray<@ui5/project/graph/providers/DependencyTree~TreeNode>

Tree node

Type:
  • object