Global

Type Definitions

GenerateJsdocOptions

Source:
Properties:
Name Type Description
pattern string | Array.<string> Pattern to locate the files to be processed
projectName string Project name
namespace string Namespace to build (e.g. some/project/name)
version string Project version
Type:
  • object

ManifestBundlerOptions

Source:
Properties:
Name Type Description
projectName string Project Name
namespace string Namespace
Type:
  • object

ModuleBundleDefinition

Source:
Properties:
Name Type Attributes Default Description
name string The module bundle name
defaultFileTypes Array.<string> <optional>
[".js", ".fragment.xml", ".view.xml", ".properties", ".json"] List of default file types to be included in the bundle
sections Array.<ModuleBundleDefinitionSection> List of module bundle definition sections.
Module bundle definition
Type:
  • object

ModuleBundleDefinitionSection

Source:
Properties:
Name Type Attributes Default Description
mode string The embedding mode. Either 'provided', 'raw', 'preload' or 'require'
filters Array.<string> List of modules declared as glob patterns (resource name patterns) that should be in- or excluded. A pattern either contains of a trailing slash '/' or single '*' and double '**' asterisks which denote an arbitrary number of characters or folder names. Exludes should be marked with a leading exclamation mark '!'. The order of filters is relevant, a later exclusion overrides an earlier inclusion and vice versa.
resolve boolean <optional>
false Whether (transitive) dependencies of modules that match the given filters should be resolved and added to the module set
resolveConditional boolean <optional>
false Whether conditional dependencies of modules should be resolved and added to the module set for this section
renderer boolean <optional>
false Whether renderers for controls should be added to the module set
declareRawModules boolean <optional>
false Whether raw modules should be declared after jQuery.sap.global became available. With the usage of the ui5loader, this flag should be set to 'false'
sort boolean <optional>
true Whether the modules should be sorted by their dependencies
A ModuleBundleDefinitionSection specifies the embedding mode ('provided', 'raw', 'preload' or 'require') and lists the resources that should be in- or excluded from the section.

Module bundle section modes

  • provided: A section of mode 'provided' defines a set of modules that should not be included in the bundle file itself, but which should be assumed to be already loaded (or 'provided') by the environment into which the bundle module is loaded.
  • raw: A raw section determines the set of modules that should be embedded, sorts them according to their dependencies and writes them out 1:1 without any transformation or wrapping (raw). Only JavaScript sources can be embedded in a raw section.
  • preload: A preload section packages resources that should be stored in the preload cache in the client. They can embed any textual resource type (JavaScript, XML, JSON and .properties files) that the bundling supports. UI5 modules are wrapped into a 'sap.ui.predefine' call. Other JavaScript modules will be embedded into a 'jQuery.sap.registerPreload' call, unless the asynchronous ui5loader is used. With the ui5loader 'sap.ui.require.preload' is used for other modules.
  • require: A 'require' section is transformed into a sequence of jQuery.sap.require calls. The list will be resolved like an include pattern list in any of the other sections and for each of the resolved modules, a jQuery.sap.require will be created. In case the ui5loader is available, 'sap.ui.requireSync' is used instead.

Type:
  • object
Example

List of modules as glob patterns that should be in- or excluded

// Includes everything from "some/path/to/module/",
// but excludes the subfolder "some/path/to/module/to/be/excluded/"
const section = {
	"filters": [
		"some/path/to/module/",
		"!some/path/to/module/to/be/excluded/"
	]
};

ModuleBundleOptions

Source:
Properties:
Name Type Attributes Default Description
optimize boolean <optional>
false If set to 'true' the module bundle gets minified
decorateBootstrapModule boolean <optional>
false If set to 'false', the module won't be decorated with an optimization marker
addTryCatchRestartWrapper boolean <optional>
false Whether to wrap bootable module bundles with a try/catch to filter out "Restart" errors
usePredefineCalls boolean <optional>
false If set to 'true', sap.ui.predefine is used for UI5 modules
numberOfParts number <optional>
1 The number of parts the module bundle should be splitted
ignoreMissingModules boolean <optional>
false When searching for modules which are optional for further processing, do not throw in case they are missing
Module bundle options
Type:
  • object

ThemeBuilderOptions

Source:
Properties:
Name Type Attributes Default Description
compress boolean <optional>
false Compress build output (CSS / JSON)
cssVariables boolean <optional>
false Generates the CSS variables (css-variables.css, css-variables.source.less) and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css])
Type:
  • object