@sap-ux/ui5-application-writer 1.5.5 → 1.5.7
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/dist/index.js
CHANGED
|
@@ -57,9 +57,10 @@ async function generate(basePath, ui5AppConfig, fs) {
|
|
|
57
57
|
});
|
|
58
58
|
ui5Config.addFioriToolsAppReloadMiddleware();
|
|
59
59
|
const previewMiddleWareOpts = getPreviewMiddlewareOpts(ui5App.app, ui5App.ui5?.ui5Theme, ui5AppConfig.appOptions?.useVirtualPreviewEndpoints);
|
|
60
|
+
const fioriToolsPreviewConfigMiddlware = (0, ui5_config_1.getPreviewMiddlewareConfig)(previewMiddleWareOpts);
|
|
60
61
|
// add preview middleware to ui5Config for edmx projects and cap apps using virtual endpoints
|
|
61
62
|
if (isEdmxProjectType || ui5AppConfig.appOptions?.useVirtualPreviewEndpoints) {
|
|
62
|
-
ui5Config.
|
|
63
|
+
ui5Config.updateCustomMiddleware(fioriToolsPreviewConfigMiddlware);
|
|
63
64
|
}
|
|
64
65
|
if (isEdmxProjectType) {
|
|
65
66
|
const ui5LocalConfigPath = (0, path_1.join)(basePath, 'ui5-local.yaml');
|
|
@@ -70,7 +71,7 @@ async function generate(basePath, ui5AppConfig, fs) {
|
|
|
70
71
|
// Add optional features
|
|
71
72
|
await (0, options_1.applyOptionalFeatures)(ui5App, fs, basePath, tmplPath, [ui5Config, ui5LocalConfig]);
|
|
72
73
|
// add preview middleware to ui5LocalConfig
|
|
73
|
-
ui5LocalConfig.
|
|
74
|
+
ui5LocalConfig.updateCustomMiddleware(fioriToolsPreviewConfigMiddlware);
|
|
74
75
|
// write ui5 local yaml
|
|
75
76
|
fs.write(ui5LocalConfigPath, ui5LocalConfig.toString());
|
|
76
77
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"info": {
|
|
3
|
-
"mockOnlyWarning": "This application was generated with a local metadata file and does not reference a live server. Please add the required server configuration or start this application with mock data using the target: npm run start-mock"
|
|
3
|
+
"mockOnlyWarning": "This application was generated with a local metadata file and does not reference a live server. Please add the required server configuration or start this application with mock data using the target: `npm run start-mock`."
|
|
4
4
|
},
|
|
5
5
|
"error": {
|
|
6
|
-
"missingRequiredProperty": "The property: {{ propertyName }} must have a value",
|
|
7
|
-
"disallowedCharacters": "The property: {{ propertyName }} contains disallowed characters: {{- disallowedChars }}",
|
|
8
|
-
"invalidUI5Version": "The specified
|
|
6
|
+
"missingRequiredProperty": "The property: {{ propertyName }} must have a value.",
|
|
7
|
+
"disallowedCharacters": "The property: {{ propertyName }} contains disallowed characters: {{- disallowedChars }}. Remove these characters and try again.",
|
|
8
|
+
"invalidUI5Version": "The specified SAPUI5 version is invalid: {{ version }}. Use a different version."
|
|
9
9
|
},
|
|
10
10
|
"text": {
|
|
11
11
|
"defaultAppTitle": "Title of {{ id }}",
|
|
12
|
-
"defaultAppDescription": "Description of {{ id }}"
|
|
12
|
+
"defaultAppDescription": "Description of {{ id }}."
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.5.
|
|
12
|
+
"version": "1.5.7",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"mem-fs": "2.1.0",
|
|
28
28
|
"mem-fs-editor": "9.4.0",
|
|
29
29
|
"semver": "7.5.4",
|
|
30
|
-
"@sap-ux/ui5-config": "0.
|
|
30
|
+
"@sap-ux/ui5-config": "0.29.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/ejs": "3.1.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/semver": "7.5.2",
|
|
39
39
|
"fs-extra": "10.0.0",
|
|
40
40
|
"@sap-ux/eslint-plugin-fiori-tools": "0.6.0",
|
|
41
|
-
"@sap-ux/project-access": "1.30.
|
|
41
|
+
"@sap-ux/project-access": "1.30.6"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=20.x"
|