@modern-js/repo-generator 0.0.0-canary-20220513004825 → 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 +358 -224
  2. package/package.json +10 -10
@@ -281202,7 +281202,7 @@ exports.MWANewActionGenerators = MWANewActionGenerators;
281202
281202
 
281203
281203
  /***/ }),
281204
281204
 
281205
- /***/ 19846:
281205
+ /***/ 91654:
281206
281206
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
281207
281207
 
281208
281208
  "use strict";
@@ -281246,6 +281246,244 @@ __webpack_require__.d(modern_handlers_namespaceObject, {
281246
281246
  "listNode": () => (ListNode_listNode)
281247
281247
  });
281248
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
+ }
281249
281487
  // EXTERNAL MODULE: ../../../../node_modules/.pnpm/@babel+runtime@7.16.7/node_modules/@babel/runtime/regenerator/index.js
281250
281488
  var regenerator = __webpack_require__(1036);
281251
281489
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
@@ -281307,16 +281545,16 @@ function getObjKeyMap(obj, prefix = '') {
281307
281545
  return result;
281308
281546
  }
281309
281547
  ;// CONCATENATED MODULE: ../../../cli/plugin-i18n/dist/js/modern/index.js
281310
- 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; }
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; }
281311
281549
 
281312
281550
 
281313
281551
 
281314
281552
 
281315
281553
  class I18n {
281316
281554
  constructor() {
281317
- _defineProperty(this, "language", 'en');
281555
+ modern_defineProperty(this, "language", 'en');
281318
281556
 
281319
- _defineProperty(this, "languageMap", {});
281557
+ modern_defineProperty(this, "languageMap", {});
281320
281558
  }
281321
281559
 
281322
281560
  format(msg, vars) {
@@ -281984,9 +282222,9 @@ const EnableSassSchema = {
281984
282222
  items: BooleanSchemas
281985
282223
  };
281986
282224
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/module/project.js
281987
- 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; }
281988
282226
 
281989
- 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) { project_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; }
281990
282228
 
281991
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; }
281992
282230
 
@@ -282024,9 +282262,9 @@ const ModuleDefaultConfig = {
282024
282262
  enableSass: BooleanConfig.NO
282025
282263
  };
282026
282264
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/monorepo/project.js
282027
- 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; }
282028
282266
 
282029
- 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) { monorepo_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; }
282030
282268
 
282031
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; }
282032
282270
 
@@ -282336,23 +282574,9 @@ class FsMaterial {
282336
282574
 
282337
282575
  }
282338
282576
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/utils/file.js
282339
- 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; }
282340
-
282341
- 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; }
282342
282577
 
282343
- 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; }
282344
282578
 
282345
- 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; } } }; }
282346
282579
 
282347
- 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); }
282348
-
282349
- 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; }
282350
-
282351
-
282352
-
282353
- 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); } }
282354
-
282355
- 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); }); }; }
282356
282580
 
282357
282581
 
282358
282582
 
@@ -282552,7 +282776,7 @@ function _addManyFiles() {
282552
282776
  templateFile = _step.value;
282553
282777
  absTemplatePath = external_path_default().resolve(templatePath, templateFile);
282554
282778
  targetFile = dropFileRootPath(templateFile, config.templateBase);
282555
- fileCfg = file_objectSpread(file_objectSpread({}, config), {}, {
282779
+ fileCfg = _objectSpread2(_objectSpread2({}, config), {}, {
282556
282780
  file: external_path_default().join(config.destination, config.fileNameFunc ? config.fileNameFunc(targetFile) : targetFile),
282557
282781
  templateFile: absTemplatePath,
282558
282782
  force: true
@@ -282598,34 +282822,26 @@ function _addManyFiles() {
282598
282822
  var lib = __webpack_require__(95309);
282599
282823
  var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
282600
282824
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/handlebars.js
282601
- 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; }
282602
282825
 
282603
- 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; }
282604
282826
 
282605
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
282606
282827
 
282607
- 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); } }
282608
-
282609
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
282610
-
282611
- 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; }
282612
282828
 
282613
282829
 
282614
282830
  var PluginHandlebarsAPI = /*#__PURE__*/function () {
282615
282831
  function PluginHandlebarsAPI() {
282616
282832
  _classCallCheck(this, PluginHandlebarsAPI);
282617
282833
 
282618
- handlebars_defineProperty(this, "helpers", {});
282834
+ _defineProperty(this, "helpers", {});
282619
282835
 
282620
- handlebars_defineProperty(this, "partials", {});
282836
+ _defineProperty(this, "partials", {});
282621
282837
  }
282622
282838
 
282623
282839
  _createClass(PluginHandlebarsAPI, [{
282624
282840
  key: "renderString",
282625
282841
  value: function renderString(template, data) {
282626
- var helpers = handlebars_objectSpread({}, this.helpers);
282842
+ var helpers = _objectSpread2({}, this.helpers);
282627
282843
 
282628
- var partials = handlebars_objectSpread({}, this.partials);
282844
+ var partials = _objectSpread2({}, this.partials);
282629
282845
 
282630
282846
  Object.keys(helpers).forEach(function (h) {
282631
282847
  return lib.registerHelper(h, helpers[h]);
@@ -282658,23 +282874,11 @@ var PluginHandlebarsAPI = /*#__PURE__*/function () {
282658
282874
  return PluginHandlebarsAPI;
282659
282875
  }();
282660
282876
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/file.js
282661
- 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; }
282662
-
282663
- 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; }
282664
-
282665
282877
 
282666
282878
 
282667
- 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); } }
282668
282879
 
282669
- 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); }); }; }
282670
282880
 
