@modern-js/repo-generator 0.0.0-canary-20220511090154 → 0.0.0-canary-20220517033114

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.
Files changed (2) hide show
  1. package/dist/js/node/main.js +397 -224
  2. package/package.json +26 -14
@@ -278972,10 +278972,13 @@ var _lodash = __webpack_require__(91462);
278972
278972
 
278973
278973
  var _utils = __webpack_require__(84032);
278974
278974
 
278975
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
278976
+
278975
278977
  class I18n {
278976
278978
  constructor() {
278977
- this.language = 'en';
278978
- this.languageMap = {};
278979
+ _defineProperty(this, "language", 'en');
278980
+
278981
+ _defineProperty(this, "languageMap", {});
278979
278982
  }
278980
278983
 
278981
278984
  format(msg, vars) {
@@ -281199,7 +281202,7 @@ exports.MWANewActionGenerators = MWANewActionGenerators;
281199
281202
 
281200
281203
  /***/ }),
281201
281204
 
281202
- /***/ 19846:
281205
+ /***/ 91654:
281203
281206
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
281204
281207
 
281205
281208
  "use strict";
@@ -281243,6 +281246,244 @@ __webpack_require__.d(modern_handlers_namespaceObject, {
281243
281246
  "listNode": () => (ListNode_listNode)
281244
281247
  });
281245
281248
 
281249
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
281250
+ function _objectWithoutPropertiesLoose(source, excluded) {
281251
+ if (source == null) return {};
281252
+ var target = {};
281253
+ var sourceKeys = Object.keys(source);
281254
+ var key, i;
281255
+
281256
+ for (i = 0; i < sourceKeys.length; i++) {
281257
+ key = sourceKeys[i];
281258
+ if (excluded.indexOf(key) >= 0) continue;
281259
+ target[key] = source[key];
281260
+ }
281261
+
281262
+ return target;
281263
+ }
281264
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
281265
+
281266
+ function _objectWithoutProperties(source, excluded) {
281267
+ if (source == null) return {};
281268
+ var target = _objectWithoutPropertiesLoose(source, excluded);
281269
+ var key, i;
281270
+
281271
+ if (Object.getOwnPropertySymbols) {
281272
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
281273
+
281274
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
281275
+ key = sourceSymbolKeys[i];
281276
+ if (excluded.indexOf(key) >= 0) continue;
281277
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
281278
+ target[key] = source[key];
281279
+ }
281280
+ }
281281
+
281282
+ return target;
281283
+ }
281284
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
281285
+ function _arrayLikeToArray(arr, len) {
281286
+ if (len == null || len > arr.length) len = arr.length;
281287
+
281288
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
281289
+ arr2[i] = arr[i];
281290
+ }
281291
+
281292
+ return arr2;
281293
+ }
281294
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
281295
+
281296
+ function _unsupportedIterableToArray(o, minLen) {
281297
+ if (!o) return;
281298
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
281299
+ var n = Object.prototype.toString.call(o).slice(8, -1);
281300
+ if (n === "Object" && o.constructor) n = o.constructor.name;
281301
+ if (n === "Map" || n === "Set") return Array.from(o);
281302
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
281303
+ }
281304
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
281305
+
281306
+ function _createForOfIteratorHelper(o, allowArrayLike) {
281307
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
281308
+
281309
+ if (!it) {
281310
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
281311
+ if (it) o = it;
281312
+ var i = 0;
281313
+
281314
+ var F = function F() {};
281315
+
281316
+ return {
281317
+ s: F,
281318
+ n: function n() {
281319
+ if (i >= o.length) return {
281320
+ done: true
281321
+ };
281322
+ return {
281323
+ done: false,
281324
+ value: o[i++]
281325
+ };
281326
+ },
281327
+ e: function e(_e) {
281328
+ throw _e;
281329
+ },
281330
+ f: F
281331
+ };
281332
+ }
281333
+
281334
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
281335
+ }
281336
+
281337
+ var normalCompletion = true,
281338
+ didErr = false,
281339
+ err;
281340
+ return {
281341
+ s: function s() {
281342
+ it = it.call(o);
281343
+ },
281344
+ n: function n() {
281345
+ var step = it.next();
281346
+ normalCompletion = step.done;
281347
+ return step;
281348
+ },
281349
+ e: function e(_e2) {
281350
+ didErr = true;
281351
+ err = _e2;
281352
+ },
281353
+ f: function f() {
281354
+ try {
281355
+ if (!normalCompletion && it["return"] != null) it["return"]();
281356
+ } finally {
281357
+ if (didErr) throw err;
281358
+ }
281359
+ }
281360
+ };
281361
+ }
281362
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js
281363
+ function _defineProperty(obj, key, value) {
281364
+ if (key in obj) {
281365
+ Object.defineProperty(obj, key, {
281366
+ value: value,
281367
+ enumerable: true,
281368
+ configurable: true,
281369
+ writable: true
281370
+ });
281371
+ } else {
281372
+ obj[key] = value;
281373
+ }
281374
+
281375
+ return obj;
281376
+ }
281377
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
281378
+
281379
+
281380
+ function ownKeys(object, enumerableOnly) {
281381
+ var keys = Object.keys(object);
281382
+
281383
+ if (Object.getOwnPropertySymbols) {
281384
+ var symbols = Object.getOwnPropertySymbols(object);
281385
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
281386
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
281387
+ })), keys.push.apply(keys, symbols);
281388
+ }
281389
+
281390
+ return keys;
281391
+ }
281392
+
281393
+ function _objectSpread2(target) {
281394
+ for (var i = 1; i < arguments.length; i++) {
281395
+ var source = null != arguments[i] ? arguments[i] : {};
281396
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
281397
+ _defineProperty(target, key, source[key]);
281398
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
281399
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
281400
+ });
281401
+ }
281402
+
281403
+ return target;
281404
+ }
281405
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
281406
+
281407
+ function _arrayWithoutHoles(arr) {
281408
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
281409
+ }
281410
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
281411
+ function _iterableToArray(iter) {
281412
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
281413
+ }
281414
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
281415
+ function _nonIterableSpread() {
281416
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
281417
+ }
281418
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
281419
+
281420
+
281421
+
281422
+
281423
+ function _toConsumableArray(arr) {
281424
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
281425
+ }
281426
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
281427
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
281428
+ try {
281429
+ var info = gen[key](arg);
281430
+ var value = info.value;
281431
+ } catch (error) {
281432
+ reject(error);
281433
+ return;
281434
+ }
281435
+
281436
+ if (info.done) {
281437
+ resolve(value);
281438
+ } else {
281439
+ Promise.resolve(value).then(_next, _throw);
281440
+ }
281441
+ }
281442
+
281443
+ function _asyncToGenerator(fn) {
281444
+ return function () {
281445
+ var self = this,
281446
+ args = arguments;
281447
+ return new Promise(function (resolve, reject) {
281448
+ var gen = fn.apply(self, args);
281449
+
281450
+ function _next(value) {
281451
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
281452
+ }
281453
+
281454
+ function _throw(err) {
281455
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
281456
+ }
281457
+
281458
+ _next(undefined);
281459
+ });
281460
+ };
281461
+ }
281462
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
281463
+ function _classCallCheck(instance, Constructor) {
281464
+ if (!(instance instanceof Constructor)) {
281465
+ throw new TypeError("Cannot call a class as a function");
281466
+ }
281467
+ }
281468
+ ;// CONCATENATED MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/helpers/esm/createClass.js
281469
+ function _defineProperties(target, props) {
281470
+ for (var i = 0; i < props.length; i++) {
281471
+ var descriptor = props[i];
281472
+ descriptor.enumerable = descriptor.enumerable || false;
281473
+ descriptor.configurable = true;
281474
+ if ("value" in descriptor) descriptor.writable = true;
281475
+ Object.defineProperty(target, descriptor.key, descriptor);
281476
+ }
281477
+ }
281478
+
281479
+ function _createClass(Constructor, protoProps, staticProps) {
281480
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
281481
+ if (staticProps) _defineProperties(Constructor, staticProps);
281482
+ Object.defineProperty(Constructor, "prototype", {
281483
+ writable: false
281484
+ });
281485
+ return Constructor;
281486
+ }
281246
281487
  // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/regenerator/index.js
