@sap-ux/cf-deploy-config-writer 0.3.2 → 0.3.4
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/cf-writer/app-config.js +5 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +3 -2
- package/package.json +3 -3
|
@@ -341,7 +341,11 @@ async function updateHTML5AppPackage(cfConfig, fs) {
|
|
|
341
341
|
// Added for all flows
|
|
342
342
|
await (0, project_access_1.updatePackageScript)(cfConfig.appPath, 'build:cf', constants_1.UI5DeployBuildScript, fs);
|
|
343
343
|
await (0, utils_1.addCommonPackageDependencies)(cfConfig.appPath, fs);
|
|
344
|
-
//
|
|
344
|
+
// Add support for CDS compatible applications which rely on `build` as the default script
|
|
345
|
+
if (cfConfig.isCap) {
|
|
346
|
+
await (0, project_access_1.updatePackageScript)(cfConfig.appPath, 'build', constants_1.UI5DeployBuildScriptForCap, fs);
|
|
347
|
+
}
|
|
348
|
+
// Scripts should only be added if mta and UI5 app is at the same level
|
|
345
349
|
if (cfConfig.mtaPath && !cfConfig.isMtaRoot) {
|
|
346
350
|
await (0, project_access_1.updatePackageScript)(cfConfig.appPath, 'build:mta', constants_1.MTABuildScript, fs);
|
|
347
351
|
await (0, project_access_1.updatePackageScript)(cfConfig.appPath, 'deploy', (0, constants_1.appDeployMTAScript)(deployArgs), fs);
|
package/dist/constants.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export declare const HTMLAppBuildParams: {
|
|
|
111
111
|
commands: string[];
|
|
112
112
|
'supported-platforms': never[];
|
|
113
113
|
};
|
|
114
|
+
export declare const UI5DeployBuildScriptForCap = "npm run build:cf";
|
|
114
115
|
export declare const UI5DeployBuildScript = "ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateCachebusterInfo";
|
|
115
116
|
export declare const MTABuildScript = "rimraf resources mta_archives && mbt build";
|
|
116
117
|
export declare const appDeployMTAScript: (args: string[]) => string;
|
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MTABinNotFound = void 0;
|
|
3
|
+
exports.undeployMTAScript = exports.rootDeployMTAScript = exports.appDeployMTAScript = exports.MTABuildScript = exports.UI5DeployBuildScript = exports.UI5DeployBuildScriptForCap = exports.HTMLAppBuildParams = exports.ServiceAPIRequires = exports.DestinationServiceConfig = exports.UI5StandaloneModuleDestination = exports.UI5ResourceDestination = exports.CAPAppfrontDestination = exports.UI5AppfrontDestinationParameter = exports.UI5Destination = exports.MTAAPIDestination = exports.CDSDestinationService = exports.CDSHTML5RepoService = exports.CDSXSUAAService = exports.CDSAddMtaParams = exports.UI5PackageVersion = exports.UI5Package = exports.UI5TaskZipperPackageVersion = exports.UI5TaskZipperPackage = exports.MbtPackageVersion = exports.MbtPackage = exports.Rimraf = exports.RimrafVersion = exports.MTAVersion = exports.MTAPackage = exports.MTAExecutable = exports.CDSPackage = exports.CDSDKPackage = exports.CDSExecutable = exports.enableParallelDeployments = exports.deployMode = exports.CloudFoundry = exports.RouterModule = exports.MTADescription = exports.ResourceMTADestination = exports.EmptyDestination = exports.DefaultMTADestination = exports.SRV_API = exports.HTML5RepoHost = exports.ManagedDestination = exports.ManagedAppFront = exports.ManagedXSUAA = exports.DefaultServiceURL = exports.MTABuildParams = exports.MTABuildResult = exports.WelcomeFile = void 0;
|
|
4
|
+
exports.MTABinNotFound = exports.CDSBinNotFound = void 0;
|
|
5
5
|
const i18n_1 = require("./i18n");
|
|
6
6
|
exports.WelcomeFile = 'welcomeFile';
|
|
7
7
|
exports.MTABuildResult = 'build-result';
|
|
@@ -106,6 +106,7 @@ exports.HTMLAppBuildParams = {
|
|
|
106
106
|
commands: ['npm install', 'npm run build:cf'],
|
|
107
107
|
'supported-platforms': []
|
|
108
108
|
};
|
|
109
|
+
exports.UI5DeployBuildScriptForCap = 'npm run build:cf';
|
|
109
110
|
exports.UI5DeployBuildScript = 'ui5 build preload --clean-dest --config ui5-deploy.yaml --include-task=generateCachebusterInfo';
|
|
110
111
|
exports.MTABuildScript = 'rimraf resources mta_archives && mbt build';
|
|
111
112
|
const appDeployMTAScript = (args) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-writer",
|
|
3
3
|
"description": "Add or amend Cloud Foundry and ABAP deployment configuration for SAP projects",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"mem-fs": "2.1.0",
|
|
30
30
|
"mem-fs-editor": "9.4.0",
|
|
31
31
|
"hasbin": "1.2.3",
|
|
32
|
-
"@sap-ux/project-access": "1.30.2",
|
|
33
32
|
"@sap-ux/yaml": "0.17.0",
|
|
33
|
+
"@sap-ux/project-access": "1.30.2",
|
|
34
34
|
"@sap-ux/btp-utils": "1.1.0",
|
|
35
35
|
"@sap-ux/logger": "0.7.0",
|
|
36
36
|
"@sap-ux/ui5-config": "0.28.2",
|
|
37
|
-
"@sap-ux/nodejs-utils": "0.2.
|
|
37
|
+
"@sap-ux/nodejs-utils": "0.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/ejs": "3.1.2",
|