@sap-ux/fiori-elements-writer 2.8.137 → 2.10.2
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 +3 -7
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -74,14 +74,12 @@ function getTypeScriptIgnoreGlob(feApp, coercedUI5Version) {
|
|
|
74
74
|
* @param appOpts - relevant app options for retrieving the opa config
|
|
75
75
|
* @param appOpts.useVirtualPreviewEndpoints - if virtual endpoints will be used for preview
|
|
76
76
|
* @param flpAppId - the flp app id
|
|
77
|
-
* @returns - the opa config { htmlTarget }
|
|
77
|
+
* @returns - the opa config { htmlTarget, useVirtualPreviewEndpoints }
|
|
78
78
|
*/
|
|
79
79
|
function getOpaConfig({ useVirtualPreviewEndpoints }, flpAppId) {
|
|
80
80
|
const flpTarget = useVirtualPreviewEndpoints ? 'flp' : 'flpSandbox';
|
|
81
81
|
const htmlTarget = `test/${flpTarget}.html#${flpAppId}`;
|
|
82
|
-
return {
|
|
83
|
-
htmlTarget
|
|
84
|
-
};
|
|
82
|
+
return { htmlTarget, useVirtualPreviewEndpoints };
|
|
85
83
|
}
|
|
86
84
|
/**
|
|
87
85
|
* Determines if tests should be added.
|
|
@@ -217,9 +215,7 @@ async function generate(basePath, data, fs, log) {
|
|
|
217
215
|
}
|
|
218
216
|
// OPA tests must be generated last since they depend on other parts of the app, such as annotations, being in place
|
|
219
217
|
if (addTest) {
|
|
220
|
-
const opaConfig = getOpaConfig({
|
|
221
|
-
useVirtualPreviewEndpoints: feApp.appOptions?.useVirtualPreviewEndpoints
|
|
222
|
-
}, feApp.app.flpAppId);
|
|
218
|
+
const opaConfig = getOpaConfig({ useVirtualPreviewEndpoints: feApp.appOptions?.useVirtualPreviewEndpoints }, feApp.app.flpAppId);
|
|
223
219
|
await (0, ui5_test_writer_1.generateOPAFiles)(basePath, opaConfig, data.service.metadata, fs, log);
|
|
224
220
|
}
|
|
225
221
|
return fs;
|
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": "2.
|
|
4
|
+
"version": "2.10.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"read-pkg-up": "7.0.1",
|
|
29
29
|
"semver": "7.7.4",
|
|
30
|
-
"@sap-ux/
|
|
31
|
-
"@sap-ux/
|
|
32
|
-
"@sap-ux/fe-fpm-writer": "0.
|
|
33
|
-
"@sap-ux/ui5-config": "0.
|
|
34
|
-
"@sap-ux/ui5-test-writer": "0.
|
|
35
|
-
"@sap-ux/fiori-generator-shared": "0.
|
|
36
|
-
"@sap-ux/cap-config-writer": "0.
|
|
37
|
-
"@sap-ux/annotation-generator": "0.
|
|
38
|
-
"@sap-ux/logger": "0.
|
|
30
|
+
"@sap-ux/ui5-application-writer": "1.9.0",
|
|
31
|
+
"@sap-ux/odata-service-writer": "0.32.0",
|
|
32
|
+
"@sap-ux/fe-fpm-writer": "0.44.0",
|
|
33
|
+
"@sap-ux/ui5-config": "0.31.0",
|
|
34
|
+
"@sap-ux/ui5-test-writer": "0.9.2",
|
|
35
|
+
"@sap-ux/fiori-generator-shared": "0.15.1",
|
|
36
|
+
"@sap-ux/cap-config-writer": "0.13.1",
|
|
37
|
+
"@sap-ux/annotation-generator": "0.5.0",
|
|
38
|
+
"@sap-ux/logger": "0.9.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/ejs": "3.1.5",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@types/mem-fs": "1.1.2",
|
|
46
46
|
"@types/semver": "7.7.1",
|
|
47
47
|
"fs-extra": "11.3.4",
|
|
48
|
-
"@sap-ux/project-access": "1.
|
|
49
|
-
"@sap-ux/eslint-plugin-fiori-tools": "10.
|
|
48
|
+
"@sap-ux/project-access": "1.37.0",
|
|
49
|
+
"@sap-ux/eslint-plugin-fiori-tools": "10.1.1"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
52
|
+
"node": ">=22.x"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc --build",
|