@sap-ux/fiori-elements-writer 0.7.0 → 0.7.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 +1 -1
- package/dist/types.d.ts +8 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ function generate(basePath, data, fs) {
|
|
|
97
97
|
manifestSettings_1.extendManifestJson(fs, basePath, rootTemplatesPath, feApp);
|
|
98
98
|
const packageJson = JSON.parse(fs.read(packagePath));
|
|
99
99
|
// Add tests only if v4, for now, and we have metadata (and therefore a mock server config)
|
|
100
|
-
const addTest = !!feApp.
|
|
100
|
+
const addTest = !!feApp.appOptions.addTests && ((_g = feApp.service) === null || _g === void 0 ? void 0 : _g.version) === odata_service_writer_1.OdataVersion.v4 && !!((_h = feApp.service) === null || _h === void 0 ? void 0 : _h.metadata);
|
|
101
101
|
packageJson.scripts = Object.assign(packageJson.scripts, Object.assign({}, packageConfig_1.getPackageJsonTasks({
|
|
102
102
|
localOnly: !((_j = feApp.service) === null || _j === void 0 ? void 0 : _j.url),
|
|
103
103
|
addMock: !!((_k = feApp.service) === null || _k === void 0 ? void 0 : _k.metadata),
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Ui5App, App } from '@sap-ux/ui5-application-writer';
|
|
1
|
+
import type { Ui5App, App, AppOptions } from '@sap-ux/ui5-application-writer';
|
|
2
2
|
import type { OdataService } from '@sap-ux/odata-service-writer';
|
|
3
3
|
export declare enum TemplateType {
|
|
4
4
|
Worklist = "worklist",
|
|
@@ -78,16 +78,18 @@ export interface FioriApp extends App {
|
|
|
78
78
|
* Use the specified app id when generating the test Fiori launch pad config
|
|
79
79
|
*/
|
|
80
80
|
flpAppId?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Generate OPA based tests, if applicable to the specified template.
|
|
83
|
-
* This will eventually move to {@link Ui5App.appOptions}
|
|
84
|
-
*/
|
|
85
|
-
addTests?: boolean;
|
|
86
81
|
}
|
|
87
82
|
export interface FioriElementsApp<T> extends Ui5App {
|
|
88
83
|
template: Template<T>;
|
|
89
84
|
service: Omit<OdataService, 'model'>;
|
|
90
85
|
app: FioriApp;
|
|
86
|
+
appOptions: Partial<AppOptions> & {
|
|
87
|
+
/**
|
|
88
|
+
* Generate OPA based tests, if applicable to the specified template.
|
|
89
|
+
* This will eventually move up to {@link Ui5App.appOptions}
|
|
90
|
+
*/
|
|
91
|
+
addTests?: boolean;
|
|
92
|
+
};
|
|
91
93
|
}
|
|
92
94
|
export { OdataVersion } from '@sap-ux/odata-service-writer';
|
|
93
95
|
//# sourceMappingURL=types.d.ts.map
|
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.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-ux/odata-service-writer": "0.14.7",
|
|
24
|
-
"@sap-ux/ui5-application-writer": "0.17.
|
|
25
|
-
"@sap-ux/fe-fpm-writer": "0.17.
|
|
24
|
+
"@sap-ux/ui5-application-writer": "0.17.1",
|
|
25
|
+
"@sap-ux/fe-fpm-writer": "0.17.1",
|
|
26
26
|
"@sap-ux/ui5-config": "0.15.0",
|
|
27
27
|
"@sap-ux/ui5-test-writer": "0.1.1",
|
|
28
28
|
"ejs": "3.1.7",
|