publicGenerateOptions
Hierarchy
- Omit<ResolveOptions, path | index>
- GenerateOptions
Index
Properties
optionalbail
components
Glob patterns of component names.
optionalconcurrency
Maximum number of concurrent tasks.
optionalextensions
File extensions of components.
optionalkeepAjvErrors
Do not transform Ajv errors to issues.
path
Path of the component folder.
optionalthrowOnError
Throw an error when an issue with error
severity is found.
optionalvalidate
Enable validation.
Methods
optionaltransform
Transform a manifest. This function is called when a new manifest is found, and before the validation. The return value will override the data of the manifest. If the return value is
undefined
ornull
, the manifest will be removed from the result.Parameters
manifest: Manifest
Returns unknown
optionalvalidateAllManifests
Validate all manifests after resolving.
Parameters
manifests: readonly Manifest[]
Returns void | Promise<void>
optionalvalidateManifest
Validate a manifest. This function is called after
validate
method of a manifest. No mattervalidate
method exists or not, this function will be called.If the
bail
option istrue
, andvalidate
method failed, this function will not be called.Parameters
manifest: Manifest
Returns void | Promise<void>
Stop immediately when an error occurred.