281247
281488
  var regenerator = __webpack_require__(1036);
281248
281489
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
@@ -281304,13 +281545,16 @@ function getObjKeyMap(obj, prefix = '') {
281304
281545
  return result;
281305
281546
  }
281306
281547
  ;// CONCATENATED MODULE: ../../../cli/plugin-i18n/dist/js/modern/index.js
281548
+ function modern_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
281549
+
281307
281550
 
281308
281551
 
281309
281552
 
281310
281553
  class I18n {
281311
281554
  constructor() {
281312
- this.language = 'en';
281313
- this.languageMap = {};
281555
+ modern_defineProperty(this, "language", 'en');
281556
+
281557
+ modern_defineProperty(this, "languageMap", {});
281314
281558
  }
281315
281559
 
281316
281560
  format(msg, vars) {
@@ -281978,11 +282222,11 @@ const EnableSassSchema = {
281978
282222
  items: BooleanSchemas
281979
282223
  };
281980
282224
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/module/project.js
281981
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282225
+ function project_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
281982
282226
 
281983
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282227
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? project_ownKeys(Object(source), !0).forEach(function (key) { project_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : project_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
281984
282228
 
281985
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282229
+ function project_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
281986
282230
 
281987
282231
 
281988
282232
 
@@ -282018,11 +282262,11 @@ const ModuleDefaultConfig = {
282018
282262
  enableSass: BooleanConfig.NO
282019
282263
  };
282020
282264
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/monorepo/project.js
282021
- function project_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282265
+ function monorepo_project_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282022
282266
 
282023
- function project_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? project_ownKeys(Object(source), !0).forEach(function (key) { project_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : project_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282267
+ function project_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? monorepo_project_ownKeys(Object(source), !0).forEach(function (key) { monorepo_project_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : monorepo_project_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282024
282268
 
282025
- function project_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282269
+ function monorepo_project_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282026
282270
 
282027
282271
 
282028
282272
 
@@ -282330,23 +282574,9 @@ class FsMaterial {
282330
282574
 
282331
282575
  }
282332
282576
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/utils/file.js
282333
- function file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282334
-
282335
- function file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? file_ownKeys(Object(source), !0).forEach(function (key) { file_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282336
282577
 
282337
- function file_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282338
282578
 
282339
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
282340
282579
 
282341
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
282342
-
282343
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
282344
-
282345
-
282346
-
282347
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
282348
-
282349
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
282350
282580
 
282351
282581
 
282352
282582
 
@@ -282546,7 +282776,7 @@ function _addManyFiles() {
282546
282776
  templateFile = _step.value;
282547
282777
  absTemplatePath = external_path_default().resolve(templatePath, templateFile);
282548
282778
  targetFile = dropFileRootPath(templateFile, config.templateBase);
282549
- fileCfg = file_objectSpread(file_objectSpread({}, config), {}, {
282779
+ fileCfg = _objectSpread2(_objectSpread2({}, config), {}, {
282550
282780
  file: external_path_default().join(config.destination, config.fileNameFunc ? config.fileNameFunc(targetFile) : targetFile),
282551
282781
  templateFile: absTemplatePath,
282552
282782
  force: true
@@ -282592,33 +282822,26 @@ function _addManyFiles() {
282592
282822
  var lib = __webpack_require__(95309);
282593
282823
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
282594
282824
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/handlebars.js
282595
- function handlebars_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282596
-
282597
- function handlebars_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? handlebars_ownKeys(Object(source), !0).forEach(function (key) { handlebars_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : handlebars_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282598
-
282599
- function handlebars_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282600
282825
 
282601
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
282602
282826
 
282603
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
282604
282827
 
282605
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
282606
282828
 
282607
282829
 
282608
282830
  var PluginHandlebarsAPI = /*#__PURE__*/function () {
282609
282831
  function PluginHandlebarsAPI() {
282610
282832
  _classCallCheck(this, PluginHandlebarsAPI);
282611
282833
 
282612
- this.helpers = {};
282613
- this.partials = {};
282834
+ _defineProperty(this, "helpers", {});
282835
+
282836
+ _defineProperty(this, "partials", {});
282614
282837
  }
282615
282838
 
282616
282839
  _createClass(PluginHandlebarsAPI, [{
282617
282840
  key: "renderString",
282618
282841
  value: function renderString(template, data) {
282619
- var helpers = handlebars_objectSpread({}, this.helpers);
282842
+ var helpers = _objectSpread2({}, this.helpers);
282620
282843
 
282621
- var partials = handlebars_objectSpread({}, this.partials);
282844
+ var partials = _objectSpread2({}, this.partials);
282622
282845
 
282623
282846
  Object.keys(helpers).forEach(function (h) {
282624
282847
  return lib.registerHelper(h, helpers[h]);
@@ -282651,23 +282874,11 @@ var PluginHandlebarsAPI = /*#__PURE__*/function () {
282651
282874
  return PluginHandlebarsAPI;
282652
282875
  }();
282653
282876
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/file.js
282654
- function context_file_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
282655
-
282656
- function context_file_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? context_file_ownKeys(Object(source), !0).forEach(function (key) { context_file_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : context_file_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282657
-
282658
- function context_file_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
282659
-
282660
-
282661
282877
 
282662
- function file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
282663
282878
 
282664
- function file_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { file_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
282665
282879
 
282666
- function file_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
282667
282880
 
282668
- function file_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
282669
282881
 
282670
- function file_createClass(Constructor, protoProps, staticProps) { if (protoProps) file_defineProperties(Constructor.prototype, protoProps); if (staticProps) file_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
282671
282882
 
282672
282883
 
282673
282884
 
@@ -282686,17 +282897,21 @@ var file_FileType;
282686
282897
 
282687
282898
  var PluginFileAPI = /*#__PURE__*/function () {
282688
282899
  function PluginFileAPI() {
282689
- file_classCallCheck(this, PluginFileAPI);
282900
+ _classCallCheck(this, PluginFileAPI);
282901
+
282902
+ _defineProperty(this, "projectPath", '');
282903
+
282904
+ _defineProperty(this, "templatePath", '');
282905
+
282906
+ _defineProperty(this, "handlebarAPI", new PluginHandlebarsAPI());
282907
+
282908
+ _defineProperty(this, "jsonAPI", void 0);
282690
282909
 
282691
- this.projectPath = '';
282692
- this.templatePath = '';
282693
- this.handlebarAPI = new PluginHandlebarsAPI();
282694
- this.jsonAPI = void 0;
282695
282910
  // 解决 renderString 使用 this 指向错误问题
282696
282911
  this.renderString = this.renderString.bind(this);
282697
282912
  }
282698
282913
 
282699
- file_createClass(PluginFileAPI, [{
282914
+ _createClass(PluginFileAPI, [{
282700
282915
  key: "context",
282701
282916
  get: function get() {
282702
282917
  return {
@@ -282736,7 +282951,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282736
282951
  }, {
282737
282952
  key: "addFile",
282738
282953
  value: function () {
282739
- var _addFile2 = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(params) {
282954
+ var _addFile2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(params) {
282740
282955
  return regenerator_default().wrap(function _callee$(_context) {
282741
282956
  while (1) {
282742
282957
  switch (_context.prev = _context.next) {
@@ -282761,7 +282976,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282761
282976
  }, {
282762
282977
  key: "addManyFiles",
282763
282978
  value: function () {
282764
- var _addManyFiles2 = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(params) {
282979
+ var _addManyFiles2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(params) {
282765
282980
  return regenerator_default().wrap(function _callee2$(_context2) {
282766
282981
  while (1) {
282767
282982
  switch (_context2.prev = _context2.next) {
@@ -282786,7 +283001,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282786
283001
  }, {
282787
283002
  key: "updateJSONFile",
282788
283003
  value: function () {
282789
- var _updateJSONFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(fileName, updateInfo) {
283004
+ var _updateJSONFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(fileName, updateInfo) {
282790
283005
  var fsMaterial;
282791
283006
  return regenerator_default().wrap(function _callee3$(_context3) {
282792
283007
  while (1) {
@@ -282797,7 +283012,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282797
283012
  return this.jsonAPI.update(fsMaterial.get(fileName), {
282798
283013
  query: {},
282799
283014
  update: {
282800
- $set: context_file_objectSpread({}, updateInfo)
283015
+ $set: _objectSpread2({}, updateInfo)
282801
283016
  }
282802
283017
  });
282803
283018
 
@@ -282818,7 +283033,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282818
283033
  }, {
282819
283034
  key: "updateModernConfig",
282820
283035
  value: function () {
282821
- var _updateModernConfig = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(updateInfo) {
283036
+ var _updateModernConfig = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(updateInfo) {
282822
283037
  var update;
282823
283038
  return regenerator_default().wrap(function _callee4$(_context4) {
282824
283039
  while (1) {
@@ -282848,7 +283063,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282848
283063
  }, {
282849
283064
  key: "updateTextRawFile",
282850
283065
  value: function () {
282851
- var _updateTextRawFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(fileName, update) {
283066
+ var _updateTextRawFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(fileName, update) {
282852
283067
  var content, newContent;
282853
283068
  return regenerator_default().wrap(function _callee5$(_context5) {
282854
283069
  while (1) {
@@ -282880,7 +283095,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282880
283095
  }, {
282881
283096
  key: "rmFile",
282882
283097
  value: function () {
282883
- var _rmFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(fileName) {
283098
+ var _rmFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(fileName) {
282884
283099
  var file;
282885
283100
  return regenerator_default().wrap(function _callee6$(_context6) {
282886
283101
  while (1) {
@@ -282916,7 +283131,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282916
283131
  }, {
282917
283132
  key: "rmDir",
282918
283133
  value: function () {
282919
- var _rmDir = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(dirName) {
283134
+ var _rmDir = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(dirName) {
282920
283135
  var dir, stat;
282921
283136
  return regenerator_default().wrap(function _callee7$(_context7) {
282922
283137
  while (1) {
@@ -282965,7 +283180,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282965
283180
  }, {
282966
283181
  key: "isFileExit",
282967
283182
  value: function () {
282968
- var _isFileExit = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8(fileName) {
283183
+ var _isFileExit = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8(fileName) {
282969
283184
  return regenerator_default().wrap(function _callee8$(_context8) {
282970
283185
  while (1) {
282971
283186
  switch (_context8.prev = _context8.next) {
@@ -282989,7 +283204,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282989
283204
  }, {
282990
283205
  key: "readDir",
282991
283206
  value: function () {
282992
- var _readDir = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee9(dir) {
283207
+ var _readDir = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee9(dir) {
282993
283208
  return regenerator_default().wrap(function _callee9$(_context9) {
282994
283209
  while (1) {
282995
283210
  switch (_context9.prev = _context9.next) {
@@ -283139,27 +283354,22 @@ class GitAPI {
283139
283354
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/git.js
283140
283355
 
283141
283356
 
283142
- function git_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
283143
-
283144
- function git_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { git_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { git_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
283145
-
283146
- function git_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283147
283357
 
283148
- function git_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
283149
283358
 
283150
- function git_createClass(Constructor, protoProps, staticProps) { if (protoProps) git_defineProperties(Constructor.prototype, protoProps); if (staticProps) git_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
283151
283359
 
283152
283360
 
283153
283361
  var PluginGitAPI = /*#__PURE__*/function () {
283154
283362
  function PluginGitAPI() {
283155
- git_classCallCheck(this, PluginGitAPI);
283363
+ _classCallCheck(this, PluginGitAPI);
283156
283364
 
283157
- this.gitMessage = '';
283158
- this.gitApi = void 0;
283159
- this.projectPath = void 0;
283365
+ _defineProperty(this, "gitMessage", '');
283366
+
283367
+ _defineProperty(this, "gitApi", void 0);
283368
+
283369
+ _defineProperty(this, "projectPath", void 0);
283160
283370
  }
283161
283371
 
283162
- git_createClass(PluginGitAPI, [{
283372
+ _createClass(PluginGitAPI, [{
283163
283373
  key: "context",
283164
283374
  get: function get() {
283165
283375
  return {
@@ -283189,7 +283399,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283189
283399
  }, {
283190
283400
  key: "isInGitRepo",
283191
283401
  value: function () {
283192
- var _isInGitRepo = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283402
+ var _isInGitRepo = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283193
283403
  return regenerator_default().wrap(function _callee$(_context) {
283194
283404
  while (1) {
283195
283405
  switch (_context.prev = _context.next) {
@@ -283213,7 +283423,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283213
283423
  }, {
283214
283424
  key: "initGitRepo",
283215
283425
  value: function () {
283216
- var _initGitRepo = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
283426
+ var _initGitRepo = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
283217
283427
  return regenerator_default().wrap(function _callee2$(_context2) {
283218
283428
  while (1) {
283219
283429
  switch (_context2.prev = _context2.next) {
@@ -283238,7 +283448,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283238
283448
  }, {
283239
283449
  key: "gitAddAndCommit",
283240
283450
  value: function () {
283241
- var _gitAddAndCommit = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
283451
+ var _gitAddAndCommit = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
283242
283452
  var commitMessage,
283243
283453
  _args3 = arguments;
283244
283454
  return regenerator_default().wrap(function _callee3$(_context3) {
@@ -283268,17 +283478,10 @@ var PluginGitAPI = /*#__PURE__*/function () {
283268
283478
  return PluginGitAPI;
283269
283479
  }();
283270
283480
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/input.js
283271
- function input_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
283272
-
283273
- function input_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? input_ownKeys(Object(source), !0).forEach(function (key) { input_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : input_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
283274
283481
 
283275
- function input_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
283276
283482
 
283277
- function input_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283278
283483
 
283279
- function input_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
283280
283484
 
283281
- function input_createClass(Constructor, protoProps, staticProps) { if (protoProps) input_defineProperties(Constructor.prototype, protoProps); if (staticProps) input_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
283282
283485
 
283283
283486
  /* eslint-disable eslint-comments/disable-enable-pair */
283284
283487
 
@@ -283297,16 +283500,20 @@ var PluginInputContext = /*#__PURE__*/function () {
283297
283500
  // plugin add input
283298
283501
  // plugin add option
283299
283502
  function PluginInputContext(inputs) {
283300
- input_classCallCheck(this, PluginInputContext);
283503
+ _classCallCheck(this, PluginInputContext);
283504
+
283505
+ _defineProperty(this, "inputValue", {});
283506
+
283507
+ _defineProperty(this, "inputs", []);
283508
+
283509
+ _defineProperty(this, "extendInputMap", {});
283510
+
283511
+ _defineProperty(this, "extendOptionMap", {});
283301
283512
 
283302
- this.inputValue = {};
283303
- this.inputs = [];
283304
- this.extendInputMap = {};
283305
- this.extendOptionMap = {};
283306
283513
  this.inputs = inputs;
283307
283514
  }
283308
283515
 
283309
- input_createClass(PluginInputContext, [{
283516
+ _createClass(PluginInputContext, [{
283310
283517
  key: "context",
283311
283518
  get: function get() {
283312
283519
  return {
@@ -283472,7 +283679,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283472
283679
  var _input = this.getFinalInput(originInput);
283473
283680
 
283474
283681
  var targetValue = (0,lodash.isFunction)(value) ? value(_input) : value;
283475
- this.inputs[index] = this.transformInput(input_objectSpread(input_objectSpread({}, originInput), {}, input_defineProperty({}, field, targetValue)));
283682
+ this.inputs[index] = this.transformInput(_objectSpread2(_objectSpread2({}, originInput), {}, _defineProperty({}, field, targetValue)));
283476
283683
 
283477
283684
  if (field === 'options') {
283478
283685
  this.resetExtendOptionMap(key);
@@ -283500,7 +283707,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283500
283707
 
283501
283708
  var _targetValue = (0,lodash.isFunction)(value) ? value(_input2) : value;
283502
283709
 
283503
- this.extendInputMap[inputKey].before[beforeIndex] = input_objectSpread(input_objectSpread({}, originBeforeInput), {}, input_defineProperty({}, field, _targetValue));
283710
+ this.extendInputMap[inputKey].before[beforeIndex] = _objectSpread2(_objectSpread2({}, originBeforeInput), {}, _defineProperty({}, field, _targetValue));
283504
283711
 
283505
283712
  if (field === 'options') {
283506
283713
  this.resetExtendOptionMap(key);
@@ -283517,7 +283724,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283517
283724
 
283518
283725
  var _targetValue2 = (0,lodash.isFunction)(value) ? value(_input3) : value;
283519
283726
 
283520
- this.extendInputMap[inputKey].after[afterIndex] = input_objectSpread(input_objectSpread({}, originAfterInput), {}, input_defineProperty({}, field, _targetValue2));
283727
+ this.extendInputMap[inputKey].after[afterIndex] = _objectSpread2(_objectSpread2({}, originAfterInput), {}, _defineProperty({}, field, _targetValue2));
283521
283728
 
283522
283729
  if (field === 'options') {
283523
283730
  this.resetExtendOptionMap(key);
@@ -283646,7 +283853,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283646
283853
  }, {
283647
283854
  key: "initExtendOptionMap",
283648
283855
  value: function initExtendOptionMap(key, optionKey) {
283649
- this.extendOptionMap[key] = this.extendOptionMap[key] || input_defineProperty({}, key, input_defineProperty({}, optionKey, {
283856
+ this.extendOptionMap[key] = this.extendOptionMap[key] || _defineProperty({}, key, _defineProperty({}, optionKey, {
283650
283857
  before: [],
283651
283858
  after: []
283652
283859
  }));
@@ -283802,29 +284009,24 @@ async function pnpmInstall(cwd, registryUrl) {
283802
284009
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/npm.js
283803
284010
 
283804
284011
 
283805
- function npm_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
283806
-
283807
- function npm_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { npm_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { npm_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
283808
-
283809
- function npm_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283810
284012
 
283811
- function npm_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
283812
284013
 
283813
- function npm_createClass(Constructor, protoProps, staticProps) { if (protoProps) npm_defineProperties(Constructor.prototype, protoProps); if (staticProps) npm_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
283814
284014
 
283815
284015
 
283816
284016
 
283817
284017
  var PluginNpmAPI = /*#__PURE__*/function () {
283818
284018
  function PluginNpmAPI(projectPath, packageManager) {
283819
- npm_classCallCheck(this, PluginNpmAPI);
284019
+ _classCallCheck(this, PluginNpmAPI);
284020
+
284021
+ _defineProperty(this, "projectPath", '');
284022
+
284023
+ _defineProperty(this, "packageManager", void 0);
283820
284024
 
283821
- this.projectPath = '';
283822
- this.packageManager = void 0;
283823
284025
  this.projectPath = projectPath;
283824
284026
  this.packageManager = packageManager;
283825
284027
  }
283826
284028
 
283827
- npm_createClass(PluginNpmAPI, [{
284029
+ _createClass(PluginNpmAPI, [{
283828
284030
  key: "method",
283829
284031
  get: function get() {
283830
284032
  return {
@@ -283834,7 +284036,7 @@ var PluginNpmAPI = /*#__PURE__*/function () {
283834
284036
  }, {
283835
284037
  key: "install",
283836
284038
  value: function () {
283837
- var _install = npm_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
284039
+ var _install = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283838
284040
  return regenerator_default().wrap(function _callee$(_context) {
283839
284041
  while (1) {
283840
284042
  switch (_context.prev = _context.next) {
@@ -285477,9 +285679,9 @@ function baseReader_objectSpread(target) { for (var i = 1; i < arguments.length;
285477
285679
 
285478
285680
  function baseReader_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
285479
285681
 
285480
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
285682
+ function baseReader_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = baseReader_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
285481
285683
 
285482
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
285684
+ function baseReader_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
285483
285685
 
285484
285686
 
285485
285687
 
@@ -285637,7 +285839,7 @@ class BaseReader {
285637
285839
  effectedByFields = [],
285638
285840
  action
285639
285841
  } = _ref,
285640
- rest = _objectWithoutProperties(_ref, _excluded);
285842
+ rest = baseReader_objectWithoutProperties(_ref, _excluded);
285641
285843
 
285642
285844
  if (isRoot) {
285643
285845
  // If there is no upper level, there is no linkage, return value options other than linkage
@@ -287069,9 +287271,9 @@ const js_modern_locale_localeKeys = js_modern_locale_i18n.init('zh', {
287069
287271
 
287070
287272
  function modern_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
287071
287273
 
287072
- function modern_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? modern_ownKeys(Object(source), !0).forEach(function (key) { modern_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : modern_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
287274
+ function modern_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? modern_ownKeys(Object(source), !0).forEach(function (key) { js_modern_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : modern_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
287073
287275
 
287074
- function modern_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
287276
+ function js_modern_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
287075
287277
 
287076
287278
 
287077
287279
 
@@ -287751,37 +287953,28 @@ const MonorepoNewAction = async options => {
287751
287953
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/new.js
287752
287954
 
287753
287955
 
287754
- function new_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
287755
287956
 
287756
- function new_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? new_ownKeys(Object(source), !0).forEach(function (key) { new_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : new_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
287757
287957
 
287758
- function new_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
287759
287958
 
287760
- function new_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
287761
287959
 
287762
- function new_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { new_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { new_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
287763
287960
 
287764
- function new_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
287765
287961
 
287766
- function new_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
287962
+ var PluginNewAPI = /*#__PURE__*/function () {
287963
+ function PluginNewAPI(solution, projectPath, inputData) {
287964
+ _classCallCheck(this, PluginNewAPI);
287767
287965
 
287768
- function new_createClass(Constructor, protoProps, staticProps) { if (protoProps) new_defineProperties(Constructor.prototype, protoProps); if (staticProps) new_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
287966
+ _defineProperty(this, "solution", void 0);
287769
287967
 
287968
+ _defineProperty(this, "projectPath", void 0);
287770
287969
 
287970
+ _defineProperty(this, "inputData", void 0);
287771
287971
 
287772
- var PluginNewAPI = /*#__PURE__*/function () {
287773
- function PluginNewAPI(solution, projectPath, inputData) {
287774
- new_classCallCheck(this, PluginNewAPI);
287775
-
287776
- this.solution = void 0;
287777
- this.projectPath = void 0;
287778
- this.inputData = void 0;
287779
287972
  this.solution = solution;
287780
287973
  this.projectPath = projectPath;
287781
287974
  this.inputData = inputData;
287782
287975
  }
287783
287976
 
287784
- new_createClass(PluginNewAPI, [{
287977
+ _createClass(PluginNewAPI, [{
287785
287978
  key: "method",
287786
287979
  get: function get() {
287787
287980
  return {
@@ -287793,7 +287986,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287793
287986
  }, {
287794
287987
  key: "createElement",
287795
287988
  value: function () {
287796
- var _createElement = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(element, params) {
287989
+ var _createElement = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(element, params) {
287797
287990
  return regenerator_default().wrap(function _callee$(_context) {
287798
287991
  while (1) {
287799
287992
  switch (_context.prev = _context.next) {
@@ -287813,7 +288006,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287813
288006
  case 3:
287814
288007
  _context.next = 5;
287815
288008
  return MWANewAction({
287816
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288009
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287817
288010
  actionType: ActionType.Element,
287818
288011
  element: element,
287819
288012
  noNeedInstall: true
@@ -287844,7 +288037,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287844
288037
  }, {
287845
288038
  key: "enableFunc",
287846
288039
  value: function () {
287847
- var _enableFunc = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(func, params) {
288040
+ var _enableFunc = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(func, params) {
287848
288041
  return regenerator_default().wrap(function _callee2$(_context2) {
287849
288042
  while (1) {
287850
288043
  switch (_context2.prev = _context2.next) {
@@ -287864,7 +288057,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287864
288057
  case 3:
287865
288058
  _context2.next = 5;
287866
288059
  return MWANewAction({
287867
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288060
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287868
288061
  actionType: ActionType.Function,
287869
288062
  "function": func,
287870
288063
  noNeedInstall: true
@@ -287891,7 +288084,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287891
288084
  case 9:
287892
288085
  _context2.next = 11;
287893
288086
  return ModuleNewAction({
287894
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288087
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287895
288088
  actionType: ActionType.Function,
287896
288089
  "function": func,
287897
288090
  noNeedInstall: true
@@ -287922,7 +288115,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287922
288115
  }, {
287923
288116
  key: "createSubProject",
287924
288117
  value: function () {
287925
- var _createSubProject = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, params) {
288118
+ var _createSubProject = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, params) {
287926
288119
  return regenerator_default().wrap(function _callee3$(_context3) {
287927
288120
  while (1) {
287928
288121
  switch (_context3.prev = _context3.next) {
@@ -287934,7 +288127,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287934
288127
 
287935
288128
  _context3.next = 3;
287936
288129
  return MonorepoNewAction({
287937
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288130
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287938
288131
  solution: solution,
287939
288132
  noNeedInstall: true
287940
288133
  }, this.inputData), params)),
@@ -287966,17 +288159,9 @@ var PluginNewAPI = /*#__PURE__*/function () {
287966
288159
  return PluginNewAPI;
287967
288160
  }();
287968
288161
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/index.js
287969
- function context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
287970
-
287971
- function context_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? context_ownKeys(Object(source), !0).forEach(function (key) { context_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : context_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
287972
-
287973
- function context_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
287974
288162
 
287975
- function context_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
287976
288163
 
287977
- function context_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
287978
288164
 
287979
- function context_createClass(Constructor, protoProps, staticProps) { if (protoProps) context_defineProperties(Constructor.prototype, protoProps); if (staticProps) context_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
287980
288165
 
287981
288166
 
287982
288167
 
@@ -287998,32 +288183,40 @@ var LifeCycle;
287998
288183
 
287999
288184
  var PluginContext = /*#__PURE__*/function () {
288000
288185
  function PluginContext(inputs, locale) {
288001
- var _this$lifeCycleFuncMa;
288002
-
288003
- context_classCallCheck(this, PluginContext);
288004
-
288005
- this.generator = void 0;
288006
- this.inputContext = void 0;
288007
- this.gitAPI = void 0;
288008
- this.fileAPI = void 0;
288009
- this.npmAPI = void 0;
288010
- this.newAPI = void 0;
288011
- this.locale = void 0;
288012
- this.lifeCycleFuncMap = (_this$lifeCycleFuncMa = {}, context_defineProperty(_this$lifeCycleFuncMa, LifeCycle.OnForged, function () {
288186
+ var _defineProperty2;
288187
+
288188
+ _classCallCheck(this, PluginContext);
288189
+
288190
+ _defineProperty(this, "generator", void 0);
288191
+
288192
+ _defineProperty(this, "inputContext", void 0);
288193
+
288194
+ _defineProperty(this, "gitAPI", void 0);
288195
+
288196
+ _defineProperty(this, "fileAPI", void 0);
288197
+
288198
+ _defineProperty(this, "npmAPI", void 0);
288199
+
288200
+ _defineProperty(this, "newAPI", void 0);
288201
+
288202
+ _defineProperty(this, "locale", void 0);
288203
+
288204
+ _defineProperty(this, "lifeCycleFuncMap", (_defineProperty2 = {}, _defineProperty(_defineProperty2, LifeCycle.OnForged, function () {
288013
288205
  /* empty */
288014
- }), context_defineProperty(_this$lifeCycleFuncMa, LifeCycle.AfterForged, function () {
288206
+ }), _defineProperty(_defineProperty2, LifeCycle.AfterForged, function () {
288015
288207
  /* empty */
288016
- }), _this$lifeCycleFuncMa);
288208
+ }), _defineProperty2));
288209
+
288017
288210
  this.inputContext = new PluginInputContext(inputs);
288018
288211
  this.gitAPI = new PluginGitAPI();
288019
288212
  this.fileAPI = new PluginFileAPI();
288020
288213
  this.locale = locale;
288021
288214
  }
288022
288215
 
288023
- context_createClass(PluginContext, [{
288216
+ _createClass(PluginContext, [{
288024
288217
  key: "context",
288025
288218
  get: function get() {
288026
- return context_objectSpread(context_objectSpread(context_objectSpread(context_objectSpread({
288219
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
288027
288220
  locale: this.locale
288028
288221
  }, this.inputContext.context), this.gitAPI.context), this.fileAPI.context), {}, {
288029
288222
  onForged: this.onForged.bind(this),
@@ -288033,12 +288226,12 @@ var PluginContext = /*#__PURE__*/function () {
288033
288226
  }, {
288034
288227
  key: "forgedAPI",
288035
288228
  get: function get() {
288036
- return context_objectSpread(context_objectSpread({}, this.fileAPI.method), this.newAPI.method);
288229
+ return _objectSpread2(_objectSpread2({}, this.fileAPI.method), this.newAPI.method);
288037
288230
  }
288038
288231
  }, {
288039
288232
  key: "afterForgedAPI",
288040
288233
  get: function get() {
288041
- return context_objectSpread(context_objectSpread({}, this.gitAPI.method), this.npmAPI.method);
288234
+ return _objectSpread2(_objectSpread2({}, this.gitAPI.method), this.npmAPI.method);
288042
288235
  }
288043
288236
  }, {
288044
288237
  key: "handlePrepareContext",
@@ -288086,10 +288279,6 @@ function requireModuleWithVm(module) {
288086
288279
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/utils/index.js
288087
288280
 
288088
288281
 
288089
- function utils_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
288090
-
288091
- function utils_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { utils_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { utils_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
288092
-
288093
288282
 
288094
288283
 
288095
288284
 
@@ -288098,13 +288287,13 @@ function utils_installPlugins(_x, _x2) {
288098
288287
  }
288099
288288
 
288100
288289
  function _installPlugins() {
288101
- _installPlugins = utils_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registryUrl) {
288290
+ _installPlugins = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registryUrl) {
288102
288291
  return regenerator_default().wrap(function _callee2$(_context2) {
288103
288292
  while (1) {
288104
288293
  switch (_context2.prev = _context2.next) {
288105
288294
  case 0:
288106
288295
  return _context2.abrupt("return", Promise.all(plugins.map( /*#__PURE__*/function () {
288107
- var _ref = utils_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288296
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288108
288297
  var _getPackageInfo, name, version, pluginPath;
288109
288298
 
288110
288299
  return regenerator_default().wrap(function _callee$(_context) {
@@ -288190,67 +288379,44 @@ var PluginType;
288190
288379
  PluginType["Custom"] = "custom";
288191
288380
  })(PluginType || (PluginType = {}));
288192
288381
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/index.js
288193
- var treeshaking_excluded = ["generatorPlugin"];
288194
-
288195
- function treeshaking_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = treeshaking_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
288196
-
288197
- function treeshaking_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
288198
-
288199
- function treeshaking_createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = treeshaking_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
288200
288382
 
288201
288383
 
288202
288384
 
288203
- function treeshaking_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
288204
288385
 
288205
- function treeshaking_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? treeshaking_ownKeys(Object(source), !0).forEach(function (key) { treeshaking_defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : treeshaking_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
288206
288386
 
288207
- function treeshaking_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
288208
288387
 
288209
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || treeshaking_unsupportedIterableToArray(arr) || _nonIterableSpread(); }
288210
288388
 
288211
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
288212
288389
 
288213
- function treeshaking_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return treeshaking_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return treeshaking_arrayLikeToArray(o, minLen); }
288214
-
288215
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
288390
+ var treeshaking_excluded = ["generatorPlugin"];
288216
288391
 
288217
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return treeshaking_arrayLikeToArray(arr); }
288218
288392
 
288219
- function treeshaking_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
288220
288393
 
288221
- function treeshaking_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
288222
288394
 
288223
- function treeshaking_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { treeshaking_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { treeshaking_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
288224
288395
 
288225
- function treeshaking_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
288226
288396
 
288227
- function treeshaking_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
288228
288397
 
288229
- function treeshaking_createClass(Constructor, protoProps, staticProps) { if (protoProps) treeshaking_defineProperties(Constructor.prototype, protoProps); if (staticProps) treeshaking_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
288230
288398
 
288231
288399
 
288232
288400
 
288233
288401
 
288234
288402
 
288235
288403
 
288404
+ var GeneratorPlugin = /*#__PURE__*/function () {
288405
+ function GeneratorPlugin(logger, event) {
288406
+ var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';
288236
288407
 
288408
+ _classCallCheck(this, GeneratorPlugin);
288237
288409
 
288410
+ _defineProperty(this, "plugins", []);
288238
288411
 
288412
+ _defineProperty(this, "extendPlugin", {});
288239
288413
 
288414
+ _defineProperty(this, "customPlugin", {});
288240
288415
 
288416
+ _defineProperty(this, "event", void 0);
288241
288417
 
288418
+ _defineProperty(this, "logger", void 0);
288242
288419
 
288243
- var GeneratorPlugin = /*#__PURE__*/function () {
288244
- function GeneratorPlugin(logger, event) {
288245
- var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';
288246
-
288247
- treeshaking_classCallCheck(this, GeneratorPlugin);
288248
-
288249
- this.plugins = [];
288250
- this.extendPlugin = {};
288251
- this.customPlugin = {};
288252
- this.event = void 0;
288253
- this.logger = void 0;
288254
288420
  this.event = event;
288255
288421
  this.logger = logger;
288256
288422
 
@@ -288269,10 +288435,10 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288269
288435
  });
288270
288436
  }
288271
288437
 
288272
- treeshaking_createClass(GeneratorPlugin, [{
288438
+ _createClass(GeneratorPlugin, [{
288273
288439
  key: "setupPlugin",
288274
288440
  value: function () {
288275
- var _setupPlugin = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registry) {
288441
+ var _setupPlugin = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registry) {
288276
288442
  var _this = this;
288277
288443
 
288278
288444
  return regenerator_default().wrap(function _callee2$(_context2) {
@@ -288281,7 +288447,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288281
288447
  case 0:
288282
288448
  _context2.next = 2;
288283
288449
  return Promise.all(plugins.map( /*#__PURE__*/function () {
288284
- var _ref = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288450
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288285
288451
  var pkgJSON, _getPackageInfo, name, pkgVersion, version, _pkgJSON, meta;
288286
288452
 
288287
288453
  return regenerator_default().wrap(function _callee$(_context) {
@@ -288331,7 +288497,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288331
288497
  if (meta.extend) {
288332
288498
  _this.extendPlugin[meta.extend] = [].concat(_toConsumableArray(_this.extendPlugin[meta.extend] || []), [plugin]);
288333
288499
  } else if (meta.type && meta.key) {
288334
- _this.customPlugin[meta.type] = [].concat(_toConsumableArray(_this.customPlugin[meta.type] || []), [treeshaking_objectSpread(treeshaking_objectSpread({}, meta), {}, {
288500
+ _this.customPlugin[meta.type] = [].concat(_toConsumableArray(_this.customPlugin[meta.type] || []), [_objectSpread2(_objectSpread2({}, meta), {}, {
288335
288501
  plugin: plugin
288336
288502
  })]);
288337
288503
  }
@@ -288368,7 +288534,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288368
288534
  value: function getInputSchema(solution) {
288369
288535
  var items = [];
288370
288536
 
288371
- var _iterator = treeshaking_createForOfIteratorHelper(this.plugins),
288537
+ var _iterator = _createForOfIteratorHelper(this.plugins),
288372
288538
  _step;
288373
288539
 
288374
288540
  try {
@@ -288393,7 +288559,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288393
288559
  value: function getInputValue() {
288394
288560
  var result = {};
288395
288561
 
288396
- var _iterator2 = treeshaking_createForOfIteratorHelper(this.plugins),
288562
+ var _iterator2 = _createForOfIteratorHelper(this.plugins),
288397
288563
  _step2;
288398
288564
 
288399
288565
  try {
@@ -288412,7 +288578,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288412
288578
  }, {
288413
288579
  key: "installPlugins",
288414
288580
  value: function () {
288415
- var _installPlugins2 = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, inputData) {
288581
+ var _installPlugins2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, inputData) {
288416
288582
  var plugins, plugin, _iterator3, _step3, info;
288417
288583
 
288418
288584
  return regenerator_default().wrap(function _callee3$(_context3) {
@@ -288441,7 +288607,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288441
288607
 
288442
288608
  case 6:
288443
288609
  this.plugins = _context3.sent;
288444
- _iterator3 = treeshaking_createForOfIteratorHelper(this.plugins);
288610
+ _iterator3 = _createForOfIteratorHelper(this.plugins);
288445
288611
 
288446
288612
  try {
288447
288613
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -288474,7 +288640,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288474
288640
  value: function getGitMessage() {
288475
288641
  var result = '';
288476
288642
 
288477
- var _iterator4 = treeshaking_createForOfIteratorHelper(this.plugins),
288643
+ var _iterator4 = _createForOfIteratorHelper(this.plugins),
288478
288644
  _step4;
288479
288645
 
288480
288646
  try {
@@ -288500,7 +288666,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288500
288666
  }, {
288501
288667
  key: "handleForged",
288502
288668
  value: function () {
288503
- var _handleForged = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(solution, basePath, inputData, projectPath, generatorCore) {
288669
+ var _handleForged = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(solution, basePath, inputData, projectPath, generatorCore) {
288504
288670
  var generatorPlugin, restData, _iterator5, _step5, _info$context3, _info$context4, info, onForgedFunc, _iterator6, _step6, _info$context5, _info, afterForged;
288505
288671
 
288506
288672
  return regenerator_default().wrap(function _callee4$(_context4) {
@@ -288508,7 +288674,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288508
288674
  switch (_context4.prev = _context4.next) {
288509
288675
  case 0:
288510
288676
  this.logger.info(treeshaking_locale_i18n.t(treeshaking_locale_localeKeys.run_plugin));
288511
- generatorPlugin = inputData.generatorPlugin, restData = treeshaking_objectWithoutProperties(inputData, treeshaking_excluded);
288677
+ generatorPlugin = inputData.generatorPlugin, restData = _objectWithoutProperties(inputData, treeshaking_excluded);
288512
288678
 
288513
288679
  if (!(solution !== restData.solution)) {
288514
288680
  _context4.next = 5;
@@ -288522,7 +288688,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288522
288688
  return _context4.abrupt("return");
288523
288689
 
288524
288690
  case 5:
288525
- _iterator5 = treeshaking_createForOfIteratorHelper(this.plugins);
288691
+ _iterator5 = _createForOfIteratorHelper(this.plugins);
288526
288692
  _context4.prev = 6;
288527
288693
 
288528
288694
  _iterator5.s();
@@ -288567,7 +288733,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288567
288733
  return _context4.finish(22);
288568
288734
 
288569
288735
  case 25:
288570
- _iterator6 = treeshaking_createForOfIteratorHelper(this.plugins);
288736
+ _iterator6 = _createForOfIteratorHelper(this.plugins);
288571
288737
  _context4.prev = 26;
288572
288738
 
288573
288739
  _iterator6.s();
@@ -288655,7 +288821,7 @@ var _codesmithApiApp = __webpack_require__(53876);
288655
288821
 
288656
288822
  var _generatorCommon = __webpack_require__(50828);
288657
288823
 
288658
- var _generatorPlugin = __webpack_require__(19846);
288824
+ var _generatorPlugin = __webpack_require__(91654);
288659
288825
 
288660
288826
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
288661
288827
 
@@ -289016,6 +289182,13 @@ module.exports = __webpack_require__(91462);
289016
289182
 
289017
289183
  /***/ }),
289018
289184
 
289185
+ /***/ 78272:
289186
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
289187
+
289188
+ (()=>{var e={113:e=>{"use strict";e.exports=__webpack_require__(6113)},495:(e,r,t)=>{let l=t(113);let{urlAlphabet:a}=t(240);const n=128;let _,u;let fillPool=e=>{if(!_||_.length<e){_=Buffer.allocUnsafe(e*n);l.randomFillSync(_);u=0}else if(u+e>_.length){l.randomFillSync(_);u=0}u+=e};let random=e=>{fillPool(e-=0);return _.subarray(u-e,u)};let customRandom=(e,r,t)=>{let l=(2<<31-Math.clz32(e.length-1|1))-1;let a=Math.ceil(1.6*l*r/e.length);return(n=r)=>{let _="";while(true){let r=t(a);let u=a;while(u--){_+=e[r[u]&l]||"";if(_.length===n)return _}}}};let customAlphabet=(e,r=21)=>customRandom(e,r,random);let nanoid=(e=21)=>{fillPool(e-=0);let r="";for(let t=u-e;t<u;t++){r+=a[_[t]&63]}return r};e.exports={nanoid:nanoid,customAlphabet:customAlphabet,customRandom:customRandom,urlAlphabet:a,random:random}},240:e=>{let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";e.exports={urlAlphabet:r}}};var r={};function __nccwpck_require__(t){var l=r[t];if(l!==undefined){return l.exports}var a=r[t]={exports:{}};var n=true;try{e[t](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[t]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(495);module.exports=t})();
289189
+
289190
+ /***/ }),
289191
+
289019
289192
  /***/ 37540:
289020
289193
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
289021
289194
 
@@ -289456,7 +289629,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
289456
289629
  return (mod && mod.__esModule) ? mod : { "default": mod };
289457
289630
  };
289458
289631
  Object.defineProperty(exports, "__esModule", ({ value: true }));
289459
- exports.inquirer = exports.chokidar = exports.mime = exports.Signale = exports.Command = exports.program = exports.recursiveReaddir = exports.browserslist = exports.dotenvExpand = exports.stripAnsi = exports.gzipSize = exports.filesize = exports.fastGlob = exports.minimist = exports.urlJoin = exports.signale = exports.address = exports.globby = exports.lodash = exports.dotenv = exports.semver = exports.pkgUp = exports.upath = exports.json5 = exports.execa = exports.slash = exports.debug = exports.chalk = exports.yaml = exports.glob = exports.ora = exports.fs = void 0;
289632
+ exports.inquirer = exports.chokidar = exports.mime = exports.Signale = exports.Command = exports.program = exports.recursiveReaddir = exports.browserslist = exports.dotenvExpand = exports.stripAnsi = exports.gzipSize = exports.filesize = exports.fastGlob = exports.minimist = exports.urlJoin = exports.signale = exports.address = exports.globby = exports.lodash = exports.dotenv = exports.semver = exports.nanoid = exports.pkgUp = exports.upath = exports.json5 = exports.execa = exports.slash = exports.debug = exports.chalk = exports.yaml = exports.glob = exports.ora = exports.fs = void 0;
289460
289633
  const import_1 = __webpack_require__(3662);
289461
289634
  var fs_extra_1 = __webpack_require__(29);
289462
289635
  Object.defineProperty(exports, "fs", ({ enumerable: true, get: function () { return __importDefault(fs_extra_1).default; } }));
@@ -289480,6 +289653,8 @@ var upath_1 = __webpack_require__(3409);
289480
289653
  Object.defineProperty(exports, "upath", ({ enumerable: true, get: function () { return __importDefault(upath_1).default; } }));
289481
289654
  var pkg_up_1 = __webpack_require__(24719);
289482
289655
  Object.defineProperty(exports, "pkgUp", ({ enumerable: true, get: function () { return __importDefault(pkg_up_1).default; } }));
289656
+ var nanoid_1 = __webpack_require__(78272);
289657
+ Object.defineProperty(exports, "nanoid", ({ enumerable: true, get: function () { return nanoid_1.nanoid; } }));
289483
289658
  var semver_1 = __webpack_require__(71666);
289484
289659
  Object.defineProperty(exports, "semver", ({ enumerable: true, get: function () { return __importDefault(semver_1).default; } }));
289485
289660
  var dotenv_1 = __webpack_require__(30835);
@@ -290975,16 +291150,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
290975
291150
  Object.defineProperty(exports, "__esModule", ({ value: true }));
290976
291151
  exports.readTsConfigByFile = exports.readTsConfig = void 0;
290977
291152
  const path_1 = __importDefault(__webpack_require__(71017));
291153
+ const compiled_1 = __webpack_require__(62046);
290978
291154
  const readTsConfig = (root) => {
290979
- // import typescript from 'typescript' cause eslint format error.
290980
- const typescript = __webpack_require__(40237);
290981
- return typescript.readConfigFile(path_1.default.resolve(root, './tsconfig.json'), typescript.sys.readFile).config;
291155
+ return (0, exports.readTsConfigByFile)(path_1.default.resolve(root, './tsconfig.json'));
290982
291156
  };
290983
291157
  exports.readTsConfig = readTsConfig;
290984
291158
  const readTsConfigByFile = (filename) => {
290985
- // import typescript from 'typescript' cause eslint format error.
290986
- const typescript = __webpack_require__(40237);
290987
- return typescript.readConfigFile(path_1.default.resolve(filename), typescript.sys.readFile).config;
291159
+ const content = compiled_1.fs.readFileSync(path_1.default.resolve(filename), 'utf-8');
291160
+ return compiled_1.json5.parse(content);
290988
291161
  };
290989
291162
  exports.readTsConfigByFile = readTsConfigByFile;
290990
291163