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

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 +93 -54
  2. package/package.json +25 -13
@@ -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) {
@@ -281304,13 +281307,16 @@ function getObjKeyMap(obj, prefix = '') {
281304
281307
  return result;
281305
281308
  }
281306
281309
  ;// 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; }
281311
+
281307
281312
 
281308
281313
 
281309
281314
 
281310
281315
  class I18n {
281311
281316
  constructor() {
281312
- this.language = 'en';
281313
- this.languageMap = {};
281317
+ _defineProperty(this, "language", 'en');
281318
+
281319
+ _defineProperty(this, "languageMap", {});
281314
281320
  }
281315
281321
 
281316
281322
  format(msg, vars) {
@@ -281980,9 +281986,9 @@ const EnableSassSchema = {
281980
281986
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/module/project.js
281981
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; }
281982
281988
 
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; }
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; }
281984
281990
 
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; }
281991
+ 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
281992
 
281987
281993
 
281988
281994
 
@@ -282020,9 +282026,9 @@ const ModuleDefaultConfig = {
282020
282026
  ;// CONCATENATED MODULE: ../../generator-common/dist/js/modern/monorepo/project.js
282021
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; }
282022
282028
 
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; }
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; }
282024
282030
 
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; }
282031
+ 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
282032
 
282027
282033
 
282028
282034
 
@@ -282596,21 +282602,22 @@ function handlebars_ownKeys(object, enumerableOnly) { var keys = Object.keys(obj
282596
282602
 
282597
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; }
282598
282604
 
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
-
282601
282605
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
282602
282606
 
282603
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); } }
282604
282608
 
282605
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; }
282606
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
+
282607
282613
 