282671
- function file_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
282672
282881
 
282673
- 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); } }
282674
-
282675
- 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; }
282676
-
282677
- 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; }
282678
282882
 
282679
282883
 
282680
282884
 
@@ -282693,21 +282897,21 @@ var file_FileType;
282693
282897
 
282694
282898
  var PluginFileAPI = /*#__PURE__*/function () {
282695
282899
  function PluginFileAPI() {
282696
- file_classCallCheck(this, PluginFileAPI);
282900
+ _classCallCheck(this, PluginFileAPI);
282697
282901
 
282698
- context_file_defineProperty(this, "projectPath", '');
282902
+ _defineProperty(this, "projectPath", '');
282699
282903
 
282700
- context_file_defineProperty(this, "templatePath", '');
282904
+ _defineProperty(this, "templatePath", '');
282701
282905
 
282702
- context_file_defineProperty(this, "handlebarAPI", new PluginHandlebarsAPI());
282906
+ _defineProperty(this, "handlebarAPI", new PluginHandlebarsAPI());
282703
282907
 
282704
- context_file_defineProperty(this, "jsonAPI", void 0);
282908
+ _defineProperty(this, "jsonAPI", void 0);
282705
282909
 
282706
282910
  // 解决 renderString 使用 this 指向错误问题
282707
282911
  this.renderString = this.renderString.bind(this);
282708
282912
  }
282709
282913
 
282710
- file_createClass(PluginFileAPI, [{
282914
+ _createClass(PluginFileAPI, [{
282711
282915
  key: "context",
282712
282916
  get: function get() {
282713
282917
  return {
@@ -282747,7 +282951,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282747
282951
  }, {
282748
282952
  key: "addFile",
282749
282953
  value: function () {
282750
- var _addFile2 = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(params) {
282954
+ var _addFile2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(params) {
282751
282955
  return regenerator_default().wrap(function _callee$(_context) {
282752
282956
  while (1) {
282753
282957
  switch (_context.prev = _context.next) {
@@ -282772,7 +282976,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282772
282976
  }, {
282773
282977
  key: "addManyFiles",
282774
282978
  value: function () {
282775
- var _addManyFiles2 = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(params) {
282979
+ var _addManyFiles2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(params) {
282776
282980
  return regenerator_default().wrap(function _callee2$(_context2) {
282777
282981
  while (1) {
282778
282982
  switch (_context2.prev = _context2.next) {
@@ -282797,7 +283001,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282797
283001
  }, {
282798
283002
  key: "updateJSONFile",
282799
283003
  value: function () {
282800
- var _updateJSONFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(fileName, updateInfo) {
283004
+ var _updateJSONFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(fileName, updateInfo) {
282801
283005
  var fsMaterial;
282802
283006
  return regenerator_default().wrap(function _callee3$(_context3) {
282803
283007
  while (1) {
@@ -282808,7 +283012,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282808
283012
  return this.jsonAPI.update(fsMaterial.get(fileName), {
282809
283013
  query: {},
282810
283014
  update: {
282811
- $set: context_file_objectSpread({}, updateInfo)
283015
+ $set: _objectSpread2({}, updateInfo)
282812
283016
  }
282813
283017
  });
282814
283018
 
@@ -282829,7 +283033,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282829
283033
  }, {
282830
283034
  key: "updateModernConfig",
282831
283035
  value: function () {
282832
- var _updateModernConfig = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(updateInfo) {
283036
+ var _updateModernConfig = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(updateInfo) {
282833
283037
  var update;
282834
283038
  return regenerator_default().wrap(function _callee4$(_context4) {
282835
283039
  while (1) {
@@ -282859,7 +283063,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282859
283063
  }, {
282860
283064
  key: "updateTextRawFile",
282861
283065
  value: function () {
282862
- var _updateTextRawFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(fileName, update) {
283066
+ var _updateTextRawFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5(fileName, update) {
282863
283067
  var content, newContent;
282864
283068
  return regenerator_default().wrap(function _callee5$(_context5) {
282865
283069
  while (1) {
@@ -282891,7 +283095,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282891
283095
  }, {
282892
283096
  key: "rmFile",
282893
283097
  value: function () {
282894
- var _rmFile = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(fileName) {
283098
+ var _rmFile = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee6(fileName) {
282895
283099
  var file;
282896
283100
  return regenerator_default().wrap(function _callee6$(_context6) {
282897
283101
  while (1) {
@@ -282927,7 +283131,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282927
283131
  }, {
282928
283132
  key: "rmDir",
282929
283133
  value: function () {
282930
- var _rmDir = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(dirName) {
283134
+ var _rmDir = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee7(dirName) {
282931
283135
  var dir, stat;
282932
283136
  return regenerator_default().wrap(function _callee7$(_context7) {
282933
283137
  while (1) {
@@ -282976,7 +283180,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
282976
283180
  }, {
282977
283181
  key: "isFileExit",
282978
283182
  value: function () {
282979
- var _isFileExit = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8(fileName) {
283183
+ var _isFileExit = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee8(fileName) {
282980
283184
  return regenerator_default().wrap(function _callee8$(_context8) {
282981
283185
  while (1) {
282982
283186
  switch (_context8.prev = _context8.next) {
@@ -283000,7 +283204,7 @@ var PluginFileAPI = /*#__PURE__*/function () {
283000
283204
  }, {
283001
283205
  key: "readDir",
283002
283206
  value: function () {
283003
- var _readDir = file_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee9(dir) {
283207
+ var _readDir = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee9(dir) {
283004
283208
  return regenerator_default().wrap(function _callee9$(_context9) {
283005
283209
  while (1) {
283006
283210
  switch (_context9.prev = _context9.next) {
@@ -283150,31 +283354,22 @@ class GitAPI {
283150
283354
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/git.js
283151
283355
 
283152
283356
 
283153
- 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); } }
283154
-
283155
- 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); }); }; }
283156
-
283157
- function git_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283158
-
283159
- 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); } }
283160
283357
 
283161
- 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; }
283162
283358
 
283163
- function git_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; }
283164
283359
 
283165
283360
 
283166
283361
  var PluginGitAPI = /*#__PURE__*/function () {
283167
283362
  function PluginGitAPI() {
283168
- git_classCallCheck(this, PluginGitAPI);
283363
+ _classCallCheck(this, PluginGitAPI);
283169
283364
 
283170
- git_defineProperty(this, "gitMessage", '');
283365
+ _defineProperty(this, "gitMessage", '');
283171
283366
 
283172
- git_defineProperty(this, "gitApi", void 0);
283367
+ _defineProperty(this, "gitApi", void 0);
283173
283368
 
283174
- git_defineProperty(this, "projectPath", void 0);
283369
+ _defineProperty(this, "projectPath", void 0);
283175
283370
  }
283176
283371
 
283177
- git_createClass(PluginGitAPI, [{
283372
+ _createClass(PluginGitAPI, [{
283178
283373
  key: "context",
283179
283374
  get: function get() {
283180
283375
  return {
@@ -283204,7 +283399,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283204
283399
  }, {
283205
283400
  key: "isInGitRepo",
283206
283401
  value: function () {
283207
- var _isInGitRepo = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283402
+ var _isInGitRepo = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283208
283403
  return regenerator_default().wrap(function _callee$(_context) {
283209
283404
  while (1) {
283210
283405
  switch (_context.prev = _context.next) {
@@ -283228,7 +283423,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283228
283423
  }, {
283229
283424
  key: "initGitRepo",
283230
283425
  value: function () {
283231
- var _initGitRepo = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
283426
+ var _initGitRepo = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2() {
283232
283427
  return regenerator_default().wrap(function _callee2$(_context2) {
283233
283428
  while (1) {
283234
283429
  switch (_context2.prev = _context2.next) {
@@ -283253,7 +283448,7 @@ var PluginGitAPI = /*#__PURE__*/function () {
283253
283448
  }, {
283254
283449
  key: "gitAddAndCommit",
283255
283450
  value: function () {
283256
- var _gitAddAndCommit = git_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
283451
+ var _gitAddAndCommit = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3() {
283257
283452
  var commitMessage,
283258
283453
  _args3 = arguments;
283259
283454
  return regenerator_default().wrap(function _callee3$(_context3) {
@@ -283283,17 +283478,10 @@ var PluginGitAPI = /*#__PURE__*/function () {
283283
283478
  return PluginGitAPI;
283284
283479
  }();
283285
283480
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/input.js
283286
- 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; }
283287
283481
 
283288
- 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; }
283289
283482
 
283290
- function input_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283291
283483
 
283292
- 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); } }
283293
283484
 
283294
- 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; }
283295
-
283296
- 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; }
283297
283485
 
283298
283486
  /* eslint-disable eslint-comments/disable-enable-pair */
283299
283487
 
@@ -283312,20 +283500,20 @@ var PluginInputContext = /*#__PURE__*/function () {
283312
283500
  // plugin add input
283313
283501
  // plugin add option
283314
283502
  function PluginInputContext(inputs) {
283315
- input_classCallCheck(this, PluginInputContext);
283503
+ _classCallCheck(this, PluginInputContext);
283316
283504
 
283317
- input_defineProperty(this, "inputValue", {});
283505
+ _defineProperty(this, "inputValue", {});
283318
283506
 
283319
- input_defineProperty(this, "inputs", []);
283507
+ _defineProperty(this, "inputs", []);
283320
283508
 
283321
- input_defineProperty(this, "extendInputMap", {});
283509
+ _defineProperty(this, "extendInputMap", {});
283322
283510
 
283323
- input_defineProperty(this, "extendOptionMap", {});
283511
+ _defineProperty(this, "extendOptionMap", {});
283324
283512
 
283325
283513
  this.inputs = inputs;
283326
283514
  }
283327
283515
 
283328
- input_createClass(PluginInputContext, [{
283516
+ _createClass(PluginInputContext, [{
283329
283517
  key: "context",
283330
283518
  get: function get() {
283331
283519
  return {
@@ -283491,7 +283679,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283491
283679
  var _input = this.getFinalInput(originInput);
283492
283680
 
283493
283681
  var targetValue = (0,lodash.isFunction)(value) ? value(_input) : value;
283494
- 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)));
283495
283683
 
283496
283684
  if (field === 'options') {
283497
283685
  this.resetExtendOptionMap(key);
@@ -283519,7 +283707,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283519
283707
 
283520
283708
  var _targetValue = (0,lodash.isFunction)(value) ? value(_input2) : value;
283521
283709
 
283522
- 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));
283523
283711
 
283524
283712
  if (field === 'options') {
283525
283713
  this.resetExtendOptionMap(key);
@@ -283536,7 +283724,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283536
283724
 
283537
283725
  var _targetValue2 = (0,lodash.isFunction)(value) ? value(_input3) : value;
283538
283726
 
283539
- 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));
283540
283728
 
283541
283729
  if (field === 'options') {
283542
283730
  this.resetExtendOptionMap(key);
@@ -283665,7 +283853,7 @@ var PluginInputContext = /*#__PURE__*/function () {
283665
283853
  }, {
283666
283854
  key: "initExtendOptionMap",
283667
283855
  value: function initExtendOptionMap(key, optionKey) {
283668
- this.extendOptionMap[key] = this.extendOptionMap[key] || input_defineProperty({}, key, input_defineProperty({}, optionKey, {
283856
+ this.extendOptionMap[key] = this.extendOptionMap[key] || _defineProperty({}, key, _defineProperty({}, optionKey, {
283669
283857
  before: [],
283670
283858
  after: []
283671
283859
  }));
@@ -283821,33 +284009,24 @@ async function pnpmInstall(cwd, registryUrl) {
283821
284009
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/npm.js
283822
284010
 
283823
284011
 
283824
- 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); } }
283825
-
283826
- 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); }); }; }
283827
-
283828
- function npm_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283829
284012
 
283830
- 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); } }
283831
284013
 
283832
- 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; }
283833
-
283834
- function npm_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; }
283835
284014
 
283836
284015
 
283837
284016
 
283838
284017
  var PluginNpmAPI = /*#__PURE__*/function () {
283839
284018
  function PluginNpmAPI(projectPath, packageManager) {
283840
- npm_classCallCheck(this, PluginNpmAPI);
284019
+ _classCallCheck(this, PluginNpmAPI);
283841
284020
 
283842
- npm_defineProperty(this, "projectPath", '');
284021
+ _defineProperty(this, "projectPath", '');
283843
284022
 
283844
- npm_defineProperty(this, "packageManager", void 0);
284023
+ _defineProperty(this, "packageManager", void 0);
283845
284024
 
283846
284025
  this.projectPath = projectPath;
283847
284026
  this.packageManager = packageManager;
283848
284027
  }
283849
284028
 
283850
- npm_createClass(PluginNpmAPI, [{
284029
+ _createClass(PluginNpmAPI, [{
283851
284030
  key: "method",
283852
284031
  get: function get() {
283853
284032
  return {
@@ -283857,7 +284036,7 @@ var PluginNpmAPI = /*#__PURE__*/function () {
283857
284036
  }, {
283858
284037
  key: "install",
283859
284038
  value: function () {
283860
- var _install = npm_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
284039
+ var _install = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
283861
284040
  return regenerator_default().wrap(function _callee$(_context) {
283862
284041
  while (1) {
283863
284042
  switch (_context.prev = _context.next) {
@@ -285500,9 +285679,9 @@ function baseReader_objectSpread(target) { for (var i = 1; i < arguments.length;
285500
285679
 
285501
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; }
285502
285681
 
285503
- 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; }
285504
285683
 
285505
- 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; }
285506
285685
 
285507
285686
 
285508
285687
 
@@ -285660,7 +285839,7 @@ class BaseReader {
285660
285839
  effectedByFields = [],
285661
285840
  action
285662
285841
  } = _ref,
285663
- rest = _objectWithoutProperties(_ref, _excluded);
285842
+ rest = baseReader_objectWithoutProperties(_ref, _excluded);
285664
285843
 
285665
285844
  if (isRoot) {
285666
285845
  // If there is no upper level, there is no linkage, return value options other than linkage
@@ -287092,9 +287271,9 @@ const js_modern_locale_localeKeys = js_modern_locale_i18n.init('zh', {
287092
287271
 
287093
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; }
287094
287273
 
287095
- 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; }
287096
287275
 
287097
- 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; }
287098
287277
 
287099
287278
 
287100
287279
 
@@ -287774,40 +287953,28 @@ const MonorepoNewAction = async options => {
287774
287953
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/new.js
287775
287954
 
287776
287955
 
287777
- 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; }
287778
-
287779
- 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; }
287780
-
287781
- 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); } }
287782
-
287783
- 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); }); }; }
287784
287956
 
287785
- function new_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
287786
287957
 
287787
- 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); } }
287788
287958
 
287789
- 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; }
287790
-
287791
- 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; }
287792
287959
 
287793
287960
 
287794
287961
 
287795
287962
  var PluginNewAPI = /*#__PURE__*/function () {
287796
287963
  function PluginNewAPI(solution, projectPath, inputData) {
287797
- new_classCallCheck(this, PluginNewAPI);
287964
+ _classCallCheck(this, PluginNewAPI);
287798
287965
 
287799
- new_defineProperty(this, "solution", void 0);
287966
+ _defineProperty(this, "solution", void 0);
287800
287967
 
287801
- new_defineProperty(this, "projectPath", void 0);
287968
+ _defineProperty(this, "projectPath", void 0);
287802
287969
 
287803
- new_defineProperty(this, "inputData", void 0);
287970
+ _defineProperty(this, "inputData", void 0);
287804
287971
 
287805
287972
  this.solution = solution;
287806
287973
  this.projectPath = projectPath;
287807
287974
  this.inputData = inputData;
287808
287975
  }
287809
287976
 
287810
- new_createClass(PluginNewAPI, [{
287977
+ _createClass(PluginNewAPI, [{
287811
287978
  key: "method",
287812
287979
  get: function get() {
287813
287980
  return {
@@ -287819,7 +287986,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287819
287986
  }, {
287820
287987
  key: "createElement",
287821
287988
  value: function () {
287822
- var _createElement = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(element, params) {
287989
+ var _createElement = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(element, params) {
287823
287990
  return regenerator_default().wrap(function _callee$(_context) {
287824
287991
  while (1) {
287825
287992
  switch (_context.prev = _context.next) {
@@ -287839,7 +288006,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287839
288006
  case 3:
287840
288007
  _context.next = 5;
287841
288008
  return MWANewAction({
287842
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288009
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287843
288010
  actionType: ActionType.Element,
287844
288011
  element: element,
287845
288012
  noNeedInstall: true
@@ -287870,7 +288037,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287870
288037
  }, {
287871
288038
  key: "enableFunc",
287872
288039
  value: function () {
287873
- var _enableFunc = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(func, params) {
288040
+ var _enableFunc = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(func, params) {
287874
288041
  return regenerator_default().wrap(function _callee2$(_context2) {
287875
288042
  while (1) {
287876
288043
  switch (_context2.prev = _context2.next) {
@@ -287890,7 +288057,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287890
288057
  case 3:
287891
288058
  _context2.next = 5;
287892
288059
  return MWANewAction({
287893
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288060
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287894
288061
  actionType: ActionType.Function,
287895
288062
  "function": func,
287896
288063
  noNeedInstall: true
@@ -287917,7 +288084,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287917
288084
  case 9:
287918
288085
  _context2.next = 11;
287919
288086
  return ModuleNewAction({
287920
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288087
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287921
288088
  actionType: ActionType.Function,
287922
288089
  "function": func,
287923
288090
  noNeedInstall: true
@@ -287948,7 +288115,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287948
288115
  }, {
287949
288116
  key: "createSubProject",
287950
288117
  value: function () {
287951
- var _createSubProject = new_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, params) {
288118
+ var _createSubProject = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, params) {
287952
288119
  return regenerator_default().wrap(function _callee3$(_context3) {
287953
288120
  while (1) {
287954
288121
  switch (_context3.prev = _context3.next) {
@@ -287960,7 +288127,7 @@ var PluginNewAPI = /*#__PURE__*/function () {
287960
288127
 
287961
288128
  _context3.next = 3;
287962
288129
  return MonorepoNewAction({
287963
- config: JSON.stringify(new_objectSpread(new_objectSpread({
288130
+ config: JSON.stringify(_objectSpread2(_objectSpread2({
287964
288131
  solution: solution,
287965
288132
  noNeedInstall: true
287966
288133
  }, this.inputData), params)),
@@ -287992,17 +288159,9 @@ var PluginNewAPI = /*#__PURE__*/function () {
287992
288159
  return PluginNewAPI;
287993
288160
  }();
287994
288161
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/context/index.js
287995
- 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; }
287996
-
287997
- 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; }
287998
-
287999
- function context_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
288000
288162
 
288001
- 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); } }
288002
288163
 
288003
- 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; }
288004
288164
 
288005
- 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; }
288006
288165
 
288007
288166
 
288008
288167
 
@@ -288026,25 +288185,25 @@ var PluginContext = /*#__PURE__*/function () {
288026
288185
  function PluginContext(inputs, locale) {
288027
288186
  var _defineProperty2;
288028
288187
 
288029
- context_classCallCheck(this, PluginContext);
288188
+ _classCallCheck(this, PluginContext);
288030
288189
 
288031
- context_defineProperty(this, "generator", void 0);
288190
+ _defineProperty(this, "generator", void 0);
288032
288191
 
288033
- context_defineProperty(this, "inputContext", void 0);
288192
+ _defineProperty(this, "inputContext", void 0);
288034
288193
 
288035
- context_defineProperty(this, "gitAPI", void 0);
288194
+ _defineProperty(this, "gitAPI", void 0);
288036
288195
 
288037
- context_defineProperty(this, "fileAPI", void 0);
288196
+ _defineProperty(this, "fileAPI", void 0);
288038
288197
 
288039
- context_defineProperty(this, "npmAPI", void 0);
288198
+ _defineProperty(this, "npmAPI", void 0);
288040
288199
 
288041
- context_defineProperty(this, "newAPI", void 0);
288200
+ _defineProperty(this, "newAPI", void 0);
288042
288201
 
288043
- context_defineProperty(this, "locale", void 0);
288202
+ _defineProperty(this, "locale", void 0);
288044
288203
 
288045
- context_defineProperty(this, "lifeCycleFuncMap", (_defineProperty2 = {}, context_defineProperty(_defineProperty2, LifeCycle.OnForged, function () {
288204
+ _defineProperty(this, "lifeCycleFuncMap", (_defineProperty2 = {}, _defineProperty(_defineProperty2, LifeCycle.OnForged, function () {
288046
288205
  /* empty */
288047
- }), context_defineProperty(_defineProperty2, LifeCycle.AfterForged, function () {
288206
+ }), _defineProperty(_defineProperty2, LifeCycle.AfterForged, function () {
288048
288207
  /* empty */
288049
288208
  }), _defineProperty2));
288050
288209
 
@@ -288054,10 +288213,10 @@ var PluginContext = /*#__PURE__*/function () {
288054
288213
  this.locale = locale;
288055
288214
  }
288056
288215
 
288057
- context_createClass(PluginContext, [{
288216
+ _createClass(PluginContext, [{
288058
288217
  key: "context",
288059
288218
  get: function get() {
288060
- return context_objectSpread(context_objectSpread(context_objectSpread(context_objectSpread({
288219
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
288061
288220
  locale: this.locale
288062
288221
  }, this.inputContext.context), this.gitAPI.context), this.fileAPI.context), {}, {
288063
288222
  onForged: this.onForged.bind(this),
@@ -288067,12 +288226,12 @@ var PluginContext = /*#__PURE__*/function () {
288067
288226
  }, {
288068
288227
  key: "forgedAPI",
288069
288228
  get: function get() {
288070
- return context_objectSpread(context_objectSpread({}, this.fileAPI.method), this.newAPI.method);
288229
+ return _objectSpread2(_objectSpread2({}, this.fileAPI.method), this.newAPI.method);
288071
288230
  }
288072
288231
  }, {
288073
288232
  key: "afterForgedAPI",
288074
288233
  get: function get() {
288075
- return context_objectSpread(context_objectSpread({}, this.gitAPI.method), this.npmAPI.method);
288234
+ return _objectSpread2(_objectSpread2({}, this.gitAPI.method), this.npmAPI.method);
288076
288235
  }
288077
288236
  }, {
288078
288237
  key: "handlePrepareContext",
@@ -288120,10 +288279,6 @@ function requireModuleWithVm(module) {
288120
288279
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/utils/index.js
288121
288280
 
288122
288281
 
288123
- 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); } }
288124
-
288125
- 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); }); }; }
288126
-
288127
288282
 
288128
288283
 
288129
288284
 
@@ -288132,13 +288287,13 @@ function utils_installPlugins(_x, _x2) {
288132
288287
  }
288133
288288
 
288134
288289
  function _installPlugins() {
288135
- _installPlugins = utils_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registryUrl) {
288290
+ _installPlugins = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registryUrl) {
288136
288291
  return regenerator_default().wrap(function _callee2$(_context2) {
288137
288292
  while (1) {
288138
288293
  switch (_context2.prev = _context2.next) {
288139
288294
  case 0:
288140
288295
  return _context2.abrupt("return", Promise.all(plugins.map( /*#__PURE__*/function () {
288141
- var _ref = utils_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288296
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288142
288297
  var _getPackageInfo, name, version, pluginPath;
288143
288298
 
288144
288299
  return regenerator_default().wrap(function _callee$(_context) {
@@ -288224,43 +288379,15 @@ var PluginType;
288224
288379
  PluginType["Custom"] = "custom";
288225
288380
  })(PluginType || (PluginType = {}));
288226
288381
  ;// CONCATENATED MODULE: ../../generator-plugin/dist/js/treeshaking/index.js
288227
- var treeshaking_excluded = ["generatorPlugin"];
288228
-
288229
- 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; }
288230
-
288231
- 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; }
288232
-
288233
- 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; } } }; }
288234
-
288235
288382
 
288236
288383
 
288237
- 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; }
288238
288384
 
288239
- 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; }
288240
288385
 
288241
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || treeshaking_unsupportedIterableToArray(arr) || _nonIterableSpread(); }
288242
288386
 
288243
- 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."); }
288244
288387
 
288245
- 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); }
288246
288388
 
288247
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
288248
288389
 
288249
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return treeshaking_arrayLikeToArray(arr); }
288250
-
288251
- 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; }
288252
-
288253
- 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); } }
288254
-
288255
- 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); }); }; }
288256
-
288257
- function treeshaking_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
288258
-
288259
- 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); } }
288260
-
288261
- 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; }
288262
-
288263
- 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; }
288390
+ var treeshaking_excluded = ["generatorPlugin"];
288264
288391
 
288265
288392
 
288266
288393
 
@@ -288278,17 +288405,17 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288278
288405
  function GeneratorPlugin(logger, event) {
288279
288406
  var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';
288280
288407
 
288281
- treeshaking_classCallCheck(this, GeneratorPlugin);
288408
+ _classCallCheck(this, GeneratorPlugin);
288282
288409
 
288283
- treeshaking_defineProperty(this, "plugins", []);
288410
+ _defineProperty(this, "plugins", []);
288284
288411
 
288285
- treeshaking_defineProperty(this, "extendPlugin", {});
288412
+ _defineProperty(this, "extendPlugin", {});
288286
288413
 
288287
- treeshaking_defineProperty(this, "customPlugin", {});
288414
+ _defineProperty(this, "customPlugin", {});
288288
288415
 
288289
- treeshaking_defineProperty(this, "event", void 0);
288416
+ _defineProperty(this, "event", void 0);
288290
288417
 
288291
- treeshaking_defineProperty(this, "logger", void 0);
288418
+ _defineProperty(this, "logger", void 0);
288292
288419
 
288293
288420
  this.event = event;
288294
288421
  this.logger = logger;
@@ -288308,10 +288435,10 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288308
288435
  });
288309
288436
  }
288310
288437
 
288311
- treeshaking_createClass(GeneratorPlugin, [{
288438
+ _createClass(GeneratorPlugin, [{
288312
288439
  key: "setupPlugin",
288313
288440
  value: function () {
288314
- var _setupPlugin = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registry) {
288441
+ var _setupPlugin = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(plugins, registry) {
288315
288442
  var _this = this;
288316
288443
 
288317
288444
  return regenerator_default().wrap(function _callee2$(_context2) {
@@ -288320,7 +288447,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288320
288447
  case 0:
288321
288448
  _context2.next = 2;
288322
288449
  return Promise.all(plugins.map( /*#__PURE__*/function () {
288323
- var _ref = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288450
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(plugin) {
288324
288451
  var pkgJSON, _getPackageInfo, name, pkgVersion, version, _pkgJSON, meta;
288325
288452
 
288326
288453
  return regenerator_default().wrap(function _callee$(_context) {
@@ -288370,7 +288497,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288370
288497
  if (meta.extend) {
288371
288498
  _this.extendPlugin[meta.extend] = [].concat(_toConsumableArray(_this.extendPlugin[meta.extend] || []), [plugin]);
288372
288499
  } else if (meta.type && meta.key) {
288373
- _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), {}, {
288374
288501
  plugin: plugin
288375
288502
  })]);
288376
288503
  }
@@ -288407,7 +288534,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288407
288534
  value: function getInputSchema(solution) {
288408
288535
  var items = [];
288409
288536
 
288410
- var _iterator = treeshaking_createForOfIteratorHelper(this.plugins),
288537
+ var _iterator = _createForOfIteratorHelper(this.plugins),
288411
288538
  _step;
288412
288539
 
288413
288540
  try {
@@ -288432,7 +288559,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288432
288559
  value: function getInputValue() {
288433
288560
  var result = {};
288434
288561
 
288435
- var _iterator2 = treeshaking_createForOfIteratorHelper(this.plugins),
288562
+ var _iterator2 = _createForOfIteratorHelper(this.plugins),
288436
288563
  _step2;
288437
288564
 
288438
288565
  try {
@@ -288451,7 +288578,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288451
288578
  }, {
288452
288579
  key: "installPlugins",
288453
288580
  value: function () {
288454
- var _installPlugins2 = treeshaking_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, inputData) {
288581
+ var _installPlugins2 = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(solution, inputData) {
288455
288582
  var plugins, plugin, _iterator3, _step3, info;
288456
288583
 
288457
288584
  return regenerator_default().wrap(function _callee3$(_context3) {
@@ -288480,7 +288607,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288480
288607
 
288481
288608
  case 6:
288482
288609
  this.plugins = _context3.sent;
288483
- _iterator3 = treeshaking_createForOfIteratorHelper(this.plugins);
288610
+ _iterator3 = _createForOfIteratorHelper(this.plugins);
288484
288611
 
288485
288612
  try {
288486
288613
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -288513,7 +288640,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288513
288640
  value: function getGitMessage() {
288514
288641
  var result = '';
288515
288642
 
288516
- var _iterator4 = treeshaking_createForOfIteratorHelper(this.plugins),
288643
+ var _iterator4 = _createForOfIteratorHelper(this.plugins),
288517
288644
  _step4;
288518
288645
 
288519
288646
  try {
@@ -288539,7 +288666,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288539
288666
  }, {
288540
288667
  key: "handleForged",
288541
288668
  value: function () {
288542
- 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) {
288543
288670
  var generatorPlugin, restData, _iterator5, _step5, _info$context3, _info$context4, info, onForgedFunc, _iterator6, _step6, _info$context5, _info, afterForged;
288544
288671
 
288545
288672
  return regenerator_default().wrap(function _callee4$(_context4) {
@@ -288547,7 +288674,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288547
288674
  switch (_context4.prev = _context4.next) {
288548
288675
  case 0:
288549
288676
  this.logger.info(treeshaking_locale_i18n.t(treeshaking_locale_localeKeys.run_plugin));
288550
- generatorPlugin = inputData.generatorPlugin, restData = treeshaking_objectWithoutProperties(inputData, treeshaking_excluded);
288677
+ generatorPlugin = inputData.generatorPlugin, restData = _objectWithoutProperties(inputData, treeshaking_excluded);
288551
288678
 
288552
288679
  if (!(solution !== restData.solution)) {
288553
288680
  _context4.next = 5;
@@ -288561,7 +288688,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288561
288688
  return _context4.abrupt("return");
288562
288689
 
288563
288690
  case 5:
288564
- _iterator5 = treeshaking_createForOfIteratorHelper(this.plugins);
288691
+ _iterator5 = _createForOfIteratorHelper(this.plugins);
288565
288692
  _context4.prev = 6;
288566
288693
 
288567
288694
  _iterator5.s();
@@ -288606,7 +288733,7 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288606
288733
  return _context4.finish(22);
288607
288734
 
288608
288735
  case 25:
288609
- _iterator6 = treeshaking_createForOfIteratorHelper(this.plugins);
288736
+ _iterator6 = _createForOfIteratorHelper(this.plugins);
288610
288737
  _context4.prev = 26;
288611
288738
 
288612
288739
  _iterator6.s();
@@ -288694,7 +288821,7 @@ var _codesmithApiApp = __webpack_require__(53876);
288694
288821
 
288695
288822
  var _generatorCommon = __webpack_require__(50828);
288696
288823
 
288697
- var _generatorPlugin = __webpack_require__(19846);
288824
+ var _generatorPlugin = __webpack_require__(91654);
288698
288825
 
288699
288826
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
288700
288827
 
@@ -289055,6 +289182,13 @@ module.exports = __webpack_require__(91462);
289055
289182
 
289056
289183
  /***/ }),
289057
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
+
289058
289192
  /***/ 37540:
289059
289193
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
289060
289194
 
@@ -289495,7 +289629,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
289495
289629
  return (mod && mod.__esModule) ? mod : { "default": mod };
289496
289630
  };
289497
289631
  Object.defineProperty(exports, "__esModule", ({ value: true }));
289498
- 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;
289499
289633
  const import_1 = __webpack_require__(3662);
289500
289634
  var fs_extra_1 = __webpack_require__(29);
289501
289635
  Object.defineProperty(exports, "fs", ({ enumerable: true, get: function () { return __importDefault(fs_extra_1).default; } }));
@@ -289519,6 +289653,8 @@ var upath_1 = __webpack_require__(3409);
289519
289653
  Object.defineProperty(exports, "upath", ({ enumerable: true, get: function () { return __importDefault(upath_1).default; } }));
289520
289654
  var pkg_up_1 = __webpack_require__(24719);
289521
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; } }));
289522
289658
  var semver_1 = __webpack_require__(71666);
289523
289659
  Object.defineProperty(exports, "semver", ({ enumerable: true, get: function () { return __importDefault(semver_1).default; } }));
289524
289660
  var dotenv_1 = __webpack_require__(30835);
@@ -291014,16 +291150,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
291014
291150
  Object.defineProperty(exports, "__esModule", ({ value: true }));
291015
291151
  exports.readTsConfigByFile = exports.readTsConfig = void 0;
291016
291152
  const path_1 = __importDefault(__webpack_require__(71017));
291153
+ const compiled_1 = __webpack_require__(62046);
291017
291154
  const readTsConfig = (root) => {
291018
- // import typescript from 'typescript' cause eslint format error.
291019
- const typescript = __webpack_require__(40237);
291020
- 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'));
291021
291156
  };
291022
291157
  exports.readTsConfig = readTsConfig;
291023
291158
  const readTsConfigByFile = (filename) => {
291024
- // import typescript from 'typescript' cause eslint format error.
291025
- const typescript = __webpack_require__(40237);
291026
- 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);
291027
291161
  };
291028
291162
  exports.readTsConfigByFile = readTsConfigByFile;
291029
291163
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220513004825",
14
+ "version": "0.0.0-canary-20220517033114",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -26,15 +26,15 @@
26
26
  "@modern-js/codesmith": "^1.0.10",
27
27
  "@modern-js/codesmith-api-app": "^1.0.10",
28
28
  "@modern-js/codesmith-tools": "^1.1.2",
29
- "@modern-js/generator-common": "0.0.0-canary-20220513004825",
30
- "@modern-js/generator-utils": "0.0.0-canary-20220513004825",
31
- "@modern-js/module-generator": "0.0.0-canary-20220513004825",
32
- "@modern-js/monorepo-generator": "0.0.0-canary-20220513004825",
33
- "@modern-js/mwa-generator": "0.0.0-canary-20220513004825",
34
- "@modern-js/base-generator": "0.0.0-canary-20220513004825",
35
- "@modern-js/generator-plugin": "0.0.0-canary-20220513004825",
36
- "@modern-js/utils": "0.0.0-canary-20220513004825",
37
- "@types/jest": "^26",
29
+ "@modern-js/generator-common": "1.4.11",
30
+ "@modern-js/generator-utils": "1.2.5",
31
+ "@modern-js/module-generator": "2.0.1",
32
+ "@modern-js/monorepo-generator": "2.0.1",
33
+ "@modern-js/mwa-generator": "2.0.1",
34
+ "@modern-js/base-generator": "1.4.2",
35
+ "@modern-js/generator-plugin": "0.0.0-canary-20220517033114",
36
+ "@modern-js/utils": "0.0.0-canary-20220517033114",
37
+ "@types/jest": "^27",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",
40
40
  "@scripts/build": "0.0.0",