@sap-ux/ui5-application-inquirer 0.15.52 → 0.16.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/prompts/index.js
CHANGED
|
@@ -52,7 +52,6 @@ async function getQuestions(ui5Versions, promptOptions, capCdsInfo, isYUI = fals
|
|
|
52
52
|
[types_1.promptNames.showAdvanced]: (0, prompts2_1.getShowAdvancedPrompt)(),
|
|
53
53
|
[types_1.promptNames.ui5Theme]: (0, prompts2_1.getUI5ThemePrompt)(),
|
|
54
54
|
[types_1.promptNames.enableEslint]: (0, prompts2_1.getEnableEsLintPrompt)(),
|
|
55
|
-
[types_1.promptNames.enableCodeAssist]: (0, prompts2_1.getEnableCodeAssistPrompt)(),
|
|
56
55
|
[types_1.promptNames.skipAnnotations]: (0, prompts2_1.getSkipAnnotationsPrompt)()
|
|
57
56
|
};
|
|
58
57
|
// Hide not applicable prompts based on passed options or if this is a CAP project
|
|
@@ -17,12 +17,6 @@ export declare function getUI5ThemePrompt(): UI5ApplicationQuestion;
|
|
|
17
17
|
* @returns The `enableEslint` prompt
|
|
18
18
|
*/
|
|
19
19
|
export declare function getEnableEsLintPrompt(): UI5ApplicationQuestion;
|
|
20
|
-
/**
|
|
21
|
-
* Get the `enableCodeAssist` prompt.
|
|
22
|
-
*
|
|
23
|
-
* @returns The `enableCodeAssist` prompt
|
|
24
|
-
*/
|
|
25
|
-
export declare function getEnableCodeAssistPrompt(): UI5ApplicationQuestion;
|
|
26
20
|
/**
|
|
27
21
|
* Get the `skipAnnotations` prompt. Skipping annotation generation can be useful for CAP projects
|
|
28
22
|
* where annotations may have been already created along with the service.
|
package/dist/prompts/prompts2.js
CHANGED
|
@@ -3,13 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getShowAdvancedPrompt = getShowAdvancedPrompt;
|
|
4
4
|
exports.getUI5ThemePrompt = getUI5ThemePrompt;
|
|
5
5
|
exports.getEnableEsLintPrompt = getEnableEsLintPrompt;
|
|
6
|
-
exports.getEnableCodeAssistPrompt = getEnableCodeAssistPrompt;
|
|
7
6
|
exports.getSkipAnnotationsPrompt = getSkipAnnotationsPrompt;
|
|
8
7
|
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
9
8
|
const ui5_info_1 = require("@sap-ux/ui5-info");
|
|
10
9
|
const i18n_1 = require("../i18n");
|
|
11
10
|
const types_1 = require("../types");
|
|
12
|
-
const prompt_helpers_1 = require("./prompt-helpers");
|
|
13
11
|
/**
|
|
14
12
|
* Get the `showAdvanced` prompt.
|
|
15
13
|
*
|
|
@@ -63,23 +61,6 @@ function getEnableEsLintPrompt() {
|
|
|
63
61
|
}
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
|
-
/**
|
|
67
|
-
* Get the `enableCodeAssist` prompt.
|
|
68
|
-
*
|
|
69
|
-
* @returns The `enableCodeAssist` prompt
|
|
70
|
-
*/
|
|
71
|
-
function getEnableCodeAssistPrompt() {
|
|
72
|
-
return {
|
|
73
|
-
when: (answers) => (0, prompt_helpers_1.isVersionIncluded)(answers?.ui5Version || ui5_info_1.defaultVersion, ui5_info_1.minUi5VersionSupportingCodeAssist),
|
|
74
|
-
type: 'confirm',
|
|
75
|
-
name: types_1.promptNames.enableCodeAssist,
|
|
76
|
-
message: (0, i18n_1.t)('prompts.enableCodeAssist.message'),
|
|
77
|
-
default: false,
|
|
78
|
-
guiOptions: {
|
|
79
|
-
breadcrumb: (0, i18n_1.t)('prompts.enableCodeAssist.breadcrumb')
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
64
|
/**
|
|
84
65
|
* Get the `skipAnnotations` prompt. Skipping annotation generation can be useful for CAP projects
|
|
85
66
|
* where annotations may have been already created along with the service.
|
|
@@ -57,10 +57,6 @@
|
|
|
57
57
|
"message": "Add ESLint Configuration to the Project",
|
|
58
58
|
"breadcrumb": "ESLint"
|
|
59
59
|
},
|
|
60
|
-
"enableCodeAssist": {
|
|
61
|
-
"message": "Add Code Assist Libraries to your Project",
|
|
62
|
-
"breadcrumb": "Code Assist"
|
|
63
|
-
},
|
|
64
60
|
"skipAnnotations": {
|
|
65
61
|
"message": "Skip Generation of Associated `annotations.cds` File",
|
|
66
62
|
"breadcrumb": "Skip Annotations"
|
package/dist/types.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export interface UI5ApplicationAnswers {
|
|
|
11
11
|
addFlpConfig?: boolean;
|
|
12
12
|
ui5Theme?: string;
|
|
13
13
|
enableEslint?: boolean;
|
|
14
|
-
enableCodeAssist?: boolean;
|
|
15
14
|
skipAnnotations?: boolean;
|
|
16
15
|
enableTypeScript?: boolean;
|
|
17
16
|
enableVirtualEndpoints?: boolean;
|
|
@@ -50,7 +49,6 @@ export declare enum promptNames {
|
|
|
50
49
|
addFlpConfig = "addFlpConfig",
|
|
51
50
|
ui5Theme = "ui5Theme",
|
|
52
51
|
enableEslint = "enableEslint",
|
|
53
|
-
enableCodeAssist = "enableCodeAssist",
|
|
54
52
|
skipAnnotations = "skipAnnotations",
|
|
55
53
|
enableTypeScript = "enableTypeScript",
|
|
56
54
|
enableVirtualEndpoints = "enableVirtualEndpoints",
|
|
@@ -114,13 +112,13 @@ export type AddDeployPromptOptions = Omit<UI5ApplicationCommonPromptOptions, 'hi
|
|
|
114
112
|
/**
|
|
115
113
|
* These are boolean value prompt option keys
|
|
116
114
|
*/
|
|
117
|
-
type booleanPromptKeys = 'addDeployConfig' | 'addFlpConfig' | 'enableVirtualEndpoints' | 'enableEslint' | 'skipAnnotations' | 'enableTypeScript' | '
|
|
115
|
+
type booleanPromptKeys = 'addDeployConfig' | 'addFlpConfig' | 'enableVirtualEndpoints' | 'enableEslint' | 'skipAnnotations' | 'enableTypeScript' | 'showAdvanced';
|
|
118
116
|
type stringValuePromptType = Omit<typeof promptNames, booleanPromptKeys>;
|
|
119
117
|
type stringValuePrompts = stringValuePromptType[keyof stringValuePromptType];
|
|
120
118
|
type booleanValuePromptType = Pick<typeof promptNames, booleanPromptKeys>;
|
|
121
119
|
type booleanValuePrompts = booleanValuePromptType[keyof booleanValuePromptType];
|
|
122
120
|
type DefaultValueInputPrompts = promptNames.name | promptNames.description | promptNames.namespace | promptNames.ui5Version | promptNames.targetFolder;
|
|
123
|
-
type DefaultValueConfirmPrompts = promptNames.enableTypeScript | promptNames.
|
|
121
|
+
type DefaultValueConfirmPrompts = promptNames.enableTypeScript | promptNames.enableEslint | promptNames.skipAnnotations | promptNames.addDeployConfig;
|
|
124
122
|
/**
|
|
125
123
|
* Defines prompt/question default values and/or whether or not they should be shown.
|
|
126
124
|
*/
|
package/dist/types.js
CHANGED
|
@@ -35,7 +35,6 @@ var promptNames;
|
|
|
35
35
|
promptNames["addFlpConfig"] = "addFlpConfig";
|
|
36
36
|
promptNames["ui5Theme"] = "ui5Theme";
|
|
37
37
|
promptNames["enableEslint"] = "enableEslint";
|
|
38
|
-
promptNames["enableCodeAssist"] = "enableCodeAssist";
|
|
39
38
|
promptNames["skipAnnotations"] = "skipAnnotations";
|
|
40
39
|
promptNames["enableTypeScript"] = "enableTypeScript";
|
|
41
40
|
promptNames["enableVirtualEndpoints"] = "enableVirtualEndpoints";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui5-application-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for UI5 application writing",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
24
24
|
"lodash": "4.17.21",
|
|
25
25
|
"semver": "7.5.4",
|
|
26
|
-
"@sap-ux/inquirer-common": "0.10.
|
|
26
|
+
"@sap-ux/inquirer-common": "0.10.5",
|
|
27
27
|
"@sap-ux/project-access": "1.33.0",
|
|
28
28
|
"@sap-ux/project-input-validator": "0.6.40",
|
|
29
|
-
"@sap-ux/ui5-info": "0.13.
|
|
29
|
+
"@sap-ux/ui5-info": "0.13.7"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/lodash": "4.14.202",
|
|
36
36
|
"@types/semver": "7.5.4",
|
|
37
37
|
"inquirer": "8.2.7",
|
|
38
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
38
|
+
"@sap-ux/cap-config-writer": "0.12.39"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=20.x"
|