@sap-ux/fiori-elements-writer 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-elements-writer",
|
|
3
3
|
"description": "SAP Fiori elements application writer",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"templates"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sap-ux/odata-service-writer": "0.12.
|
|
22
|
-
"@sap-ux/ui5-application-writer": "0.13.
|
|
23
|
-
"@sap-ux/ui5-config": "0.13.
|
|
21
|
+
"@sap-ux/odata-service-writer": "0.12.2",
|
|
22
|
+
"@sap-ux/ui5-application-writer": "0.13.1",
|
|
23
|
+
"@sap-ux/ui5-config": "0.13.3",
|
|
24
24
|
"ejs": "3.1.7",
|
|
25
25
|
"i18next": "20.3.2",
|
|
26
26
|
"lodash": "4.17.21",
|
|
@@ -34,11 +34,13 @@
|
|
|
34
34
|
"@types/fs-extra": "9.0.13",
|
|
35
35
|
"@types/lodash": "4.14.176",
|
|
36
36
|
"@types/mem-fs-editor": "7.0.1",
|
|
37
|
+
"@types/mem-fs": "1.1.2",
|
|
38
|
+
"@types/semver": "7.3.9",
|
|
37
39
|
"fs-extra": "10.0.0"
|
|
38
40
|
},
|
|
39
41
|
"engines": {
|
|
40
|
-
"pnpm": ">=6.26.1",
|
|
41
|
-
"node": ">=12.22.5 < 13.0.0 || >= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0"
|
|
42
|
+
"pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
|
|
43
|
+
"node": ">=12.22.5 < 13.0.0 || >= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0 || >=18.0.0 < 19.0.0"
|
|
42
44
|
},
|
|
43
45
|
"scripts": {
|
|
44
46
|
"build": "rimraf dist && tsc",
|
|
@@ -50,6 +52,5 @@
|
|
|
50
52
|
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
|
|
51
53
|
"link": "pnpm link --global",
|
|
52
54
|
"unlink": "pnpm unlink --global"
|
|
53
|
-
}
|
|
54
|
-
"readme": "# @sap-ux/fiori-elements-writer\n\nEasy to use Fiori Elements project files writer for use within Yeoman generator and other prompting libraries. \n\n\n## Installation\nNpm\n`npm install --save @sap-ux/fiori-elements-writer`\n\nYarn\n`yarn add @sap-ux/fiori-elements-writer`\n\nPnpm\n`pnpm add @sap-ux/fiori-elements-writer`\n\n## Usage\n\n\nCalling the `generate` function\n```javascript\nimport { FioriElementsApp, generate, OdataVersion, TemplateType } from '@sap-ux/fiori-elements-writer'\nimport { join } from 'path';\n\nconst exampleWriter = async () => {\n\n const appConfig = {\n app: {\n id: 'test.me',\n title: 'My Test App',\n flpAppId: 'testme-app'\n },\n package: {\n name: 'test.me'\n },\n service: {\n url: 'https://services.odata.org',\n path: '/V2/Northwind/Northwind.svc',\n version: OdataVersion.v2,\n metadata: // Fetch from: https://services.odata.org/V2/Northwind/Northwind.svc$metadata\n },\n ui5: {\n localVersion: '1.90.0',\n version: '1.98.0',\n ui5Theme: 'sap_fiori_3'\n },\n template: {\n type: TemplateType.ListReportObjectPage,\n settings: {\n entityConfig: {\n mainEntity: {\n entityName: 'Suppliers'\n },\n navigationEntity: {\n EntitySet: 'Products',\n Name: 'Products',\n Role: ''\n }\n }\n }\n }\n };\n\n const projectPath = join(curTestOutPath, name);\n const fs = await generate(join(projectPath), appConfig);\n return new Promise((resolve) => {\n fs.commit(resolve); // When using with Yeoman it handle the fs commit.\n });\n}\n\n// Calling the function\nawait exampleWriter();\n\n```\n\n## Keywords\nSAP Fiori Elements\n"
|
|
55
|
+
}
|
|
55
56
|
}
|