Skip to content

@ui5/builder/tasks/jsdoc/generateJsdoc ​

Methods ​

(static) default(options) → {module:@ui5/builder/tasks/runTask~TaskDescriptor}
​

Description: Task to execute a JSDoc build for UI5 projects

A factory returning the task descriptor. The factory assembles the glob patterns from options.jsdocExcludes and captures options.namespace and options.version, which the project definition supplies in place of the project-derived values that used to be wrapped around this task. The task body then uses these closure values; the per-run options.projectName is read from the task-run options.

The factory stays pure and cheap: the heavy jsdocGenerator processor is only reached inside the task body, so calling the factory for the build signature loads no processor.

Source: builder/lib/tasks/jsdoc/generateJsdoc.js, line 27

Parameters: ​
NameTypeDescription
optionsobjectOptions
Properties:
NameTypeAttributesDefaultDescription
namespacestringNamespace to build (e.g. some/project/name)
versionstringProject version
jsdocExcludesArray<string>optional[]List of exclude patterns, relative to /resources/
Returns: ​

The task descriptor

Type: module:@ui5/builder/tasks/runTask~TaskDescriptor

Type Definitions ​

GenerateJsdocOptions
​

Source: builder/lib/tasks/jsdoc/generateJsdoc.js, line 17

Properties: ​
NameTypeDescription
patternstring \| Array<string>Pattern to locate the files to be processed
projectNamestringProject name
namespacestringNamespace to build (e.g. some/project/name)
versionstringProject version
Type: ​
  • object