282608
282614
  var PluginHandlebarsAPI = /*#__PURE__*/function () {
282609
282615
  function PluginHandlebarsAPI() {
282610
282616
  _classCallCheck(this, PluginHandlebarsAPI);
282611
282617
 
282612
- this.helpers = {};
282613
- this.partials = {};
282618
+ handlebars_defineProperty(this, "helpers", {});
282619
+
282620
+ handlebars_defineProperty(this, "partials", {});
282614
282621
  }
282615
282622
 
282616
282623
  _createClass(PluginHandlebarsAPI, [{
@@ -282655,8 +282662,6 @@ function context_file_ownKeys(object, enumerableOnly) { var keys = Object.keys(o
282655
282662
 
282656
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; }
282657
282664
 
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
282665
 
282661
282666
 
282662
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); } }
@@ -282669,6 +282674,8 @@ function file_defineProperties(target, props) { for (var i = 0; i < props.length
282669
282674
 
282670
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; }
282671
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
+
282672
282679
 
282673
282680
 
282674
282681
 
@@ -282688,10 +282695,14 @@ var PluginFileAPI = /*#__PURE__*/function () {
282688
282695
  function PluginFileAPI() {
282689
282696
  file_classCallCheck(this, PluginFileAPI);
282690
282697
 
282691
- this.projectPath = '';
282692
- this.templatePath = '';
282693
- this.handlebarAPI = new PluginHandlebarsAPI();
282694
- this.jsonAPI = void 0;
282698
+ context_file_defineProperty(this, "projectPath", '');
282699
+
282700
+ context_file_defineProperty(this, "templatePath", '');
282701
+
282702
+ context_file_defineProperty(this, "handlebarAPI", new PluginHandlebarsAPI());
282703
+
282704
+ context_file_defineProperty(this, "jsonAPI", void 0);
282705
+
282695
282706
  // 解决 renderString 使用 this 指向错误问题
282696
282707
  this.renderString = this.renderString.bind(this);
282697
282708
  }
@@ -283149,14 +283160,18 @@ function git_defineProperties(target, props) { for (var i = 0; i < props.length;
283149
283160
 
283150
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; }
283151
283162
 
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
+
283152
283165
 
283153
283166
  var PluginGitAPI = /*#__PURE__*/function () {
283154
283167
  function PluginGitAPI() {
283155
283168
  git_classCallCheck(this, PluginGitAPI);
283156
283169
 
283157
- this.gitMessage = '';
283158
- this.gitApi = void 0;
283159
- this.projectPath = void 0;
283170
+ git_defineProperty(this, "gitMessage", '');
283171
+
283172
+ git_defineProperty(this, "gitApi", void 0);
283173
+
283174
+ git_defineProperty(this, "projectPath", void 0);
283160
283175
  }
283161
283176
 
283162
283177
  git_createClass(PluginGitAPI, [{
@@ -283272,14 +283287,14 @@ function input_ownKeys(object, enumerableOnly) { var keys = Object.keys(object);
283272
283287
 
283273
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; }
283274
283289
 
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
-
283277
283290
  function input_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
283278
283291
 
283279
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); } }
283280
283293
 
283281
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; }
283282
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
+
283283
283298
  /* eslint-disable eslint-comments/disable-enable-pair */
283284
283299
 
283285
283300
  /* eslint-disable max-lines */
@@ -283299,10 +283314,14 @@ var PluginInputContext = /*#__PURE__*/function () {
283299
283314
  function PluginInputContext(inputs) {
283300
283315
  input_classCallCheck(this, PluginInputContext);
283301
283316
 
283302
- this.inputValue = {};
283303
- this.inputs = [];
283304
- this.extendInputMap = {};
283305
- this.extendOptionMap = {};
283317
+ input_defineProperty(this, "inputValue", {});
283318
+
283319
+ input_defineProperty(this, "inputs", []);
283320
+
283321
+ input_defineProperty(this, "extendInputMap", {});
283322
+
283323
+ input_defineProperty(this, "extendOptionMap", {});
283324
+
283306
283325
  this.inputs = inputs;
283307
283326
  }
283308
283327
 
@@ -283812,14 +283831,18 @@ function npm_defineProperties(target, props) { for (var i = 0; i < props.length;
283812
283831
 
283813
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; }
283814
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
+
283815
283836
 
283816
283837
 
283817
283838
  var PluginNpmAPI = /*#__PURE__*/function () {
283818
283839
  function PluginNpmAPI(projectPath, packageManager) {
283819
283840
  npm_classCallCheck(this, PluginNpmAPI);
283820
283841
 
283821
- this.projectPath = '';
283822
- this.packageManager = void 0;
283842
+ npm_defineProperty(this, "projectPath", '');
283843
+
283844
+ npm_defineProperty(this, "packageManager", void 0);
283845
+
283823
283846
  this.projectPath = projectPath;
283824
283847
  this.packageManager = packageManager;
283825
283848
  }
@@ -287755,8 +287778,6 @@ function new_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); i
287755
287778
 
287756
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; }
287757
287780
 
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
-
287760
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); } }
287761
287782
 
287762
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); }); }; }
@@ -287767,15 +287788,20 @@ function new_defineProperties(target, props) { for (var i = 0; i < props.length;
287767
287788
 
287768
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; }
287769
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
+
287770
287793
 
287771
287794
 
287772
287795
  var PluginNewAPI = /*#__PURE__*/function () {
287773
287796
  function PluginNewAPI(solution, projectPath, inputData) {
287774
287797
  new_classCallCheck(this, PluginNewAPI);
287775
287798
 
287776
- this.solution = void 0;
287777
- this.projectPath = void 0;
287778
- this.inputData = void 0;
287799
+ new_defineProperty(this, "solution", void 0);
287800
+
287801
+ new_defineProperty(this, "projectPath", void 0);
287802
+
287803
+ new_defineProperty(this, "inputData", void 0);
287804
+
287779
287805
  this.solution = solution;
287780
287806
  this.projectPath = projectPath;
287781
287807
  this.inputData = inputData;
@@ -287970,14 +287996,14 @@ function context_ownKeys(object, enumerableOnly) { var keys = Object.keys(object
287970
287996
 
287971
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; }
287972
287998
 
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
-
287975
287999
  function context_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
287976
288000
 
287977
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); } }
287978
288002
 
287979
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; }
287980
288004
 
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
+
287981
288007
 
287982
288008
 
287983
288009
 
@@ -287998,22 +288024,30 @@ var LifeCycle;
287998
288024
 
287999
288025
  var PluginContext = /*#__PURE__*/function () {
288000
288026
  function PluginContext(inputs, locale) {
288001
- var _this$lifeCycleFuncMa;
288027
+ var _defineProperty2;
288002
288028
 
288003
288029
  context_classCallCheck(this, PluginContext);
288004
288030
 
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 () {
288031
+ context_defineProperty(this, "generator", void 0);
288032
+
288033
+ context_defineProperty(this, "inputContext", void 0);
288034
+
288035
+ context_defineProperty(this, "gitAPI", void 0);
288036
+
288037
+ context_defineProperty(this, "fileAPI", void 0);
288038
+
288039
+ context_defineProperty(this, "npmAPI", void 0);
288040
+
288041
+ context_defineProperty(this, "newAPI", void 0);
288042
+
288043
+ context_defineProperty(this, "locale", void 0);
288044
+
288045
+ context_defineProperty(this, "lifeCycleFuncMap", (_defineProperty2 = {}, context_defineProperty(_defineProperty2, LifeCycle.OnForged, function () {
288013
288046
  /* empty */
288014
- }), context_defineProperty(_this$lifeCycleFuncMa, LifeCycle.AfterForged, function () {
288047
+ }), context_defineProperty(_defineProperty2, LifeCycle.AfterForged, function () {
288015
288048
  /* empty */
288016
- }), _this$lifeCycleFuncMa);
288049
+ }), _defineProperty2));
288050
+
288017
288051
  this.inputContext = new PluginInputContext(inputs);
