@sap-ux/adp-tooling 0.12.84 → 0.12.87

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/types.d.ts CHANGED
@@ -468,6 +468,15 @@ export interface CustomConfig {
468
468
  support: ToolsSupport;
469
469
  };
470
470
  }
471
+ export type CloudCustomTaskConfigTarget = DestinationAbapTarget | (Pick<UrlAbapTarget, 'url' | 'client' | 'scp' | 'authenticationType'> & {
472
+ ignoreCertErrors?: boolean;
473
+ });
474
+ export interface CloudCustomTaskConfig {
475
+ type: string;
476
+ appName: string | undefined;
477
+ languages: Language[];
478
+ target: AbapTarget;
479
+ }
471
480
  export interface InboundChangeContentAddInboundId {
472
481
  inbound: {
473
482
  [inboundId: string]: AddInboundModel;
@@ -6,6 +6,7 @@ exports.enhanceUI5YamlWithCustomConfig = enhanceUI5YamlWithCustomConfig;
6
6
  exports.hasDeployConfig = hasDeployConfig;
7
7
  exports.enhanceUI5DeployYaml = enhanceUI5DeployYaml;
8
8
  exports.enhanceManifestChangeContentWithFlpConfig = enhanceManifestChangeContentWithFlpConfig;
9
+ const VSCODE_URL = 'https://REQUIRED_FOR_VSCODE.example';
9
10
  /**
10
11
  * Generate the configuration for the middlewares required for the ui5.yaml.
11
12
  *
@@ -68,7 +69,7 @@ function enhanceUI5DeployYaml(ui5Config, config) {
68
69
  */
69
70
  function addFioriToolsMiddlewares(ui5Config, config) {
70
71
  const backendConfig = { ...config.target };
71
- backendConfig.url ??= 'https://REQUIRED_FOR_VSCODE.example';
72
+ backendConfig.url ??= VSCODE_URL;
72
73
  backendConfig.path = '/sap';
73
74
  ui5Config.addFioriToolsAppReloadMiddleware();
74
75
  ui5Config.addCustomMiddleware([
@@ -152,21 +153,36 @@ function addOpenSourceMiddlewares(ui5Config, config) {
152
153
  * @returns list of required tasks.
153
154
  */
154
155
  function getAdpCloudCustomTasks(config) {
156
+ let target;
157
+ if (config?.target?.destination) {
158
+ target = {
159
+ destination: config.target.destination,
160
+ url: config.target?.url ?? VSCODE_URL
161
+ };
162
+ }
163
+ else {
164
+ target = {
165
+ url: config.target.url ?? VSCODE_URL,
166
+ authenticationType: config.target.authenticationType,
167
+ ignoreCertErrors: false
168
+ };
169
+ }
170
+ const configuration = {
171
+ type: 'abap',
172
+ appName: config?.app?.bspName,
173
+ languages: config?.app?.languages?.map((language) => {
174
+ return {
175
+ sap: language.sap,
176
+ i18n: language.i18n
177
+ };
178
+ }),
179
+ target
180
+ };
155
181
  return [
156
182
  {
157
183
  name: 'app-variant-bundler-build',
158
184
  beforeTask: 'escapeNonAsciiCharacters',
159
- configuration: {
160
- type: 'abap',
161
- destination: config.target?.destination,
162
- appName: config?.app?.bspName,
163
- languages: config?.app?.languages?.map((language) => {
164
- return {
165
- sap: language.sap,
166
- i18n: language.i18n
167
- };
168
- })
169
- }
185
+ configuration
170
186
  }
171
187
  ];
172
188
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
11
11
  },
12
- "version": "0.12.84",
12
+ "version": "0.12.87",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -34,12 +34,12 @@
34
34
  "uuid": "10.0.0",
35
35
  "@sap-ux/axios-extension": "1.17.4",
36
36
  "@sap-ux/btp-utils": "0.17.0",
37
- "@sap-ux/inquirer-common": "0.5.4",
37
+ "@sap-ux/inquirer-common": "0.5.5",
38
38
  "@sap-ux/logger": "0.6.0",
39
- "@sap-ux/project-access": "1.28.7",
40
- "@sap-ux/project-input-validator": "0.3.3",
39
+ "@sap-ux/project-access": "1.28.8",
40
+ "@sap-ux/project-input-validator": "0.3.4",
41
41
  "@sap-ux/system-access": "0.5.19",
42
- "@sap-ux/ui5-config": "0.25.2"
42
+ "@sap-ux/ui5-config": "0.26.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/adm-zip": "0.5.5",
@@ -21,8 +21,8 @@
21
21
  "build": "ui5 build --exclude-task generateFlexChangesBundle generateComponentPreload minify --clean-dest",
22
22
  "start": "<%= locals.options?.fioriTools ? 'fiori run' : 'ui5 serve' %> --open /test/flp.html#app-preview",
23
23
  "start-editor": "<%= locals.options?.fioriTools ? 'fiori run' : 'ui5 serve' %> --open /test/adaptation-editor.html"<%if (locals.deploy) {%>,
24
- "deploy": "ui5 build --config ui5-deploy.yaml --exclude-task <%= locals.options?.fioriTools ? 'deploy-to-abap' : 'abap-deploy-task' %> generateFlexChangesBundle generateComponentPreload --clean-dest && <%= locals.options?.fioriTools ? 'fiori deploy' : 'deploy' %> --config ui5-deploy.yaml",
25
- "undeploy": "<%= locals.options?.fioriTools ? 'fiori undeploy' : 'undeploy' %> --config ui5-deploy.yaml --lrep \"apps/<%= app.reference %>/appVariants/<%= app.id %>/\"",
24
+ "deploy": "npm run build && <%= locals.options?.fioriTools ? 'fiori deploy' : 'deploy' %> --config ui5-deploy.yaml",
25
+ "undeploy": "npm run build && <%= locals.options?.fioriTools ? 'fiori undeploy' : 'undeploy' %> --config ui5-deploy.yaml",
26
26
  "deploy-test": "npm run build && fiori deploy --config ui5-deploy.yaml --testMode true"<%}%>
27
27
  }
28
28
  }