@commercetools-frontend/mc-scripts 21.8.0 → 21.8.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/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +20 -12
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +20 -12
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +20 -12
- package/dist/{build-97278377.cjs.dev.js → build-3521a4f3.cjs.dev.js} +3 -3
- package/dist/{build-9395925a.cjs.prod.js → build-acb29f36.cjs.prod.js} +3 -3
- package/dist/{build-8582b673.esm.js → build-cac1a859.esm.js} +3 -3
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{compile-html-4832f8c5.esm.js → compile-html-4361a0b3.esm.js} +18 -24
- package/dist/{compile-html-7654b5e6.cjs.prod.js → compile-html-d6331c35.cjs.prod.js} +18 -24
- package/dist/{compile-html-0c588a89.cjs.dev.js → compile-html-d9e731aa.cjs.dev.js} +18 -24
- package/dist/{config-sync-62824317.cjs.prod.js → config-sync-7bd51e9b.cjs.prod.js} +46 -74
- package/dist/{config-sync-d52e73f6.cjs.dev.js → config-sync-9540c47f.cjs.dev.js} +46 -74
- package/dist/{config-sync-20bc05e8.esm.js → config-sync-a6565737.esm.js} +46 -74
- package/dist/{create-postcss-config-4cbe10ab.cjs.dev.js → create-postcss-config-07259760.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-c1aa3525.esm.js → create-postcss-config-9e14f015.esm.js} +1 -1
- package/dist/{create-postcss-config-8ea16440.cjs.prod.js → create-postcss-config-c1122bfa.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-e2735e02.cjs.dev.js → create-webpack-config-for-development-20fbe5a5.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-a5e73092.cjs.prod.js → create-webpack-config-for-development-b70e9af1.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-8a8b84d6.esm.js → create-webpack-config-for-development-eb1432fe.esm.js} +1 -1
- package/dist/{create-webpack-config-for-production-7dc669e5.esm.js → create-webpack-config-for-production-331c8877.esm.js} +1 -1
- package/dist/{create-webpack-config-for-production-d9bf281c.cjs.dev.js → create-webpack-config-for-production-4e58ee43.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-production-4e7b56c0.cjs.prod.js → create-webpack-config-for-production-e894ffc1.cjs.prod.js} +1 -1
- package/dist/declarations/src/commands/compile-html.d.ts +1 -1
- package/dist/declarations/src/commands/config-sync.d.ts +1 -1
- package/dist/declarations/src/types.d.ts +3 -3
- package/dist/{login-7d94659e.esm.js → login-435f4c2b.esm.js} +2 -2
- package/dist/{login-779552b7.cjs.dev.js → login-d1cbdeca.cjs.dev.js} +2 -2
- package/dist/{login-706ccc9a.cjs.prod.js → login-e943a53a.cjs.prod.js} +2 -2
- package/dist/{package-b5c040f3.cjs.prod.js → package-8a5733b4.cjs.dev.js} +7 -7
- package/dist/{package-a98de907.esm.js → package-8b6676c0.esm.js} +7 -7
- package/dist/{package-aaf61bf0.cjs.dev.js → package-fab41a01.cjs.prod.js} +7 -7
- package/dist/{start-e3ccd672.cjs.prod.js → start-086879f3.cjs.prod.js} +3 -3
- package/dist/{start-e924bd5d.esm.js → start-52af291f.esm.js} +3 -3
- package/dist/{start-2b953ab0.cjs.dev.js → start-dfef24e1.cjs.dev.js} +3 -3
- package/dist/{user-agent-8044acd6.esm.js → user-agent-7d6d1d4a.esm.js} +1 -1
- package/dist/{user-agent-5da1830b.cjs.dev.js → user-agent-866e4833.cjs.dev.js} +1 -1
- package/dist/{user-agent-d18809af.cjs.prod.js → user-agent-94518666.cjs.prod.js} +1 -1
- package/package.json +7 -7
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
|
@@ -13,7 +13,7 @@ var path = require('path');
|
|
|
13
13
|
var cac = require('cac');
|
|
14
14
|
var dotenv = require('dotenv');
|
|
15
15
|
var dotenvExpand = require('dotenv-expand');
|
|
16
|
-
var _package = require('../../dist/package-
|
|
16
|
+
var _package = require('../../dist/package-8a5733b4.cjs.dev.js');
|
|
17
17
|
|
|
18
18
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -80,7 +80,7 @@ var run = function run() {
|
|
|
80
80
|
|
|
81
81
|
case 11:
|
|
82
82
|
_context.next = 13;
|
|
83
|
-
return Promise.resolve().then(function () { return require('../../dist/start-
|
|
83
|
+
return Promise.resolve().then(function () { return require('../../dist/start-dfef24e1.cjs.dev.js'); });
|
|
84
84
|
|
|
85
85
|
case 13:
|
|
86
86
|
_context.t0 = _context.sent;
|
|
@@ -103,7 +103,9 @@ var run = function run() {
|
|
|
103
103
|
};
|
|
104
104
|
}()); // Command: build
|
|
105
105
|
|
|
106
|
-
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".'
|
|
106
|
+
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
107
|
+
default: false
|
|
108
|
+
}).action( /*#__PURE__*/function () {
|
|
107
109
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(options) {
|
|
108
110
|
var shouldUseExperimentalBundler, buildCommand, shouldAlsoCompile, compileHtmlCommand;
|
|
109
111
|
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
@@ -139,7 +141,7 @@ var run = function run() {
|
|
|
139
141
|
|
|
140
142
|
case 11:
|
|
141
143
|
_context2.next = 13;
|
|
142
|
-
return Promise.resolve().then(function () { return require('../../dist/build-
|
|
144
|
+
return Promise.resolve().then(function () { return require('../../dist/build-3521a4f3.cjs.dev.js'); });
|
|
143
145
|
|
|
144
146
|
case 13:
|
|
145
147
|
_context2.t0 = _context2.sent;
|
|
@@ -150,7 +152,7 @@ var run = function run() {
|
|
|
150
152
|
return buildCommand.default();
|
|
151
153
|
|
|
152
154
|
case 17:
|
|
153
|
-
shouldAlsoCompile = !options
|
|
155
|
+
shouldAlsoCompile = !options.buildOnly;
|
|
154
156
|
|
|
155
157
|
if (!shouldAlsoCompile) {
|
|
156
158
|
_context2.next = 25;
|
|
@@ -159,12 +161,14 @@ var run = function run() {
|
|
|
159
161
|
|
|
160
162
|
console.log('');
|
|
161
163
|
_context2.next = 22;
|
|
162
|
-
return Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
164
|
+
return Promise.resolve().then(function () { return require('../../dist/compile-html-d9e731aa.cjs.dev.js'); });
|
|
163
165
|
|
|
164
166
|
case 22:
|
|
165
167
|
compileHtmlCommand = _context2.sent;
|
|
166
168
|
_context2.next = 25;
|
|
167
|
-
return compileHtmlCommand.default(
|
|
169
|
+
return compileHtmlCommand.default({
|
|
170
|
+
printSecurityHeaders: false
|
|
171
|
+
});
|
|
168
172
|
|
|
169
173
|
case 25:
|
|
170
174
|
case "end":
|
|
@@ -179,7 +183,9 @@ var run = function run() {
|
|
|
179
183
|
};
|
|
180
184
|
}()); // Command: compile-html
|
|
181
185
|
|
|
182
|
-
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.'
|
|
186
|
+
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
187
|
+
default: false
|
|
188
|
+
}).action( /*#__PURE__*/function () {
|
|
183
189
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(options) {
|
|
184
190
|
var compileHtmlCommand;
|
|
185
191
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
@@ -192,7 +198,7 @@ var run = function run() {
|
|
|
192
198
|
|
|
193
199
|
process.env.NODE_ENV = 'production';
|
|
194
200
|
_context3.next = 4;
|
|
195
|
-
return Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
201
|
+
return Promise.resolve().then(function () { return require('../../dist/compile-html-d9e731aa.cjs.dev.js'); });
|
|
196
202
|
|
|
197
203
|
case 4:
|
|
198
204
|
compileHtmlCommand = _context3.sent;
|
|
@@ -258,7 +264,7 @@ var run = function run() {
|
|
|
258
264
|
|
|
259
265
|
process.env.NODE_ENV = 'production';
|
|
260
266
|
_context5.next = 4;
|
|
261
|
-
return Promise.resolve().then(function () { return require('../../dist/login-
|
|
267
|
+
return Promise.resolve().then(function () { return require('../../dist/login-d1cbdeca.cjs.dev.js'); });
|
|
262
268
|
|
|
263
269
|
case 4:
|
|
264
270
|
loginCommand = _context5.sent;
|
|
@@ -278,7 +284,9 @@ var run = function run() {
|
|
|
278
284
|
};
|
|
279
285
|
}()); // Command: config:sync
|
|
280
286
|
|
|
281
|
-
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.'
|
|
287
|
+
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
288
|
+
default: false
|
|
289
|
+
}).action( /*#__PURE__*/function () {
|
|
282
290
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(options) {
|
|
283
291
|
var configSyncCommand;
|
|
284
292
|
return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context6) {
|
|
@@ -291,7 +299,7 @@ var run = function run() {
|
|
|
291
299
|
|
|
292
300
|
process.env.NODE_ENV = 'production';
|
|
293
301
|
_context6.next = 4;
|
|
294
|
-
return Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
302
|
+
return Promise.resolve().then(function () { return require('../../dist/config-sync-9540c47f.cjs.dev.js'); });
|
|
295
303
|
|
|
296
304
|
case 4:
|
|
297
305
|
configSyncCommand = _context6.sent;
|
|
@@ -13,7 +13,7 @@ var path = require('path');
|
|
|
13
13
|
var cac = require('cac');
|
|
14
14
|
var dotenv = require('dotenv');
|
|
15
15
|
var dotenvExpand = require('dotenv-expand');
|
|
16
|
-
var _package = require('../../dist/package-
|
|
16
|
+
var _package = require('../../dist/package-fab41a01.cjs.prod.js');
|
|
17
17
|
|
|
18
18
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -80,7 +80,7 @@ var run = function run() {
|
|
|
80
80
|
|
|
81
81
|
case 11:
|
|
82
82
|
_context.next = 13;
|
|
83
|
-
return Promise.resolve().then(function () { return require('../../dist/start-
|
|
83
|
+
return Promise.resolve().then(function () { return require('../../dist/start-086879f3.cjs.prod.js'); });
|
|
84
84
|
|
|
85
85
|
case 13:
|
|
86
86
|
_context.t0 = _context.sent;
|
|
@@ -103,7 +103,9 @@ var run = function run() {
|
|
|
103
103
|
};
|
|
104
104
|
}()); // Command: build
|
|
105
105
|
|
|
106
|
-
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".'
|
|
106
|
+
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
107
|
+
default: false
|
|
108
|
+
}).action( /*#__PURE__*/function () {
|
|
107
109
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(options) {
|
|
108
110
|
var shouldUseExperimentalBundler, buildCommand, shouldAlsoCompile, compileHtmlCommand;
|
|
109
111
|
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
|
|
@@ -139,7 +141,7 @@ var run = function run() {
|
|
|
139
141
|
|
|
140
142
|
case 11:
|
|
141
143
|
_context2.next = 13;
|
|
142
|
-
return Promise.resolve().then(function () { return require('../../dist/build-
|
|
144
|
+
return Promise.resolve().then(function () { return require('../../dist/build-acb29f36.cjs.prod.js'); });
|
|
143
145
|
|
|
144
146
|
case 13:
|
|
145
147
|
_context2.t0 = _context2.sent;
|
|
@@ -150,7 +152,7 @@ var run = function run() {
|
|
|
150
152
|
return buildCommand.default();
|
|
151
153
|
|
|
152
154
|
case 17:
|
|
153
|
-
shouldAlsoCompile = !options
|
|
155
|
+
shouldAlsoCompile = !options.buildOnly;
|
|
154
156
|
|
|
155
157
|
if (!shouldAlsoCompile) {
|
|
156
158
|
_context2.next = 25;
|
|
@@ -159,12 +161,14 @@ var run = function run() {
|
|
|
159
161
|
|
|
160
162
|
console.log('');
|
|
161
163
|
_context2.next = 22;
|
|
162
|
-
return Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
164
|
+
return Promise.resolve().then(function () { return require('../../dist/compile-html-d6331c35.cjs.prod.js'); });
|
|
163
165
|
|
|
164
166
|
case 22:
|
|
165
167
|
compileHtmlCommand = _context2.sent;
|
|
166
168
|
_context2.next = 25;
|
|
167
|
-
return compileHtmlCommand.default(
|
|
169
|
+
return compileHtmlCommand.default({
|
|
170
|
+
printSecurityHeaders: false
|
|
171
|
+
});
|
|
168
172
|
|
|
169
173
|
case 25:
|
|
170
174
|
case "end":
|
|
@@ -179,7 +183,9 @@ var run = function run() {
|
|
|
179
183
|
};
|
|
180
184
|
}()); // Command: compile-html
|
|
181
185
|
|
|
182
|
-
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.'
|
|
186
|
+
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
187
|
+
default: false
|
|
188
|
+
}).action( /*#__PURE__*/function () {
|
|
183
189
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee3(options) {
|
|
184
190
|
var compileHtmlCommand;
|
|
185
191
|
return _regeneratorRuntime__default["default"].wrap(function _callee3$(_context3) {
|
|
@@ -192,7 +198,7 @@ var run = function run() {
|
|
|
192
198
|
|
|
193
199
|
process.env.NODE_ENV = 'production';
|
|
194
200
|
_context3.next = 4;
|
|
195
|
-
return Promise.resolve().then(function () { return require('../../dist/compile-html-
|
|
201
|
+
return Promise.resolve().then(function () { return require('../../dist/compile-html-d6331c35.cjs.prod.js'); });
|
|
196
202
|
|
|
197
203
|
case 4:
|
|
198
204
|
compileHtmlCommand = _context3.sent;
|
|
@@ -258,7 +264,7 @@ var run = function run() {
|
|
|
258
264
|
|
|
259
265
|
process.env.NODE_ENV = 'production';
|
|
260
266
|
_context5.next = 4;
|
|
261
|
-
return Promise.resolve().then(function () { return require('../../dist/login-
|
|
267
|
+
return Promise.resolve().then(function () { return require('../../dist/login-e943a53a.cjs.prod.js'); });
|
|
262
268
|
|
|
263
269
|
case 4:
|
|
264
270
|
loginCommand = _context5.sent;
|
|
@@ -278,7 +284,9 @@ var run = function run() {
|
|
|
278
284
|
};
|
|
279
285
|
}()); // Command: config:sync
|
|
280
286
|
|
|
281
|
-
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.'
|
|
287
|
+
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
288
|
+
default: false
|
|
289
|
+
}).action( /*#__PURE__*/function () {
|
|
282
290
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee6(options) {
|
|
283
291
|
var configSyncCommand;
|
|
284
292
|
return _regeneratorRuntime__default["default"].wrap(function _callee6$(_context6) {
|
|
@@ -291,7 +299,7 @@ var run = function run() {
|
|
|
291
299
|
|
|
292
300
|
process.env.NODE_ENV = 'production';
|
|
293
301
|
_context6.next = 4;
|
|
294
|
-
return Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
302
|
+
return Promise.resolve().then(function () { return require('../../dist/config-sync-7bd51e9b.cjs.prod.js'); });
|
|
295
303
|
|
|
296
304
|
case 4:
|
|
297
305
|
configSyncCommand = _context6.sent;
|
|
@@ -9,7 +9,7 @@ import path from 'path';
|
|
|
9
9
|
import { cac } from 'cac';
|
|
10
10
|
import dotenv from 'dotenv';
|
|
11
11
|
import dotenvExpand from 'dotenv-expand';
|
|
12
|
-
import { p as pkgJson } from '../../dist/package-
|
|
12
|
+
import { p as pkgJson } from '../../dist/package-8b6676c0.esm.js';
|
|
13
13
|
|
|
14
14
|
var cli = cac('mc-scripts'); // Makes the script crash on unhandled rejections instead of silently
|
|
15
15
|
// ignoring them. In the future, promise rejections that are not handled will
|
|
@@ -65,7 +65,7 @@ var run = function run() {
|
|
|
65
65
|
|
|
66
66
|
case 11:
|
|
67
67
|
_context.next = 13;
|
|
68
|
-
return import('../../dist/start-
|
|
68
|
+
return import('../../dist/start-52af291f.esm.js');
|
|
69
69
|
|
|
70
70
|
case 13:
|
|
71
71
|
_context.t0 = _context.sent;
|
|
@@ -88,7 +88,9 @@ var run = function run() {
|
|
|
88
88
|
};
|
|
89
89
|
}()); // Command: build
|
|
90
90
|
|
|
91
|
-
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".'
|
|
91
|
+
cli.command('build', 'Bundles the application in production mode. Outputs a "public" folder.').option('--build-only', '(optional) If defined, the command only creates the production bundles without compiling the "index.html".', {
|
|
92
|
+
default: false
|
|
93
|
+
}).action( /*#__PURE__*/function () {
|
|
92
94
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options) {
|
|
93
95
|
var shouldUseExperimentalBundler, buildCommand, shouldAlsoCompile, compileHtmlCommand;
|
|
94
96
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
@@ -124,7 +126,7 @@ var run = function run() {
|
|
|
124
126
|
|
|
125
127
|
case 11:
|
|
126
128
|
_context2.next = 13;
|
|
127
|
-
return import('../../dist/build-
|
|
129
|
+
return import('../../dist/build-cac1a859.esm.js');
|
|
128
130
|
|
|
129
131
|
case 13:
|
|
130
132
|
_context2.t0 = _context2.sent;
|
|
@@ -135,7 +137,7 @@ var run = function run() {
|
|
|
135
137
|
return buildCommand.default();
|
|
136
138
|
|
|
137
139
|
case 17:
|
|
138
|
-
shouldAlsoCompile = !options
|
|
140
|
+
shouldAlsoCompile = !options.buildOnly;
|
|
139
141
|
|
|
140
142
|
if (!shouldAlsoCompile) {
|
|
141
143
|
_context2.next = 25;
|
|
@@ -144,12 +146,14 @@ var run = function run() {
|
|
|
144
146
|
|
|
145
147
|
console.log('');
|
|
146
148
|
_context2.next = 22;
|
|
147
|
-
return import('../../dist/compile-html-
|
|
149
|
+
return import('../../dist/compile-html-4361a0b3.esm.js');
|
|
148
150
|
|
|
149
151
|
case 22:
|
|
150
152
|
compileHtmlCommand = _context2.sent;
|
|
151
153
|
_context2.next = 25;
|
|
152
|
-
return compileHtmlCommand.default(
|
|
154
|
+
return compileHtmlCommand.default({
|
|
155
|
+
printSecurityHeaders: false
|
|
156
|
+
});
|
|
153
157
|
|
|
154
158
|
case 25:
|
|
155
159
|
case "end":
|
|
@@ -164,7 +168,9 @@ var run = function run() {
|
|
|
164
168
|
};
|
|
165
169
|
}()); // Command: compile-html
|
|
166
170
|
|
|
167
|
-
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.'
|
|
171
|
+
cli.command('compile-html', 'Compiles "index.html.template" file into a "index.html" with all the required runtime configuration. The security headers are also compiled and injected into the "index.html".').option('--transformer <path>', '(optional) The path to a JS module that can be used to generate a configuration for a specific cloud provider (e.g. Vercel, Netlify).').option('--print-security-headers', '(optional) If defined, the compiled security headers are printed to stdout.', {
|
|
172
|
+
default: false
|
|
173
|
+
}).action( /*#__PURE__*/function () {
|
|
168
174
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(options) {
|
|
169
175
|
var compileHtmlCommand;
|
|
170
176
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
@@ -177,7 +183,7 @@ var run = function run() {
|
|
|
177
183
|
|
|
178
184
|
process.env.NODE_ENV = 'production';
|
|
179
185
|
_context3.next = 4;
|
|
180
|
-
return import('../../dist/compile-html-
|
|
186
|
+
return import('../../dist/compile-html-4361a0b3.esm.js');
|
|
181
187
|
|
|
182
188
|
case 4:
|
|
183
189
|
compileHtmlCommand = _context3.sent;
|
|
@@ -243,7 +249,7 @@ var run = function run() {
|
|
|
243
249
|
|
|
244
250
|
process.env.NODE_ENV = 'production';
|
|
245
251
|
_context5.next = 4;
|
|
246
|
-
return import('../../dist/login-
|
|
252
|
+
return import('../../dist/login-435f4c2b.esm.js');
|
|
247
253
|
|
|
248
254
|
case 4:
|
|
249
255
|
loginCommand = _context5.sent;
|
|
@@ -263,7 +269,9 @@ var run = function run() {
|
|
|
263
269
|
};
|
|
264
270
|
}()); // Command: config:sync
|
|
265
271
|
|
|
266
|
-
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.'
|
|
272
|
+
cli.command('config:sync', 'Synchronizes the local Custom Application config with the Merchant Center. A new Custom Application will be created if none existed, otherwise it will be updated.').option('--dry-run', '(optional) Executes the command but does not send any mutation request.', {
|
|
273
|
+
default: false
|
|
274
|
+
}).action( /*#__PURE__*/function () {
|
|
267
275
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(options) {
|
|
268
276
|
var configSyncCommand;
|
|
269
277
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
@@ -276,7 +284,7 @@ var run = function run() {
|
|
|
276
284
|
|
|
277
285
|
process.env.NODE_ENV = 'production';
|
|
278
286
|
_context6.next = 4;
|
|
279
|
-
return import('../../dist/config-sync-
|
|
287
|
+
return import('../../dist/config-sync-a6565737.esm.js');
|
|
280
288
|
|
|
281
289
|
case 4:
|
|
282
290
|
configSyncCommand = _context6.sent;
|
|
@@ -13,7 +13,7 @@ var FileSizeReporter = require('react-dev-utils/FileSizeReporter');
|
|
|
13
13
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
14
14
|
var assets = require('@commercetools-frontend/assets');
|
|
15
15
|
var paths = require('./paths-16823f56.cjs.dev.js');
|
|
16
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
16
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-4e58ee43.cjs.dev.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
19
19
|
require('fs');
|
|
@@ -42,10 +42,10 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
42
42
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
44
44
|
require('./vendors-to-transpile-b51af5d3.cjs.dev.js');
|
|
45
|
-
require('./create-postcss-config-
|
|
45
|
+
require('./create-postcss-config-07259760.cjs.dev.js');
|
|
46
46
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
47
47
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
48
|
-
require('./package-
|
|
48
|
+
require('./package-8a5733b4.cjs.dev.js');
|
|
49
49
|
require('./has-jsx-runtime-3d4bb633.cjs.dev.js');
|
|
50
50
|
|
|
51
51
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -13,7 +13,7 @@ var FileSizeReporter = require('react-dev-utils/FileSizeReporter');
|
|
|
13
13
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
14
14
|
var assets = require('@commercetools-frontend/assets');
|
|
15
15
|
var paths = require('./paths-76b66e74.cjs.prod.js');
|
|
16
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
16
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-e894ffc1.cjs.prod.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
18
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
19
19
|
require('fs');
|
|
@@ -42,10 +42,10 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
42
42
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
44
44
|
require('./vendors-to-transpile-367e0ba8.cjs.prod.js');
|
|
45
|
-
require('./create-postcss-config-
|
|
45
|
+
require('./create-postcss-config-c1122bfa.cjs.prod.js');
|
|
46
46
|
require('@babel/runtime-corejs3/helpers/toConsumableArray');
|
|
47
47
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
48
|
-
require('./package-
|
|
48
|
+
require('./package-fab41a01.cjs.prod.js');
|
|
49
49
|
require('./has-jsx-runtime-0b03b72e.cjs.prod.js');
|
|
50
50
|
|
|
51
51
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -11,7 +11,7 @@ import FileSizeReporter from 'react-dev-utils/FileSizeReporter';
|
|
|
11
11
|
import printBuildError from 'react-dev-utils/printBuildError';
|
|
12
12
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
13
13
|
import { p as paths } from './paths-ed23d5a1.esm.js';
|
|
14
|
-
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-
|
|
14
|
+
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-331c8877.esm.js';
|
|
15
15
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
16
16
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
17
17
|
import 'fs';
|
|
@@ -40,10 +40,10 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
|
|
|
40
40
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
41
41
|
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
42
42
|
import './vendors-to-transpile-68e03526.esm.js';
|
|
43
|
-
import './create-postcss-config-
|
|
43
|
+
import './create-postcss-config-9e14f015.esm.js';
|
|
44
44
|
import '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
45
45
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
46
|
-
import './package-
|
|
46
|
+
import './package-8b6676c0.esm.js';
|
|
47
47
|
import './has-jsx-runtime-8314226e.esm.js';
|
|
48
48
|
|
|
49
49
|
var measureFileSizesBeforeBuild = FileSizeReporter.measureFileSizesBeforeBuild;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-b51af5d3.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "21.8.
|
|
8
|
+
var version = "21.8.1";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-367e0ba8.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "21.8.
|
|
8
|
+
var version = "21.8.1";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { v as vendorsToTranspile } from './vendors-to-transpile-68e03526.esm.js';
|
|
2
2
|
|
|
3
3
|
// NOTE: This string will be replaced on build time with the package version.
|
|
4
|
-
var version = "21.8.
|
|
4
|
+
var version = "21.8.1";
|
|
5
5
|
|
|
6
6
|
// These exports are deprecated.
|
|
7
7
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -11,71 +11,65 @@ import 'path';
|
|
|
11
11
|
|
|
12
12
|
var appDirectory = fs.realpathSync(process.cwd());
|
|
13
13
|
|
|
14
|
-
function run() {
|
|
14
|
+
function run(_x) {
|
|
15
15
|
return _run.apply(this, arguments);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function _run() {
|
|
19
|
-
_run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
20
|
-
var
|
|
21
|
-
compiled,
|
|
22
|
-
transformerPath,
|
|
23
|
-
transformerFn,
|
|
24
|
-
_context,
|
|
25
|
-
_args = arguments;
|
|
19
|
+
_run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
|
|
20
|
+
var compiled, transformerPath, transformerFn, _context;
|
|
26
21
|
|
|
27
22
|
return _regeneratorRuntime.wrap(function _callee$(_context2) {
|
|
28
23
|
while (1) {
|
|
29
24
|
switch (_context2.prev = _context2.next) {
|
|
30
25
|
case 0:
|
|
31
|
-
options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
32
26
|
console.log('Compiling index.html...');
|
|
33
|
-
_context2.next =
|
|
27
|
+
_context2.next = 3;
|
|
34
28
|
return compileHtml(paths.appIndexHtmlTemplate);
|
|
35
29
|
|
|
36
|
-
case
|
|
30
|
+
case 3:
|
|
37
31
|
compiled = _context2.sent;
|
|
38
32
|
fs.writeFileSync(paths.appIndexHtml, compiled.indexHtmlContent, {
|
|
39
33
|
encoding: 'utf8'
|
|
40
34
|
});
|
|
41
35
|
|
|
42
36
|
if (!options.transformer) {
|
|
43
|
-
_context2.next =
|
|
37
|
+
_context2.next = 17;
|
|
44
38
|
break;
|
|
45
39
|
}
|
|
46
40
|
|
|
47
|
-
_context2.prev =
|
|
41
|
+
_context2.prev = 6;
|
|
48
42
|
transformerPath = require.resolve(options.transformer, {
|
|
49
43
|
paths: [appDirectory]
|
|
50
44
|
});
|
|
51
45
|
transformerFn = require(transformerPath);
|
|
52
46
|
transformerFn(compiled);
|
|
53
|
-
_context2.next =
|
|
47
|
+
_context2.next = 15;
|
|
54
48
|
break;
|
|
55
49
|
|
|
56
|
-
case
|
|
57
|
-
_context2.prev =
|
|
58
|
-
_context2.t0 = _context2["catch"](
|
|
50
|
+
case 12:
|
|
51
|
+
_context2.prev = 12;
|
|
52
|
+
_context2.t0 = _context2["catch"](6);
|
|
59
53
|
throw new Error(_concatInstanceProperty(_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, _context2.t0 instanceof Error ? _context2.t0.stack : ''));
|
|
60
54
|
|
|
61
|
-
case
|
|
62
|
-
_context2.next =
|
|
55
|
+
case 15:
|
|
56
|
+
_context2.next = 18;
|
|
63
57
|
break;
|
|
64
58
|
|
|
65
|
-
case
|
|
66
|
-
if (options
|
|
59
|
+
case 17:
|
|
60
|
+
if (options.printSecurityHeaders) {
|
|
67
61
|
console.log(_JSON$stringify(compiled.headers));
|
|
68
62
|
}
|
|
69
63
|
|
|
70
|
-
case
|
|
64
|
+
case 18:
|
|
71
65
|
console.log(chalk.green('Compiled successfully.\n'));
|
|
72
66
|
|
|
73
|
-
case
|
|
67
|
+
case 19:
|
|
74
68
|
case "end":
|
|
75
69
|
return _context2.stop();
|
|
76
70
|
}
|
|
77
71
|
}
|
|
78
|
-
}, _callee, null, [[
|
|
72
|
+
}, _callee, null, [[6, 12]]);
|
|
79
73
|
}));
|
|
80
74
|
return _run.apply(this, arguments);
|
|
81
75
|
}
|
|
@@ -21,71 +21,65 @@ var chalk__default = /*#__PURE__*/_interopDefault(chalk);
|
|
|
21
21
|
|
|
22
22
|
var appDirectory = fs__default["default"].realpathSync(process.cwd());
|
|
23
23
|
|
|
24
|
-
function run() {
|
|
24
|
+
function run(_x) {
|
|
25
25
|
return _run.apply(this, arguments);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
function _run() {
|
|
29
|
-
_run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
|
30
|
-
var
|
|
31
|
-
compiled,
|
|
32
|
-
transformerPath,
|
|
33
|
-
transformerFn,
|
|
34
|
-
_context,
|
|
35
|
-
_args = arguments;
|
|
29
|
+
_run = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(options) {
|
|
30
|
+
var compiled, transformerPath, transformerFn, _context;
|
|
36
31
|
|
|
37
32
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context2) {
|
|
38
33
|
while (1) {
|
|
39
34
|
switch (_context2.prev = _context2.next) {
|
|
40
35
|
case 0:
|
|
41
|
-
options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
42
36
|
console.log('Compiling index.html...');
|
|
43
|
-
_context2.next =
|
|
37
|
+
_context2.next = 3;
|
|
44
38
|
return mcHtmlTemplate.compileHtml(paths.paths.appIndexHtmlTemplate);
|
|
45
39
|
|
|
46
|
-
case
|
|
40
|
+
case 3:
|
|
47
41
|
compiled = _context2.sent;
|
|
48
42
|
fs__default["default"].writeFileSync(paths.paths.appIndexHtml, compiled.indexHtmlContent, {
|
|
49
43
|
encoding: 'utf8'
|
|
50
44
|
});
|
|
51
45
|
|
|
52
46
|
if (!options.transformer) {
|
|
53
|
-
_context2.next =
|
|
47
|
+
_context2.next = 17;
|
|
54
48
|
break;
|
|
55
49
|
}
|
|
56
50
|
|
|
57
|
-
_context2.prev =
|
|
51
|
+
_context2.prev = 6;
|
|
58
52
|
transformerPath = require.resolve(options.transformer, {
|
|
59
53
|
paths: [appDirectory]
|
|
60
54
|
});
|
|
61
55
|
transformerFn = require(transformerPath);
|
|
62
56
|
transformerFn(compiled);
|
|
63
|
-
_context2.next =
|
|
57
|
+
_context2.next = 15;
|
|
64
58
|
break;
|
|
65
59
|
|
|
66
|
-
case
|
|
67
|
-
_context2.prev =
|
|
68
|
-
_context2.t0 = _context2["catch"](
|
|
60
|
+
case 12:
|
|
61
|
+
_context2.prev = 12;
|
|
62
|
+
_context2.t0 = _context2["catch"](6);
|
|
69
63
|
throw new Error(_concatInstanceProperty__default["default"](_context = "Could not load transformer module \"".concat(options.transformer, "\"\n")).call(_context, _context2.t0 instanceof Error ? _context2.t0.stack : ''));
|
|
70
64
|
|
|
71
|
-
case
|
|
72
|
-
_context2.next =
|
|
65
|
+
case 15:
|
|
66
|
+
_context2.next = 18;
|
|
73
67
|
break;
|
|
74
68
|
|
|
75
|
-
case
|
|
76
|
-
if (options
|
|
69
|
+
case 17:
|
|
70
|
+
if (options.printSecurityHeaders) {
|
|
77
71
|
console.log(_JSON$stringify__default["default"](compiled.headers));
|
|
78
72
|
}
|
|
79
73
|
|
|
80
|
-
case
|
|
74
|
+
case 18:
|
|
81
75
|
console.log(chalk__default["default"].green('Compiled successfully.\n'));
|
|
82
76
|
|
|
83
|
-
case
|
|
77
|
+
case 19:
|
|
84
78
|
case "end":
|
|
85
79
|
return _context2.stop();
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
|
-
}, _callee, null, [[
|
|
82
|
+
}, _callee, null, [[6, 12]]);
|
|
89
83
|
}));
|
|
90
84
|
return _run.apply(this, arguments);
|
|
91
85
|
}
|