@sap-ux/fiori-elements-writer 2.6.4 → 2.7.0
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 +2 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -72,14 +72,13 @@ function getTypeScriptIgnoreGlob(feApp, coercedUI5Version) {
|
|
|
72
72
|
* Returns the OPA config.
|
|
73
73
|
*
|
|
74
74
|
* @param appOpts - relevant app options for retrieving the opa config
|
|
75
|
-
* @param appOpts.generateIndex - if an index.html file will be generated
|
|
76
75
|
* @param appOpts.useVirtualPreviewEndpoints - if virtual endpoints will be used for preview
|
|
77
76
|
* @param flpAppId - the flp app id
|
|
78
77
|
* @returns - the opa config { htmlTarget }
|
|
79
78
|
*/
|
|
80
|
-
function getOpaConfig({
|
|
79
|
+
function getOpaConfig({ useVirtualPreviewEndpoints }, flpAppId) {
|
|
81
80
|
const flpTarget = useVirtualPreviewEndpoints ? 'flp' : 'flpSandbox';
|
|
82
|
-
const htmlTarget =
|
|
81
|
+
const htmlTarget = `test/${flpTarget}.html#${flpAppId}`;
|
|
83
82
|
return {
|
|
84
83
|
htmlTarget
|
|
85
84
|
};
|
|
@@ -202,7 +201,6 @@ async function generate(basePath, data, fs, log) {
|
|
|
202
201
|
fs.writeJSON(packagePath, packageJson);
|
|
203
202
|
if (addTest) {
|
|
204
203
|
const opaConfig = getOpaConfig({
|
|
205
|
-
generateIndex: feApp.appOptions?.generateIndex,
|
|
206
204
|
useVirtualPreviewEndpoints: feApp.appOptions?.useVirtualPreviewEndpoints
|
|
207
205
|
}, feApp.app.flpAppId);
|
|
208
206
|
(0, ui5_test_writer_1.generateOPAFiles)(basePath, opaConfig, 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.7.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@sap-ux/fe-fpm-writer": "0.38.2",
|
|
33
33
|
"@sap-ux/ui5-config": "0.29.3",
|
|
34
34
|
"@sap-ux/ui5-test-writer": "0.7.22",
|
|
35
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
36
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
37
|
-
"@sap-ux/
|
|
38
|
-
"@sap-ux/
|
|
35
|
+
"@sap-ux/fiori-generator-shared": "0.13.12",
|
|
36
|
+
"@sap-ux/cap-config-writer": "0.12.3",
|
|
37
|
+
"@sap-ux/logger": "0.7.0",
|
|
38
|
+
"@sap-ux/annotation-generator": "0.3.55"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/ejs": "3.1.2",
|