@commercetools-frontend/application-cli 2.3.2 → 2.4.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/cli/dist/commercetools-frontend-application-cli-cli.cjs.dev.js +8 -4
- package/cli/dist/commercetools-frontend-application-cli-cli.cjs.prod.js +8 -4
- package/cli/dist/commercetools-frontend-application-cli-cli.esm.js +8 -4
- package/dist/commercetools-frontend-application-cli.cjs.dev.js +1 -3
- package/dist/commercetools-frontend-application-cli.cjs.prod.js +1 -3
- package/dist/commercetools-frontend-application-cli.esm.js +1 -1
- package/dist/declarations/src/constants.d.ts +0 -8
- package/dist/declarations/src/types.d.ts +1 -1
- package/dist/{storage-buckets-config-f41d07bc.esm.js → storage-buckets-config-2fc2b441.esm.js} +14 -16
- package/dist/{storage-buckets-config-8e7abeff.cjs.dev.js → storage-buckets-config-91932b24.cjs.dev.js} +13 -17
- package/dist/{storage-buckets-config-e092f613.cjs.prod.js → storage-buckets-config-b6d36938.cjs.prod.js} +13 -17
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instan
|
|
|
18
18
|
var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
19
19
|
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
20
20
|
var _flatMapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flat-map');
|
|
21
|
-
var storageBucketsConfig = require('../../dist/storage-buckets-config-
|
|
21
|
+
var storageBucketsConfig = require('../../dist/storage-buckets-config-91932b24.cjs.dev.js');
|
|
22
22
|
var fs = require('node:fs');
|
|
23
23
|
var path$1 = require('node:path');
|
|
24
24
|
var listr2 = require('listr2');
|
|
@@ -85,7 +85,7 @@ function isCI() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
88
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
88
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$4(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$4(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
89
89
|
function _callSuper(_this, derived, args) {
|
|
90
90
|
function isNativeReflectConstruct() {
|
|
91
91
|
if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
|
|
@@ -190,6 +190,10 @@ let StorageProvider = /*#__PURE__*/function () {
|
|
|
190
190
|
}
|
|
191
191
|
const storageProvider = storageBucketsConfig.storageProviders[tag];
|
|
192
192
|
const publicBaseUrl = (_storageProvider$urls3 = storageProvider.urls.public[_classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1]]) !== null && _storageProvider$urls3 !== void 0 ? _storageProvider$urls3 : storageProvider.urls.public.default;
|
|
193
|
+
if (!publicBaseUrl) {
|
|
194
|
+
var _context5;
|
|
195
|
+
throw new Error(_concatInstanceProperty__default["default"](_context5 = "'publicBaseUrl' is not defined for '".concat(tag, "' storage provider for ")).call(_context5, _classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1], " or as default."));
|
|
196
|
+
}
|
|
193
197
|
return publicBaseUrl;
|
|
194
198
|
}
|
|
195
199
|
}]);
|
|
@@ -418,7 +422,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
|
|
|
418
422
|
buildRevision = _ref3.buildRevision,
|
|
419
423
|
buildNumber = _ref3.buildNumber,
|
|
420
424
|
applicationIndexOutFile = _ref3.applicationIndexOutFile;
|
|
421
|
-
return _concatInstanceProperty__default["default"](_context19 = _concatInstanceProperty__default["default"](_context20 = _concatInstanceProperty__default["default"](_context21 = _concatInstanceProperty__default["default"](_context22 = _concatInstanceProperty__default["default"](_context23 = _concatInstanceProperty__default["default"](_context24 = _concatInstanceProperty__default["default"](_context25 = _concatInstanceProperty__default["default"](_context26 = _concatInstanceProperty__default["default"](_context27 = _concatInstanceProperty__default["default"](_context28 = _concatInstanceProperty__default["default"](_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --
|
|
425
|
+
return _concatInstanceProperty__default["default"](_context19 = _concatInstanceProperty__default["default"](_context20 = _concatInstanceProperty__default["default"](_context21 = _concatInstanceProperty__default["default"](_context22 = _concatInstanceProperty__default["default"](_context23 = _concatInstanceProperty__default["default"](_context24 = _concatInstanceProperty__default["default"](_context25 = _concatInstanceProperty__default["default"](_context26 = _concatInstanceProperty__default["default"](_context27 = _concatInstanceProperty__default["default"](_context28 = _concatInstanceProperty__default["default"](_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")/version.json\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --content-type=\"application/json\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context19, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n");
|
|
422
426
|
}
|
|
423
427
|
}, {
|
|
424
428
|
key: "getProductionBundlesUploadScript",
|
|
@@ -967,7 +971,7 @@ async function command(cliFlags) {
|
|
|
967
971
|
|
|
968
972
|
var pkgJson = {
|
|
969
973
|
name: "@commercetools-frontend/application-cli",
|
|
970
|
-
version: "2.
|
|
974
|
+
version: "2.4.0",
|
|
971
975
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
972
976
|
keywords: [
|
|
973
977
|
"commercetools",
|
|
@@ -18,7 +18,7 @@ var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instan
|
|
|
18
18
|
var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
19
19
|
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
20
20
|
var _flatMapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flat-map');
|
|
21
|
-
var storageBucketsConfig = require('../../dist/storage-buckets-config-
|
|
21
|
+
var storageBucketsConfig = require('../../dist/storage-buckets-config-b6d36938.cjs.prod.js');
|
|
22
22
|
var fs = require('node:fs');
|
|
23
23
|
var path$1 = require('node:path');
|
|
24
24
|
var listr2 = require('listr2');
|
|
@@ -85,7 +85,7 @@ function isCI() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
88
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
88
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$4(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$4(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
89
89
|
function _callSuper(_this, derived, args) {
|
|
90
90
|
function isNativeReflectConstruct() {
|
|
91
91
|
if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
|
|
@@ -190,6 +190,10 @@ let StorageProvider = /*#__PURE__*/function () {
|
|
|
190
190
|
}
|
|
191
191
|
const storageProvider = storageBucketsConfig.storageProviders[tag];
|
|
192
192
|
const publicBaseUrl = (_storageProvider$urls3 = storageProvider.urls.public[_classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1]]) !== null && _storageProvider$urls3 !== void 0 ? _storageProvider$urls3 : storageProvider.urls.public.default;
|
|
193
|
+
if (!publicBaseUrl) {
|
|
194
|
+
var _context5;
|
|
195
|
+
throw new Error(_concatInstanceProperty__default["default"](_context5 = "'publicBaseUrl' is not defined for '".concat(tag, "' storage provider for ")).call(_context5, _classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1], " or as default."));
|
|
196
|
+
}
|
|
193
197
|
return publicBaseUrl;
|
|
194
198
|
}
|
|
195
199
|
}]);
|
|
@@ -418,7 +422,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
|
|
|
418
422
|
buildRevision = _ref3.buildRevision,
|
|
419
423
|
buildNumber = _ref3.buildNumber,
|
|
420
424
|
applicationIndexOutFile = _ref3.applicationIndexOutFile;
|
|
421
|
-
return _concatInstanceProperty__default["default"](_context19 = _concatInstanceProperty__default["default"](_context20 = _concatInstanceProperty__default["default"](_context21 = _concatInstanceProperty__default["default"](_context22 = _concatInstanceProperty__default["default"](_context23 = _concatInstanceProperty__default["default"](_context24 = _concatInstanceProperty__default["default"](_context25 = _concatInstanceProperty__default["default"](_context26 = _concatInstanceProperty__default["default"](_context27 = _concatInstanceProperty__default["default"](_context28 = _concatInstanceProperty__default["default"](_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --
|
|
425
|
+
return _concatInstanceProperty__default["default"](_context19 = _concatInstanceProperty__default["default"](_context20 = _concatInstanceProperty__default["default"](_context21 = _concatInstanceProperty__default["default"](_context22 = _concatInstanceProperty__default["default"](_context23 = _concatInstanceProperty__default["default"](_context24 = _concatInstanceProperty__default["default"](_context25 = _concatInstanceProperty__default["default"](_context26 = _concatInstanceProperty__default["default"](_context27 = _concatInstanceProperty__default["default"](_context28 = _concatInstanceProperty__default["default"](_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")/version.json\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --content-type=\"application/json\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context19, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n");
|
|
422
426
|
}
|
|
423
427
|
}, {
|
|
424
428
|
key: "getProductionBundlesUploadScript",
|
|
@@ -967,7 +971,7 @@ async function command(cliFlags) {
|
|
|
967
971
|
|
|
968
972
|
var pkgJson = {
|
|
969
973
|
name: "@commercetools-frontend/application-cli",
|
|
970
|
-
version: "2.
|
|
974
|
+
version: "2.4.0",
|
|
971
975
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
972
976
|
keywords: [
|
|
973
977
|
"commercetools",
|
|
@@ -14,7 +14,7 @@ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance
|
|
|
14
14
|
import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
15
15
|
import _Set from '@babel/runtime-corejs3/core-js-stable/set';
|
|
16
16
|
import _flatMapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/flat-map';
|
|
17
|
-
import { s as storageProviders, l as loadStorageBucketsConfig, c as clusterContexts } from '../../dist/storage-buckets-config-
|
|
17
|
+
import { s as storageProviders, l as loadStorageBucketsConfig, c as clusterContexts } from '../../dist/storage-buckets-config-2fc2b441.esm.js';
|
|
18
18
|
import fs from 'node:fs';
|
|
19
19
|
import path$1 from 'node:path';
|
|
20
20
|
import { Listr } from 'listr2';
|
|
@@ -55,7 +55,7 @@ function isCI() {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
58
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
58
|
+
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys$4(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys$4(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59
59
|
function _callSuper(_this, derived, args) {
|
|
60
60
|
function isNativeReflectConstruct() {
|
|
61
61
|
if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
|
|
@@ -160,6 +160,10 @@ let StorageProvider = /*#__PURE__*/function () {
|
|
|
160
160
|
}
|
|
161
161
|
const storageProvider = storageProviders[tag];
|
|
162
162
|
const publicBaseUrl = (_storageProvider$urls3 = storageProvider.urls.public[_classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1]]) !== null && _storageProvider$urls3 !== void 0 ? _storageProvider$urls3 : storageProvider.urls.public.default;
|
|
163
|
+
if (!publicBaseUrl) {
|
|
164
|
+
var _context5;
|
|
165
|
+
throw new Error(_concatInstanceProperty(_context5 = "'publicBaseUrl' is not defined for '".concat(tag, "' storage provider for ")).call(_context5, _classPrivateFieldLooseBase(this, _bucketEnvironment$1)[_bucketEnvironment$1], " or as default."));
|
|
166
|
+
}
|
|
163
167
|
return publicBaseUrl;
|
|
164
168
|
}
|
|
165
169
|
}]);
|
|
@@ -388,7 +392,7 @@ let AwsStorageUploadScriptsGenerator = /*#__PURE__*/function () {
|
|
|
388
392
|
buildRevision = _ref3.buildRevision,
|
|
389
393
|
buildNumber = _ref3.buildNumber,
|
|
390
394
|
applicationIndexOutFile = _ref3.applicationIndexOutFile;
|
|
391
|
-
return _concatInstanceProperty(_context19 = _concatInstanceProperty(_context20 = _concatInstanceProperty(_context21 = _concatInstanceProperty(_context22 = _concatInstanceProperty(_context23 = _concatInstanceProperty(_context24 = _concatInstanceProperty(_context25 = _concatInstanceProperty(_context26 = _concatInstanceProperty(_context27 = _concatInstanceProperty(_context28 = _concatInstanceProperty(_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --
|
|
395
|
+
return _concatInstanceProperty(_context19 = _concatInstanceProperty(_context20 = _concatInstanceProperty(_context21 = _concatInstanceProperty(_context22 = _concatInstanceProperty(_context23 = _concatInstanceProperty(_context24 = _concatInstanceProperty(_context25 = _concatInstanceProperty(_context26 = _concatInstanceProperty(_context27 = _concatInstanceProperty(_context28 = _concatInstanceProperty(_context29 = "\n #!/usr/bin/env bash\n\n echo \"Uploading static assets to Amazon S3 bucket ".concat(bucketUrl, "\"\n\n set -e\n\n aws s3 cp \"$(dirname \"$0\")/")).call(_context29, applicationIndexOutFile, "\" \\\n \"")).call(_context28, bucketUrl, "/\" \\\n --content-type=\"text/html\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context27, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n\n echo \"Creating version.json and uploading it to bucket ")).call(_context26, bucketUrl, "\"\n\n NODE_ENV=production ")).call(_context25, packageManagerName, " application-cli create-version \\\n --version-url=")).call(_context24, cdnUrl, "/")).call(_context23, _classPrivateFieldLooseBase(this, _bucketEnvironment2)[_bucketEnvironment2], "/version.json \\\n --build-revision=")).call(_context22, buildRevision, " \\\n --build-number=")).call(_context21, buildNumber, " \\\n --out-file=$(dirname \"$0\")/version.json\n\n aws s3 cp \"$(dirname \"$0\")/version.json\" \\\n \"")).call(_context20, bucketUrl, "/\" \\\n --content-type=\"application/json\" \\\n --cache-control=\"public,max-age=0,no-transform\" \\\n --profile ")).call(_context19, _classPrivateFieldLooseBase(this, _bucketRegion2)[_bucketRegion2], "\n");
|
|
392
396
|
}
|
|
393
397
|
}, {
|
|
394
398
|
key: "getProductionBundlesUploadScript",
|
|
@@ -937,7 +941,7 @@ async function command(cliFlags) {
|
|
|
937
941
|
|
|
938
942
|
var pkgJson = {
|
|
939
943
|
name: "@commercetools-frontend/application-cli",
|
|
940
|
-
version: "2.
|
|
944
|
+
version: "2.4.0",
|
|
941
945
|
description: "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
942
946
|
keywords: [
|
|
943
947
|
"commercetools",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var storageBucketsConfig = require('./storage-buckets-config-
|
|
5
|
+
var storageBucketsConfig = require('./storage-buckets-config-91932b24.cjs.dev.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -13,8 +13,6 @@ require('ts-deepmerge');
|
|
|
13
13
|
|
|
14
14
|
exports.bucketEnvironments = storageBucketsConfig.bucketEnvironments;
|
|
15
15
|
exports.bucketRegions = storageBucketsConfig.bucketRegions;
|
|
16
|
-
exports.bucketUrls = storageBucketsConfig.bucketUrls;
|
|
17
16
|
exports.clusterContexts = storageBucketsConfig.clusterContexts;
|
|
18
17
|
exports.defineStorageBucketsConfig = storageBucketsConfig.defineStorageBucketsConfig;
|
|
19
|
-
exports.publicStorageUrls = storageBucketsConfig.publicStorageUrls;
|
|
20
18
|
exports.storageProviders = storageBucketsConfig.storageProviders;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var storageBucketsConfig = require('./storage-buckets-config-
|
|
5
|
+
var storageBucketsConfig = require('./storage-buckets-config-b6d36938.cjs.prod.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -13,8 +13,6 @@ require('ts-deepmerge');
|
|
|
13
13
|
|
|
14
14
|
exports.bucketEnvironments = storageBucketsConfig.bucketEnvironments;
|
|
15
15
|
exports.bucketRegions = storageBucketsConfig.bucketRegions;
|
|
16
|
-
exports.bucketUrls = storageBucketsConfig.bucketUrls;
|
|
17
16
|
exports.clusterContexts = storageBucketsConfig.clusterContexts;
|
|
18
17
|
exports.defineStorageBucketsConfig = storageBucketsConfig.defineStorageBucketsConfig;
|
|
19
|
-
exports.publicStorageUrls = storageBucketsConfig.publicStorageUrls;
|
|
20
18
|
exports.storageProviders = storageBucketsConfig.storageProviders;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as bucketEnvironments, a as bucketRegions,
|
|
1
|
+
export { b as bucketEnvironments, a as bucketRegions, c as clusterContexts, d as defineStorageBucketsConfig, s as storageProviders } from './storage-buckets-config-2fc2b441.esm.js';
|
|
2
2
|
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
3
3
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
4
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -36,12 +36,4 @@ export declare const bucketRegions: {
|
|
|
36
36
|
readonly asia: "merchant-center-asia";
|
|
37
37
|
readonly china: "merchant-center-china";
|
|
38
38
|
};
|
|
39
|
-
export declare const publicStorageUrls: {
|
|
40
|
-
readonly google: "https://storage.googleapis.com";
|
|
41
|
-
readonly aws: "https://s3.amazonaws.com";
|
|
42
|
-
readonly china: "https://mc-storage.cn-northwest-1.aws.commercetools.cn";
|
|
43
|
-
};
|
|
44
|
-
export declare const bucketUrls: {
|
|
45
|
-
readonly china: "commercetools-mc-storage-aws-cn-prod-merchant-center";
|
|
46
|
-
};
|
|
47
39
|
export declare const storageProviders: Record<TStorageProviderTag, TStorageProvider>;
|
package/dist/{storage-buckets-config-f41d07bc.esm.js → storage-buckets-config-2fc2b441.esm.js}
RENAMED
|
@@ -41,20 +41,12 @@ const bucketRegions = {
|
|
|
41
41
|
asia: 'merchant-center-asia',
|
|
42
42
|
china: 'merchant-center-china'
|
|
43
43
|
};
|
|
44
|
-
const publicStorageUrls = {
|
|
45
|
-
google: 'https://storage.googleapis.com',
|
|
46
|
-
aws: 'https://s3.amazonaws.com',
|
|
47
|
-
china: 'https://mc-storage.cn-northwest-1.aws.commercetools.cn'
|
|
48
|
-
};
|
|
49
|
-
const bucketUrls = {
|
|
50
|
-
china: 'commercetools-mc-storage-aws-cn-prod-merchant-center'
|
|
51
|
-
};
|
|
52
44
|
const storageProviders = {
|
|
53
45
|
gs: {
|
|
54
46
|
tag: 'gs',
|
|
55
47
|
urls: {
|
|
56
48
|
public: {
|
|
57
|
-
default:
|
|
49
|
+
default: 'https://storage.googleapis.com'
|
|
58
50
|
}
|
|
59
51
|
}
|
|
60
52
|
},
|
|
@@ -62,12 +54,16 @@ const storageProviders = {
|
|
|
62
54
|
tag: 's3',
|
|
63
55
|
urls: {
|
|
64
56
|
public: {
|
|
65
|
-
default:
|
|
66
|
-
'ctp-aws-staging-cn':
|
|
67
|
-
'ctp-aws-production-cn':
|
|
57
|
+
default: null,
|
|
58
|
+
'ctp-aws-staging-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
59
|
+
'ctp-aws-production-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
60
|
+
'ctp-aws-production-ohio': 'https://mc-storage.us-east-2.aws.commercetools.com',
|
|
61
|
+
'ctp-aws-production-fra': 'https://mc-storage.eu-central-1.aws.commercetools.com'
|
|
68
62
|
},
|
|
69
63
|
bucket: {
|
|
70
|
-
'merchant-center-china':
|
|
64
|
+
'merchant-center-china': 'commercetools-mc-storage-aws-cn-prod-merchant-center',
|
|
65
|
+
'merchant-center-europe': 'commercetools-mc-storage-aws-eu-prod-merchant-center',
|
|
66
|
+
'merchant-center-north-america': 'commercetools-mc-storage-aws-us-prod-merchant-center'
|
|
71
67
|
}
|
|
72
68
|
}
|
|
73
69
|
}
|
|
@@ -92,7 +88,8 @@ const defaultConfig = {
|
|
|
92
88
|
}],
|
|
93
89
|
[bucketRegions.europe]: [{
|
|
94
90
|
cloudEnvironment: clusterContexts['ctp_production_aws_eu-central-1_v1'],
|
|
95
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra']
|
|
91
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra'],
|
|
92
|
+
storageProviders: ['gs', 's3']
|
|
96
93
|
}, {
|
|
97
94
|
cloudEnvironment: clusterContexts['ctp_production_gcp_europe-west1_v1'],
|
|
98
95
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-eu']
|
|
@@ -105,7 +102,8 @@ const defaultConfig = {
|
|
|
105
102
|
bucketEnvironment: bucketEnvironments['ctp-att-production-va']
|
|
106
103
|
}, {
|
|
107
104
|
cloudEnvironment: clusterContexts['ctp_production_aws_us-east-2_v1'],
|
|
108
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio']
|
|
105
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio'],
|
|
106
|
+
storageProviders: ['gs', 's3']
|
|
109
107
|
}, {
|
|
110
108
|
cloudEnvironment: clusterContexts['ctp_production_gcp_us-central1_v1'],
|
|
111
109
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-us']
|
|
@@ -165,4 +163,4 @@ async function loadStorageBucketsConfig() {
|
|
|
165
163
|
return (_explorerResult = explorerResult) === null || _explorerResult === void 0 ? void 0 : _explorerResult.config;
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
export { bucketRegions as a, bucketEnvironments as b, clusterContexts as c, defineStorageBucketsConfig as d,
|
|
166
|
+
export { bucketRegions as a, bucketEnvironments as b, clusterContexts as c, defineStorageBucketsConfig as d, loadStorageBucketsConfig as l, storageProviders as s };
|
|
@@ -49,20 +49,12 @@ const bucketRegions = {
|
|
|
49
49
|
asia: 'merchant-center-asia',
|
|
50
50
|
china: 'merchant-center-china'
|
|
51
51
|
};
|
|
52
|
-
const publicStorageUrls = {
|
|
53
|
-
google: 'https://storage.googleapis.com',
|
|
54
|
-
aws: 'https://s3.amazonaws.com',
|
|
55
|
-
china: 'https://mc-storage.cn-northwest-1.aws.commercetools.cn'
|
|
56
|
-
};
|
|
57
|
-
const bucketUrls = {
|
|
58
|
-
china: 'commercetools-mc-storage-aws-cn-prod-merchant-center'
|
|
59
|
-
};
|
|
60
52
|
const storageProviders = {
|
|
61
53
|
gs: {
|
|
62
54
|
tag: 'gs',
|
|
63
55
|
urls: {
|
|
64
56
|
public: {
|
|
65
|
-
default:
|
|
57
|
+
default: 'https://storage.googleapis.com'
|
|
66
58
|
}
|
|
67
59
|
}
|
|
68
60
|
},
|
|
@@ -70,12 +62,16 @@ const storageProviders = {
|
|
|
70
62
|
tag: 's3',
|
|
71
63
|
urls: {
|
|
72
64
|
public: {
|
|
73
|
-
default:
|
|
74
|
-
'ctp-aws-staging-cn':
|
|
75
|
-
'ctp-aws-production-cn':
|
|
65
|
+
default: null,
|
|
66
|
+
'ctp-aws-staging-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
67
|
+
'ctp-aws-production-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
68
|
+
'ctp-aws-production-ohio': 'https://mc-storage.us-east-2.aws.commercetools.com',
|
|
69
|
+
'ctp-aws-production-fra': 'https://mc-storage.eu-central-1.aws.commercetools.com'
|
|
76
70
|
},
|
|
77
71
|
bucket: {
|
|
78
|
-
'merchant-center-china':
|
|
72
|
+
'merchant-center-china': 'commercetools-mc-storage-aws-cn-prod-merchant-center',
|
|
73
|
+
'merchant-center-europe': 'commercetools-mc-storage-aws-eu-prod-merchant-center',
|
|
74
|
+
'merchant-center-north-america': 'commercetools-mc-storage-aws-us-prod-merchant-center'
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
}
|
|
@@ -100,7 +96,8 @@ const defaultConfig = {
|
|
|
100
96
|
}],
|
|
101
97
|
[bucketRegions.europe]: [{
|
|
102
98
|
cloudEnvironment: clusterContexts['ctp_production_aws_eu-central-1_v1'],
|
|
103
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra']
|
|
99
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra'],
|
|
100
|
+
storageProviders: ['gs', 's3']
|
|
104
101
|
}, {
|
|
105
102
|
cloudEnvironment: clusterContexts['ctp_production_gcp_europe-west1_v1'],
|
|
106
103
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-eu']
|
|
@@ -113,7 +110,8 @@ const defaultConfig = {
|
|
|
113
110
|
bucketEnvironment: bucketEnvironments['ctp-att-production-va']
|
|
114
111
|
}, {
|
|
115
112
|
cloudEnvironment: clusterContexts['ctp_production_aws_us-east-2_v1'],
|
|
116
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio']
|
|
113
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio'],
|
|
114
|
+
storageProviders: ['gs', 's3']
|
|
117
115
|
}, {
|
|
118
116
|
cloudEnvironment: clusterContexts['ctp_production_gcp_us-central1_v1'],
|
|
119
117
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-us']
|
|
@@ -175,9 +173,7 @@ async function loadStorageBucketsConfig() {
|
|
|
175
173
|
|
|
176
174
|
exports.bucketEnvironments = bucketEnvironments;
|
|
177
175
|
exports.bucketRegions = bucketRegions;
|
|
178
|
-
exports.bucketUrls = bucketUrls;
|
|
179
176
|
exports.clusterContexts = clusterContexts;
|
|
180
177
|
exports.defineStorageBucketsConfig = defineStorageBucketsConfig;
|
|
181
178
|
exports.loadStorageBucketsConfig = loadStorageBucketsConfig;
|
|
182
|
-
exports.publicStorageUrls = publicStorageUrls;
|
|
183
179
|
exports.storageProviders = storageProviders;
|
|
@@ -49,20 +49,12 @@ const bucketRegions = {
|
|
|
49
49
|
asia: 'merchant-center-asia',
|
|
50
50
|
china: 'merchant-center-china'
|
|
51
51
|
};
|
|
52
|
-
const publicStorageUrls = {
|
|
53
|
-
google: 'https://storage.googleapis.com',
|
|
54
|
-
aws: 'https://s3.amazonaws.com',
|
|
55
|
-
china: 'https://mc-storage.cn-northwest-1.aws.commercetools.cn'
|
|
56
|
-
};
|
|
57
|
-
const bucketUrls = {
|
|
58
|
-
china: 'commercetools-mc-storage-aws-cn-prod-merchant-center'
|
|
59
|
-
};
|
|
60
52
|
const storageProviders = {
|
|
61
53
|
gs: {
|
|
62
54
|
tag: 'gs',
|
|
63
55
|
urls: {
|
|
64
56
|
public: {
|
|
65
|
-
default:
|
|
57
|
+
default: 'https://storage.googleapis.com'
|
|
66
58
|
}
|
|
67
59
|
}
|
|
68
60
|
},
|
|
@@ -70,12 +62,16 @@ const storageProviders = {
|
|
|
70
62
|
tag: 's3',
|
|
71
63
|
urls: {
|
|
72
64
|
public: {
|
|
73
|
-
default:
|
|
74
|
-
'ctp-aws-staging-cn':
|
|
75
|
-
'ctp-aws-production-cn':
|
|
65
|
+
default: null,
|
|
66
|
+
'ctp-aws-staging-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
67
|
+
'ctp-aws-production-cn': 'https://mc-storage.cn-northwest-1.aws.commercetools.cn',
|
|
68
|
+
'ctp-aws-production-ohio': 'https://mc-storage.us-east-2.aws.commercetools.com',
|
|
69
|
+
'ctp-aws-production-fra': 'https://mc-storage.eu-central-1.aws.commercetools.com'
|
|
76
70
|
},
|
|
77
71
|
bucket: {
|
|
78
|
-
'merchant-center-china':
|
|
72
|
+
'merchant-center-china': 'commercetools-mc-storage-aws-cn-prod-merchant-center',
|
|
73
|
+
'merchant-center-europe': 'commercetools-mc-storage-aws-eu-prod-merchant-center',
|
|
74
|
+
'merchant-center-north-america': 'commercetools-mc-storage-aws-us-prod-merchant-center'
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
}
|
|
@@ -100,7 +96,8 @@ const defaultConfig = {
|
|
|
100
96
|
}],
|
|
101
97
|
[bucketRegions.europe]: [{
|
|
102
98
|
cloudEnvironment: clusterContexts['ctp_production_aws_eu-central-1_v1'],
|
|
103
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra']
|
|
99
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-fra'],
|
|
100
|
+
storageProviders: ['gs', 's3']
|
|
104
101
|
}, {
|
|
105
102
|
cloudEnvironment: clusterContexts['ctp_production_gcp_europe-west1_v1'],
|
|
106
103
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-eu']
|
|
@@ -113,7 +110,8 @@ const defaultConfig = {
|
|
|
113
110
|
bucketEnvironment: bucketEnvironments['ctp-att-production-va']
|
|
114
111
|
}, {
|
|
115
112
|
cloudEnvironment: clusterContexts['ctp_production_aws_us-east-2_v1'],
|
|
116
|
-
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio']
|
|
113
|
+
bucketEnvironment: bucketEnvironments['ctp-aws-production-ohio'],
|
|
114
|
+
storageProviders: ['gs', 's3']
|
|
117
115
|
}, {
|
|
118
116
|
cloudEnvironment: clusterContexts['ctp_production_gcp_us-central1_v1'],
|
|
119
117
|
bucketEnvironment: bucketEnvironments['ctp-gcp-production-us']
|
|
@@ -175,9 +173,7 @@ async function loadStorageBucketsConfig() {
|
|
|
175
173
|
|
|
176
174
|
exports.bucketEnvironments = bucketEnvironments;
|
|
177
175
|
exports.bucketRegions = bucketRegions;
|
|
178
|
-
exports.bucketUrls = bucketUrls;
|
|
179
176
|
exports.clusterContexts = clusterContexts;
|
|
180
177
|
exports.defineStorageBucketsConfig = defineStorageBucketsConfig;
|
|
181
178
|
exports.loadStorageBucketsConfig = loadStorageBucketsConfig;
|
|
182
|
-
exports.publicStorageUrls = publicStorageUrls;
|
|
183
179
|
exports.storageProviders = storageProviders;
|
package/package.json
CHANGED