@sap-ux/fiori-app-sub-generator 0.8.8 → 0.9.1
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/generators/app-headless/transforms.js +0 -1
- package/generators/fiori-app-generator/fioriAppGenerator.js +0 -2
- package/generators/fiori-app-generator/install.d.ts +1 -4
- package/generators/fiori-app-generator/install.js +1 -15
- package/generators/fiori-app-generator/prompting.js +3 -1
- package/generators/fiori-app-generator/transforms.js +0 -1
- package/generators/fiori-app-generator/writing.js +0 -1
- package/generators/types/state.d.ts +1 -0
- package/generators/types/telemetryEvents.d.ts +0 -1
- package/package.json +14 -14
|
@@ -106,7 +106,6 @@ function _setProjectDefaults(project) {
|
|
|
106
106
|
localUI5Version: project.localUI5Version ?? ui5Version,
|
|
107
107
|
ui5Theme: project.ui5Theme ?? (0, ui5_info_1.getDefaultUI5Theme)(ui5Version),
|
|
108
108
|
skipAnnotations: project.skipAnnotations || types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.skipAnnotations],
|
|
109
|
-
enableCodeAssist: project.enableCodeAssist || types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.enableCodeAssist],
|
|
110
109
|
enableEslint: project.enableEslint || types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.enableEslint],
|
|
111
110
|
enableTypeScript: project.enableTypeScript || types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.enableTypeScript],
|
|
112
111
|
sapux: project.sapux || false,
|
|
@@ -264,7 +264,6 @@ class FioriAppGenerator extends yeoman_generator_1.default {
|
|
|
264
264
|
AppGenBusinessHubType: (0, utils_1.getTelemetryBusinessHubType)(service.apiHubConfig?.apiHubType),
|
|
265
265
|
EnableEslint: project.enableEslint,
|
|
266
266
|
EnableTypeScript: project.enableTypeScript,
|
|
267
|
-
EnableCodeAssist: project.enableCodeAssist,
|
|
268
267
|
EnableVirtualEndpoints: project.enableVirtualEndpoints,
|
|
269
268
|
ToolsId: appConfig.app.sourceTemplate?.toolsId
|
|
270
269
|
});
|
|
@@ -285,7 +284,6 @@ class FioriAppGenerator extends yeoman_generator_1.default {
|
|
|
285
284
|
await (0, install_1.installDependencies)({
|
|
286
285
|
appPackagePath: this.destinationPath(),
|
|
287
286
|
capService: this.state.service.capService,
|
|
288
|
-
enableCodeAssist: this.state.project?.enableCodeAssist ?? false,
|
|
289
287
|
// Assumption that npm workspaces will be enabled if cds ui5 plugin is a depenedency
|
|
290
288
|
useNpmWorkspaces: !!(this.state.project.enableTypeScript || // If typescript is enabled, it is required that the CAP project will be updated to use NPM workspaces
|
|
291
289
|
this.state.service.capService?.cdsUi5PluginInfo?.isCdsUi5PluginEnabled ||
|
|
@@ -5,7 +5,6 @@ import { type ILogWrapper } from '@sap-ux/fiori-generator-shared';
|
|
|
5
5
|
*/
|
|
6
6
|
export type CapInstallOptions = {
|
|
7
7
|
ui5Version?: string;
|
|
8
|
-
codeAssist?: boolean;
|
|
9
8
|
rootPath?: string;
|
|
10
9
|
depsInstallPath?: string;
|
|
11
10
|
useWorkspaces?: boolean;
|
|
@@ -18,16 +17,14 @@ export type CapInstallOptions = {
|
|
|
18
17
|
* @param param0
|
|
19
18
|
* @param param0.appPackagePath
|
|
20
19
|
* @param param0.capService
|
|
21
|
-
* @param param0.enableCodeAssist
|
|
22
20
|
* @param param0.useNpmWorkspaces
|
|
23
21
|
* @param param0.ui5Version
|
|
24
22
|
* @param logger The logger to use for output
|
|
25
23
|
* @returns Promise<void>
|
|
26
24
|
*/
|
|
27
|
-
export declare function installDependencies({ appPackagePath, capService,
|
|
25
|
+
export declare function installDependencies({ appPackagePath, capService, useNpmWorkspaces, ui5Version }: {
|
|
28
26
|
appPackagePath: string;
|
|
29
27
|
capService?: CapService;
|
|
30
|
-
enableCodeAssist: boolean;
|
|
31
28
|
useNpmWorkspaces: boolean;
|
|
32
29
|
ui5Version: string;
|
|
33
30
|
}, logger: ILogWrapper): Promise<void>;
|
|
@@ -3,15 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.installDependencies = installDependencies;
|
|
4
4
|
const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
/**
|
|
7
|
-
* The dependencies required for code assist for the root CAP project package.json.
|
|
8
|
-
* These are not written to the `app` package.json by the `@sap-ux/ui5-application-writer`, as is done for non-CAP projects.
|
|
9
|
-
*/
|
|
10
|
-
const codeAssistDeps = {
|
|
11
|
-
eslint: '7.32.0',
|
|
12
|
-
'@sap/eslint-plugin-ui5-jsdocs': '2.0.5',
|
|
13
|
-
'@sapui5/ts-types': '1.92.2'
|
|
14
|
-
};
|
|
15
6
|
/**
|
|
16
7
|
* Install the dependencies for the specified project. In the case of CAP projects, the dependencies are installed to the root project
|
|
17
8
|
* if npm workspace option is used, otherwise they are installed to the app project only.
|
|
@@ -24,9 +15,6 @@ async function installProjectDependencies(projectPath, log, capOptions) {
|
|
|
24
15
|
const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
25
16
|
const runner = new utils_1.CommandRunner(log);
|
|
26
17
|
const runArgs = [];
|
|
27
|
-
if (capOptions?.codeAssist) {
|
|
28
|
-
runArgs.push(...Object.keys(codeAssistDeps).map((dep) => `${dep}@${codeAssistDeps[dep]}`));
|
|
29
|
-
}
|
|
30
18
|
runArgs.unshift('install');
|
|
31
19
|
try {
|
|
32
20
|
log?.info((0, utils_1.t)('logMessages.installingDependencies', { path: projectPath }));
|
|
@@ -56,18 +44,16 @@ async function installProjectDependencies(projectPath, log, capOptions) {
|
|
|
56
44
|
* @param param0
|
|
57
45
|
* @param param0.appPackagePath
|
|
58
46
|
* @param param0.capService
|
|
59
|
-
* @param param0.enableCodeAssist
|
|
60
47
|
* @param param0.useNpmWorkspaces
|
|
61
48
|
* @param param0.ui5Version
|
|
62
49
|
* @param logger The logger to use for output
|
|
63
50
|
* @returns Promise<void>
|
|
64
51
|
*/
|
|
65
|
-
async function installDependencies({ appPackagePath, capService,
|
|
52
|
+
async function installDependencies({ appPackagePath, capService, useNpmWorkspaces, ui5Version }, logger) {
|
|
66
53
|
// Install additional libs to root CAP project
|
|
67
54
|
let capInstallOpts;
|
|
68
55
|
if (capService) {
|
|
69
56
|
capInstallOpts = {
|
|
70
|
-
codeAssist: enableCodeAssist,
|
|
71
57
|
rootPath: capService.projectPath,
|
|
72
58
|
// if NPM workspaces are used, depsInstallPath will be the CAP projectpackage.json. Otherwise the CAP app package.json.
|
|
73
59
|
depsInstallPath: useNpmWorkspaces ? capService.projectPath : appPackagePath,
|
|
@@ -211,6 +211,9 @@ async function createUI5ApplicationPromptOptions(ui5PromptOptions) {
|
|
|
211
211
|
[ui5_application_inquirer_1.promptNames.enableTypeScript]: {
|
|
212
212
|
default: types_1.defaultPromptValues[ui5_application_inquirer_1.promptNames.enableTypeScript]
|
|
213
213
|
},
|
|
214
|
+
[ui5_application_inquirer_1.promptNames.enableCodeAssist]: {
|
|
215
|
+
hide: true
|
|
216
|
+
},
|
|
214
217
|
[ui5_application_inquirer_1.promptNames.enableVirtualEndpoints]: {
|
|
215
218
|
hide: service.capService?.capType === 'Java'
|
|
216
219
|
}
|
|
@@ -218,7 +221,6 @@ async function createUI5ApplicationPromptOptions(ui5PromptOptions) {
|
|
|
218
221
|
const promptOptions = (0, merge_1.default)(preMergedPromptOpts, promptSettings);
|
|
219
222
|
// Configure the prompts which should be hidden behind the advanced option switch
|
|
220
223
|
const advancedPrompts = [
|
|
221
|
-
ui5_application_inquirer_1.promptNames.enableCodeAssist,
|
|
222
224
|
ui5_application_inquirer_1.promptNames.skipAnnotations,
|
|
223
225
|
ui5_application_inquirer_1.promptNames.enableEslint,
|
|
224
226
|
ui5_application_inquirer_1.promptNames.ui5Theme
|
|
@@ -276,7 +276,6 @@ function getBaseAppConfig({ project, service, floorplan, entityRelatedConfig, vi
|
|
|
276
276
|
ui5Libs: []
|
|
277
277
|
},
|
|
278
278
|
appOptions: {
|
|
279
|
-
codeAssist: project.enableCodeAssist,
|
|
280
279
|
eslint: project.enableEslint,
|
|
281
280
|
typescript: project.enableTypeScript,
|
|
282
281
|
sapux: project.sapux,
|
|
@@ -69,7 +69,6 @@ async function writeAppGenInfoFiles({ project, service, floorplan, entityRelated
|
|
|
69
69
|
appNamespace: project.namespace ?? '',
|
|
70
70
|
ui5Theme: project.ui5Theme,
|
|
71
71
|
ui5Version: appGenInfoCustom?.ui5Version || project.manifestMinUI5Version || project.ui5Version,
|
|
72
|
-
enableCodeAssist: project.enableCodeAssist,
|
|
73
72
|
enableEslint: project.enableEslint,
|
|
74
73
|
enableTypeScript: project.enableTypeScript,
|
|
75
74
|
showMockDataInfo: !!service.edmx && !service.capService,
|
|
@@ -22,6 +22,7 @@ export interface Project {
|
|
|
22
22
|
localUI5Version: string;
|
|
23
23
|
sapux?: boolean;
|
|
24
24
|
skipAnnotations?: boolean;
|
|
25
|
+
/** @deprecated Code assist prompt is hidden and this property is no longer used */
|
|
25
26
|
enableCodeAssist?: boolean;
|
|
26
27
|
enableEslint?: boolean;
|
|
27
28
|
enableTypeScript?: boolean;
|
|
@@ -19,7 +19,6 @@ export interface AppGenEventProperties extends TelemetryProperties {
|
|
|
19
19
|
*/
|
|
20
20
|
AppGenSapSystemType: TelemetrySapSystemType;
|
|
21
21
|
EnableEslint: boolean;
|
|
22
|
-
EnableCodeAssist: boolean;
|
|
23
22
|
AppGenLaunchSource: LaunchSource;
|
|
24
23
|
/**
|
|
25
24
|
* Version of the module which launches the generator
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-app-sub-generator",
|
|
3
3
|
"description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"!generators/**/*.map"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
22
|
+
"@sap-ux/annotation-converter": "0.10.8",
|
|
23
23
|
"@sap-ux/edmx-parser": "0.9.1",
|
|
24
24
|
"@sap/service-provider-apis": "2.5.1",
|
|
25
25
|
"i18next": "25.3.0",
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"mem-fs-editor": "9.4.0",
|
|
30
30
|
"uuid": "11.0.5",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
|
+
"@sap-ux/annotation-generator": "0.3.76",
|
|
32
33
|
"@sap-ux/axios-extension": "1.24.2",
|
|
33
|
-
"@sap-ux/
|
|
34
|
+
"@sap-ux/btp-utils": "1.1.5",
|
|
34
35
|
"@sap-ux/cap-config-writer": "0.12.25",
|
|
35
36
|
"@sap-ux/feature-toggle": "0.3.4",
|
|
36
|
-
"@sap-ux/
|
|
37
|
-
"@sap-ux/fiori-elements-writer": "2.8.4",
|
|
37
|
+
"@sap-ux/fiori-elements-writer": "2.8.5",
|
|
38
38
|
"@sap-ux/fiori-freestyle-writer": "2.5.2",
|
|
39
39
|
"@sap-ux/fiori-generator-shared": "0.13.34",
|
|
40
40
|
"@sap-ux/fiori-tools-settings": "0.2.2",
|
|
41
|
-
"@sap-ux/launch-config": "0.10.
|
|
42
|
-
"@sap-ux/
|
|
43
|
-
"@sap-ux/odata-service-inquirer": "2.11.8",
|
|
41
|
+
"@sap-ux/launch-config": "0.10.36",
|
|
42
|
+
"@sap-ux/odata-service-inquirer": "2.11.10",
|
|
44
43
|
"@sap-ux/odata-service-writer": "0.27.30",
|
|
44
|
+
"@sap-ux/project-access": "1.32.9",
|
|
45
45
|
"@sap-ux/store": "1.3.3",
|
|
46
|
-
"@sap-ux/
|
|
47
|
-
"@sap-ux/ui5-
|
|
48
|
-
"@sap-ux/
|
|
46
|
+
"@sap-ux/telemetry": "0.6.39",
|
|
47
|
+
"@sap-ux/ui5-application-inquirer": "0.15.37",
|
|
48
|
+
"@sap-ux/ui5-info": "0.13.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@sap-devx/yeoman-ui-types": "1.16.9",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"mock-spawn": "0.2.6",
|
|
63
63
|
"rimraf": "6.0.1",
|
|
64
64
|
"yeoman-test": "6.3.0",
|
|
65
|
-
"@sap-ux/deploy-config-sub-generator": "0.5.
|
|
66
|
-
"@sap-ux/flp-config-sub-generator": "0.3.
|
|
65
|
+
"@sap-ux/deploy-config-sub-generator": "0.5.7",
|
|
66
|
+
"@sap-ux/flp-config-sub-generator": "0.3.69",
|
|
67
|
+
"@sap-ux/inquirer-common": "0.9.6",
|
|
67
68
|
"@sap-ux/jest-file-matchers": "0.2.6",
|
|
68
|
-
"@sap-ux/inquirer-common": "0.9.4",
|
|
69
69
|
"@sap-ux/logger": "0.7.1"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|