added cloud foundry deployment configuration

master
Stefan Haslinger 2022-04-27 08:14:34 +00:00
parent 5a4d1ea579
commit 48423a0e34
7 changed files with 1816 additions and 175 deletions

94
mta.yaml Normal file
View File

@ -0,0 +1,94 @@
_schema-version: "3.2"
ID: opensap-manageproducts-manageproducts
description: A Fiori application.
version: 0.0.1
modules:
- name: opensap-manageproducts-manageproducts-destination-content
type: com.sap.application.content
requires:
- name: opensap-manageproducts-manageproducts-destination-service
parameters:
content-target: true
- name: opensap-manageproducts-manageproducts-repo-host
parameters:
service-key:
name: opensap-manageproducts-manageproducts-repo-host-key
- name: opensap-manageproducts-manageproducts-uaa
parameters:
service-key:
name: opensap-manageproducts-manageproducts-uaa-key
parameters:
content:
instance:
destinations:
- Name: opensap-manageproducts-manageproducts_html_repo_host
ServiceInstanceName: opensap-manageproducts-manageproducts-html5-srv
ServiceKeyName: opensap-manageproducts-manageproducts-repo-host-key
sap.cloud.service: opensap-manageproducts-manageproducts
- Authentication: OAuth2UserTokenExchange
Name: opensap-manageproducts-manageproducts_uaa
ServiceInstanceName: opensap-manageproducts-manageproducts-xsuaa-srv
ServiceKeyName: opensap-manageproducts-manageproducts-uaa-key
sap.cloud.service: opensap-manageproducts-manageproducts
existing_destinations_policy: ignore
build-parameters:
no-source: true
- name: opensap-manageproducts-manageproducts-app-content
type: com.sap.application.content
path: .
requires:
- name: opensap-manageproducts-manageproducts-repo-host
parameters:
content-target: true
build-parameters:
build-result: resources
requires:
- artifacts:
- opensapmanageproductsmanageproducts.zip
name: opensapmanageproductsmanageproducts
target-path: resources/
- name: opensapmanageproductsmanageproducts
type: html5
path: .
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: opensap-manageproducts-manageproducts-destination-service
type: org.cloudfoundry.managed-service
parameters:
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.0
service: destination
service-name: opensap-manageproducts-manageproducts-destination-service
service-plan: lite
- name: opensap-manageproducts-manageproducts-uaa
type: org.cloudfoundry.managed-service
parameters:
path: ./xs-security.json
service: xsuaa
service-name: opensap-manageproducts-manageproducts-xsuaa-srv
service-plan: application
- name: opensap-manageproducts-manageproducts-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-name: opensap-manageproducts-manageproducts-html5-srv
service-plan: app-host
parameters:
deploy_mode: html5-repo
enable-parallel-deployments: true

