loio |
---|
e282db2865e94f69972c407469b801e9 |
view on: demo kit nightly build | demo kit latest release
Overview, how the component metadata are mapped to the manifest (descriptor for applications, components and libraries).
For compatibility reasons, the mapping to the manifest.json
file is done automatically. If a metadata property has been defined, it can also be consumed via the corresponding property of the manifest.json
file. For a detailed step-by-step guide, see Creating a Manifest File for Existing Apps.
To benefit from the performance improvements that can be achieved by using "manifest first", we recommend to migrate the component metadata to the
manifest.json
file. For more information about manifest first, see the Manifest First Function section in Manifest (Descriptor for Applications, Components, and Libraries).
Mapping Table
Metadata |
Manifest |
Comment |
---|---|---|
Component namespace |
|
- |
|
|
- |
|
|
- |
|
|
Different format, see Dependencies section below |
|
|
- |
|
|
- |
|
|
Different format, see Resources section below |
|
|
- |
|
|
- |
Libraries and components are objects and not arrays. For the manifest part, we use minUI5Version
instead of ui5version
.
Metadata
"dependencies": {
"ui5version": "1.30.0",
"libs": [
"sap.m",
"sap.ui.unified"
],
"components": [ "sap.app.otherComponent" ]
}
Manifest
"dependencies": {
"minUI5Version": "1.30.0",
"libs": {
"sap.m": {},
"sap.ui.unified": {}
},
"components": {
"sap.app.otherComponent": {}
}
}
Includes are renamed to resources and are objects and not an array.
Metadata
"includes": ["script.js", "style.css"]
Manifest
Since 1.94 the usage of
js
resources is deprecated. Please use regulardependencies
instead.
"resources": {
"js": [ //deprecated since 1.94
{
"uri": "script.js"
}
],
"css": [
{
"uri": "style.css"
}
]
}