288018
288052
  this.gitAPI = new PluginGitAPI();
288019
288053
  this.fileAPI = new PluginFileAPI();
@@ -288204,8 +288238,6 @@ function treeshaking_ownKeys(object, enumerableOnly) { var keys = Object.keys(ob
288204
288238
 
288205
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; }
288206
288240
 
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
-
288209
288241
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || treeshaking_unsupportedIterableToArray(arr) || _nonIterableSpread(); }
288210
288242
 
288211
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."); }
@@ -288228,6 +288260,8 @@ function treeshaking_defineProperties(target, props) { for (var i = 0; i < props
288228
288260
 
288229
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; }
288230
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; }
288264
+
288231
288265
 
288232
288266
 
288233
288267
 
@@ -288246,11 +288280,16 @@ var GeneratorPlugin = /*#__PURE__*/function () {
288246
288280
 
288247
288281
  treeshaking_classCallCheck(this, GeneratorPlugin);
288248
288282
 
288249
- this.plugins = [];
288250
- this.extendPlugin = {};
288251
- this.customPlugin = {};
288252
- this.event = void 0;
288253
- this.logger = void 0;
288283
+ treeshaking_defineProperty(this, "plugins", []);
288284
+
288285
+ treeshaking_defineProperty(this, "extendPlugin", {});
288286
+
288287
+ treeshaking_defineProperty(this, "customPlugin", {});
288288
+
288289
+ treeshaking_defineProperty(this, "event", void 0);
288290
+
288291
+ treeshaking_defineProperty(this, "logger", void 0);
288292
+
288254
288293
  this.event = event;
288255
288294
  this.logger = logger;
288256
288295
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220511090154",
14
+ "version": "0.0.0-canary-20220512102344",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -26,14 +26,14 @@
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-20220511090154",
30
- "@modern-js/generator-utils": "0.0.0-canary-20220511090154",
31
- "@modern-js/module-generator": "0.0.0-canary-20220511090154",
32
- "@modern-js/monorepo-generator": "0.0.0-canary-20220511090154",
33
- "@modern-js/mwa-generator": "0.0.0-canary-20220511090154",
34
- "@modern-js/base-generator": "0.0.0-canary-20220511090154",
35
- "@modern-js/generator-plugin": "0.0.0-canary-20220511090154",
36
- "@modern-js/utils": "0.0.0-canary-20220511090154",
29
+ "@modern-js/generator-common": "0.0.0-canary-20220512102344",
30
+ "@modern-js/generator-utils": "0.0.0-canary-20220512102344",
31
+ "@modern-js/module-generator": "0.0.0-canary-20220512102344",
32
+ "@modern-js/monorepo-generator": "0.0.0-canary-20220512102344",
33
+ "@modern-js/mwa-generator": "0.0.0-canary-20220512102344",
34
+ "@modern-js/base-generator": "0.0.0-canary-20220512102344",
35
+ "@modern-js/generator-plugin": "0.0.0-canary-20220512102344",
36
+ "@modern-js/utils": "0.0.0-canary-20220512102344",
37
37
  "@types/jest": "^26",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",
@@ -57,18 +57,30 @@
57
57
  "build": {
58
58
  "command": "modern build",
59
59
  "files": [
60
- "src/**/*.ts",
60
+ "src/**/*",
61
61
  "tsconfig.json",
62
62
  "package.json"
63
63
  ],
64
64
  "output": [
65
- "dist/**/*.js"
65
+ "dist/**/*",
66
+ "!dist/node/main.js"
67
+ ]
68
+ },
69
+ "build:csmith": {
70
+ "command": "csmith-tools build",
71
+ "files": [
72
+ "src/**/*",
73
+ "tsconfig.json",
74
+ "package.json"
75
+ ],
76
+ "output": [
77
+ "dist/node/main.js"
66
78
  ]
67
79
  },
68
80
  "test": {
69
81
  "command": "jest --passWithNoTests",
70
82
  "files": [
71
- "src/**/*.ts",
83
+ "src/**/*",
72
84
  "tsconfig.json",
73
85
  "package.json"
74
86
  ],
@@ -78,7 +90,7 @@
78
90
  "scripts": {
79
91
  "new": "modern new",
80
92
  "build": "wireit",
81
- "build:csmith": "csmith-tools build",
93
+ "build:csmith": "wireit",
82
94
  "test": "wireit"
83
95
  },
84
96
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"