@sap-ux/fiori-freestyle-writer 0.19.13 → 0.19.15
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/README.md +10 -23
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# @sap-ux/fiori-freestyle-writer
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Writer module allowing to generate custom SAPUI5 applications with different templates.
|
|
4
4
|
|
|
5
|
+
:warning: **All templates except the Basic template are deprecated** and will be removed in a future release. Please use the Custom page SAP Fiori template(`@sap-ux/fiori-elements-writer`) as an alternative.
|
|
5
6
|
|
|
6
7
|
## Installation
|
|
7
8
|
Npm
|
|
@@ -26,8 +27,7 @@ const exampleWriter = async () => {
|
|
|
26
27
|
{
|
|
27
28
|
app: {
|
|
28
29
|
id: 'test.me',
|
|
29
|
-
title: 'My Test App'
|
|
30
|
-
flpAppId: 'testme-app'
|
|
30
|
+
title: 'My Test App'
|
|
31
31
|
},
|
|
32
32
|
package: {
|
|
33
33
|
name: 'test.me'
|
|
@@ -39,36 +39,21 @@ const exampleWriter = async () => {
|
|
|
39
39
|
metadata: // Fetch from: https://services.odata.org/V2/Northwind/Northwind.svc$metadata
|
|
40
40
|
},
|
|
41
41
|
ui5: {
|
|
42
|
-
|
|
43
|
-
version: '', // I.e Latest
|
|
42
|
+
version: '1.90.0',
|
|
44
43
|
ui5Theme: 'sap_fiori_3',
|
|
45
44
|
ui5Libs: 'sap.m,sap.ushell'
|
|
46
45
|
},
|
|
47
46
|
template: {
|
|
48
|
-
type: TemplateType.
|
|
47
|
+
type: TemplateType.Basic,
|
|
49
48
|
settings: {
|
|
50
|
-
|
|
51
|
-
name: 'Suppliers',
|
|
52
|
-
key: 'SupplierID',
|
|
53
|
-
idProperty: 'CompanyName',
|
|
54
|
-
numberProperty: undefined,
|
|
55
|
-
unitOfMeasureProperty: undefined
|
|
56
|
-
},
|
|
57
|
-
lineItem: {
|
|
58
|
-
name: 'Products',
|
|
59
|
-
key: 'ProductID',
|
|
60
|
-
idProperty: 'ProductName',
|
|
61
|
-
numberProperty: 'UnitsInStock',
|
|
62
|
-
unitOfMeasureProperty: 'QuantityPerUnit'
|
|
63
|
-
}
|
|
64
|
-
}
|
|
49
|
+
viewName: 'CustomViewName'
|
|
65
50
|
}
|
|
66
51
|
};
|
|
67
52
|
|
|
68
53
|
const projectPath = join(curTestOutPath, name);
|
|
69
54
|
const fs = await generate(join(projectPath), appConfig);
|
|
70
55
|
return new Promise((resolve) => {
|
|
71
|
-
fs.commit(resolve); //
|
|
56
|
+
fs.commit(resolve); // when using with Yeoman it handle the fs commit.
|
|
72
57
|
});
|
|
73
58
|
}
|
|
74
59
|
|
|
@@ -78,4 +63,6 @@ await exampleWriter();
|
|
|
78
63
|
```
|
|
79
64
|
|
|
80
65
|
## Keywords
|
|
81
|
-
|
|
66
|
+
SAPUI5
|
|
67
|
+
SAP Fiori
|
|
68
|
+
SAP Fiori tools
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-freestyle-writer",
|
|
3
3
|
"description": "SAP Fiori freestyle application writer",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.15",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"read-pkg-up": "7.0.1",
|
|
29
|
-
"@sap-ux/odata-service-writer": "0.14.
|
|
30
|
-
"@sap-ux/ui5-application-writer": "0.24.
|
|
31
|
-
"@sap-ux/ui5-config": "0.
|
|
29
|
+
"@sap-ux/odata-service-writer": "0.14.27",
|
|
30
|
+
"@sap-ux/ui5-application-writer": "0.24.1",
|
|
31
|
+
"@sap-ux/ui5-config": "0.19.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/ejs": "3.1.0",
|