UNPKG

create-pro-fiori-app-cli

Version:

SAPUI5/Fiori projeleri için akıllı proje oluşturucu ve yönetici. Kod üretimi, deployment ve kalite kontrol otomasyonu sağlar.

150 lines 4.02 kB
{ "_version": "1.60.0", "sap.app": { "id": "<%= namespace %>", "type": "application", "i18n": "i18n/i18n.properties", "applicationVersion": { "version": "0.0.1" }, "title": "{{appTitle}}", "description": "{{appDescription}}", "resources": "resources.json", "sourceTemplate": { "id": "", "version": "" }, "dataSources": { <% if (serviceType === 'Rest') { %> "mainServiceAPI": { "uri": "/sap/bc/your_rest_api/", "type": "JSON", "settings": { "sapClient": "100" } } <% } else if (serviceType === 'ODataV2') { %> "mainService": { "uri": "/sap/opu/odata/sap/YOUR_V2_SERVICE_SRV/", "type": "OData", "settings": { "odataVersion": "2.0" } } <% } else if (serviceType === 'ODataV4') { %> "mainService": { "uri": "/sap/opu/odata/sap/YOUR_V4_SERVICE_OD/", "type": "OData", "settings": { "odataVersion": "4.0" } } <% } %> } }, "sap.ui": { "technology": "UI5", "icons": { "icon": "", "favIcon": "", "phone": "", "phone@2": "", "tablet": "", "tablet@2": "" }, "deviceTypes": { "desktop": true, "tablet": true, "phone": true } }, "sap.ui5": { "flexEnabled": true, "dependencies": { "minUI5Version": "1.136.2", "libs": { "sap.m": {}, "sap.ui.core": {}, "sap.fe.templates": {} } }, "contentDensities": { "compact": true, "cozy": true }, "models": { "i18n": { "type": "sap.ui.model.resource.ResourceModel", "settings": { "bundleName": "<%= namespace %>.i18n.i18n" } } <% if (serviceType === 'ODataV2') { %> , "oDataV2Model": { "dataSource": "v2Service", "preload": true, "settings": { "defaultBindingMode": "TwoWay", "useBatch": true, "json": true } } <% } else if (serviceType === 'ODataV4') { %> "oDataV4Model": { "dataSource": "v4Service", "preload": true, "settings": { "operationMode": "Server", "groupId": "$auto", "synchronizationMode": "None" } } <% } %> }, "resources": { "css": [ <% if (serviceType === 'Rest') { %> { "uri": "css/style.css" }, <% } %> { "uri": "css/boostrap.css" } ] }, "routing": { "config": {}, "routes": [ <% if (serviceType === 'Rest') { %> { "name": "Login", "pattern": "", "target": "Login" }, { "name": "Main", "pattern": "main", "target": "Main", "requiresAuth": true } <% } else { %> { "name": "Main", "pattern": "", "target": "Main" } <% } %> ], "targets": { <% if (serviceType === 'Rest') { %> "Login": { "viewName": "Login", "viewId": "Login", "viewLevel": 1 }, <% } %> "Main": { "viewName": "Main", "viewId": "Main" }, "notFound": { "viewName": "NotFound" } } } } }