1477
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,37 +1,46 @@
{
"name": "manageproducts",
"version": "0.0.1",
"private": true,
"description": "A Fiori application.",
"keywords": [
"ui5",
"openui5",
"sapui5"
],
"main": "webapp/index.html",
"dependencies": {},
"devDependencies": {
"@ui5/cli": "^2.14.1",
"@sap/ux-ui5-tooling": "1",
"@sap/ux-ui5-fe-mockserver-middleware": "1"
},
"scripts": {
"start": "fiori run --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"start-local": "fiori run --config ./ui5-local.yaml --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"build": "ui5 build --config=ui5.yaml --clean-dest --dest dist",
"deploy": "fiori verify",
"deploy-config": "fiori add deploy-config",
"start-noflp": "fiori run --open \"index.html?sap-client=002&sap-ui-xx-viewCache=false\"",
"start-mock": "fiori run --config ./ui5-mock.yaml --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"start-variants-management": "fiori run --open \"preview.html?&sap-client=002&sap-ui-xx-viewCache=false&fiori-tools-rta-mode=true&sap-ui-rta-skip-flex-validation=true#preview-app\"",
"unit-tests": "fiori run --open test/unit/unitTests.qunit.html",
"int-tests": "fiori run --open test/integration/opaTests.qunit.html"
},
"ui5": {
"dependencies": [
"@sap/ux-ui5-tooling",
"@sap/ux-ui5-fe-mockserver-middleware"
]
},
"sapuxLayer": "CUSTOMER_BASE"
"name": "manageproducts",
"version": "0.0.1",
"private": true,
"description": "A Fiori application.",
"keywords": [
"ui5",
"openui5",
"sapui5"
],
"main": "webapp/index.html",
"dependencies": {},
"devDependencies": {
"@ui5/cli": "^2.14.1",
"@sap/ux-ui5-tooling": "1",
"@sap/ux-ui5-fe-mockserver-middleware": "1",
"@sap/ui5-builder-webide-extension": "^1.1.7",
"ui5-task-zipper": "^0.3.1",
"mbt": "^1.0.15"
},
"scripts": {
"start": "fiori run --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"start-local": "fiori run --config ./ui5-local.yaml --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"build": "ui5 build --config=ui5.yaml --clean-dest --dest dist",
"deploy": "fiori cfDeploy",
"deploy-config": "fiori add deploy-config",
"start-noflp": "fiori run --open \"index.html?sap-client=002&sap-ui-xx-viewCache=false\"",
"start-mock": "fiori run --config ./ui5-mock.yaml --open \"test/flpSandbox.html?sap-client=002&sap-ui-xx-viewCache=false#opensapmanageproductsmanageproducts-display\"",
"start-variants-management": "fiori run --open \"preview.html?&sap-client=002&sap-ui-xx-viewCache=false&fiori-tools-rta-mode=true&sap-ui-rta-skip-flex-validation=true#preview-app\"",
"unit-tests": "fiori run --open test/unit/unitTests.qunit.html",
"int-tests": "fiori run --open test/integration/opaTests.qunit.html",
"build:cf": "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateManifestBundle generateCachebusterInfo",
"build:mta": "rimraf resources mta_archives && mbt build",
"undeploy": "cf undeploy opensap-manageproducts-manageproducts --delete-services --delete-service-keys"
},
"ui5": {
"dependencies": [
"@sap/ux-ui5-tooling",
"@sap/ux-ui5-fe-mockserver-middleware",
"@sap/ui5-builder-webide-extension",
"ui5-task-zipper",
"mbt"
]
},
"sapuxLayer": "CUSTOMER_BASE"
}

25
ui5-deploy.yaml Normal file
View File

@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: '2.4'
metadata:
name: opensap.manageproducts.manageproducts
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: webide-extension-task-updateManifestJson
beforeTask: generateManifestBundle
configuration:
appFolder: webapp
destDir: dist
- name: ui5-task-zipper
afterTask: generateCachebusterInfo
configuration:
archiveName: opensapmanageproductsmanageproducts
additionalFiles:
- xs-app.json

View File

