Overview, how the component metadata are mapped to the descriptor.
Metadata |
Descriptor |
Comment |
---|---|---|
Component namespace |
sap.app/id |
- |
version |
sap.app/applicationVersion/version |
- |
config |
sap.ui5/config |
- |
dependencies |
sap.ui5/depedencies |
Different format, see Dependencies section below |
customizing |
sap.ui5/extends/extensions |
- |
handleValidation |
sap.ui5/handleValidation |
- |
includes |
sap.ui5/resources |
Different format, see Resources section below |
rootView |
sap.ui5/rootView |
- |
routing |
sap.ui5/routing |
- |
Libraries and components are objects and not arrays. For the descriptor part, we use ui5version instead of minUI5Version.
Metadata
#!js "dependencies": { "ui5version": "1.30.0", "libs": [ "sap.m", "sap.ui.unified" ], "components": [ "sap.app.otherComponent" ] }
Descriptor
#!js "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
#!js "includes": ["script.js", "style.css"]
Descriptor
#!js "resources": { "js": [ { "uri": "script.js" } ], "css": [ { "uri": "style.css" } ] }