@ -1,140 +1,144 @@
{
"_version": "1.28.0",
"sap.app": {
"id": "opensap.manageproducts.manageproducts",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap-ux/fiori-freestyle-writer:worklist",
"version": "0.11.6"
},
"dataSources": {
"mainService": {
"uri": "/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
"type": "OData",
"settings": {
"annotations": [],
"localUri": "localService/metadata.xml",
"odataVersion": "2.0"
"_version": "1.28.0",
"sap.app": {
"id": "opensap.manageproducts.manageproducts",
"type": "application",
"i18n": "i18n/i18n.properties",
"applicationVersion": {
"version": "0.0.1"
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"resources": "resources.json",
"sourceTemplate": {
"id": "@sap-ux/fiori-freestyle-writer:worklist",
"version": "0.11.6"
},
"dataSources": {
"mainService": {
"uri": "/sap/opu/odata/iwbep/GWSAMPLE_BASIC/",
"type": "OData",
"settings": {
"annotations": [],
"localUri": "localService/metadata.xml",
"odataVersion": "2.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.84.14",
"libs": {
"sap.m": {},
"sap.ui.core": {},
"sap.f": {},
"sap.suite.ui.generic.template": {},
"sap.ui.comp": {},
"sap.ui.generic.app": {},
"sap.ui.table": {},
"sap.ushell": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "opensap.manageproducts.manageproducts.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {}
}
},
"resources": {
"css": []
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "opensap.manageproducts.manageproducts.view",
"controlId": "app",
"controlAggregation": "pages",
"bypassed": {
"target": [
"notFound"
]
},
"async": true
},
"routes": [
{
"pattern": "",
"name": "worklist",
"target": [
"worklist"
]
},
{
"pattern": "ProductSet/{objectId}",
"name": "object",
"target": [
"object"
]
}
],
"targets": {
"worklist": {
"viewName": "Worklist",
"viewId": "worklist",
"viewLevel": 1,
"title": "{i18n>worklistViewTitle}"
},
"object": {
"viewName": "Object",
"viewId": "object",
"viewLevel": 2,
"title": "{i18n>objectViewTitle}"
},
"objectNotFound": {
"viewName": "ObjectNotFound",
"viewId": "objectNotFound"
},
"notFound": {
"viewName": "NotFound",
"viewId": "notFound"
}
}
},
"rootView": {
"viewName": "opensap.manageproducts.manageproducts.view.App",
"type": "XML",
"async": true,
"id": "app"
}
},
"sap.cloud": {
"public": true,
"service": "opensap-manageproducts-manageproducts"
}
},
"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.84.14",
"libs": {
"sap.m": {},
"sap.ui.core": {},
"sap.f": {},
"sap.suite.ui.generic.template": {},
"sap.ui.comp": {},
"sap.ui.generic.app": {},
"sap.ui.table": {},
"sap.ushell": {}
}
},
"contentDensities": {
"compact": true,
"cozy": true
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "opensap.manageproducts.manageproducts.i18n.i18n"
}
},
"": {
"dataSource": "mainService",
"preload": true,
"settings": {}
}
},
"resources": {
"css": []
},
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"viewPath": "opensap.manageproducts.manageproducts.view",
"controlId": "app",
"controlAggregation": "pages",
"bypassed": {
"target": [
"notFound"
]
},
"async": true
},
"routes": [
{
"pattern": "",
"name": "worklist",
"target": [
"worklist"
]
},
{
"pattern": "ProductSet/{objectId}",
"name": "object",
"target": [
"object"
]
}
],
"targets": {
"worklist": {
"viewName": "Worklist",
"viewId": "worklist",
"viewLevel": 1,
"title": "{i18n>worklistViewTitle}"
},
"object": {
"viewName": "Object",
"viewId": "object",
"viewLevel": 2,
"title": "{i18n>objectViewTitle}"
},
"objectNotFound": {
"viewName": "ObjectNotFound",
"viewId": "objectNotFound"
},
"notFound": {
"viewName": "NotFound",
"viewId": "notFound"
}
}
},
"rootView": {
"viewName": "opensap.manageproducts.manageproducts.view.App",
"type": "XML",
"async": true,
"id": "app"
}
}
}
}

31
xs-app.json Normal file
View File

@ -0,0 +1,31 @@
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"routes": [
{
"source": "^/sap/(.*)$",
"target": "/sap/$1",
"destination": "ES5",
"authenticationType": "xsuaa",
"csrfProtection": false
},
{
"source": "^/resources/(.*)$",
"target": "/resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^/test-resources/(.*)$",
"target": "/test-resources/$1",
"authenticationType": "none",
"destination": "ui5"
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}

7
xs-security.json Normal file
View File

@ -0,0 +1,7 @@
{
"xsappname": "opensapmanageproductsmanageproducts",
"tenant-mode": "dedicated",
"description": "Security profile of called application",
"scopes": [],
"role-templates": []
}