@modern-js/mwa-generator 1.0.0-rc.4 → 1.0.0-rc.5

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 +25 -15
  2. package/package.json +11 -11
@@ -465,7 +465,7 @@ Object.defineProperty(exports, "I18n", ({
465
465
  }));
466
466
  exports.localeKeys = exports.i18n = void 0;
467
467
 
468
- var _pluginI18n = __webpack_require__(8979);
468
+ var _pluginI18n = __webpack_require__(94415);
469
469
 
470
470
  var _zh = __webpack_require__(65012);
471
471
 
@@ -5638,7 +5638,7 @@ exports.pointer = pointer;
5638
5638
 
5639
5639
  /***/ }),
5640
5640
 
5641
- /***/ 8979:
5641
+ /***/ 94415:
5642
5642
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5643
5643
 
5644
5644
  "use strict";
@@ -5651,7 +5651,7 @@ exports.I18n = void 0;
5651
5651
 
5652
5652
  var _get2 = _interopRequireDefault(__webpack_require__(71189));
5653
5653
 
5654
- var _utils = __webpack_require__(23996);
5654
+ var _utils = __webpack_require__(22311);
5655
5655
 
5656
5656
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5657
5657
 
@@ -5712,7 +5712,7 @@ exports.I18n = I18n;
5712
5712
 
5713
5713
  /***/ }),
5714
5714
 
5715
- /***/ 23996:
5715
+ /***/ 22311:
5716
5716
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
5717
5717
 
5718
5718
  "use strict";
@@ -264485,7 +264485,8 @@ const EN_LOCALE = {
264485
264485
  test: 'Enable "Unit Test / Integration Test"',
264486
264486
  e2e_test: 'Enable "E2E Test"',
264487
264487
  doc: 'Enable "Document Station"',
264488
- storybook: 'Enable "Storybook"'
264488
+ storybook: 'Enable "Storybook"',
264489
+ runtime_api: 'Enable "Runtime API"'
264489
264490
  },
264490
264491
  element: {
264491
264492
  self: 'Create project element',
@@ -264625,7 +264626,8 @@ const ZH_LOCALE = {
264625
264626
  test: '启用「单元测试 / 集成测试」功能',
264626
264627
  e2e_test: '启用「E2E 测试」功能',
264627
264628
  doc: '启用「文档站」功能',
264628
- storybook: '启用 「Storybook」'
264629
+ storybook: '启用 「Storybook」',
264630
+ runtime_api: '启用 「Rumtime API」'
264629
264631
  },
264630
264632
  element: {
264631
264633
  self: '创建工程元素',
@@ -265235,6 +265237,7 @@ exports.ActionFunction = ActionFunction;
265235
265237
  ActionFunction["E2ETest"] = "e2e_test";
265236
265238
  ActionFunction["Doc"] = "doc";
265237
265239
  ActionFunction["Storybook"] = "storybook";
265240
+ ActionFunction["RuntimeApi"] = "runtimeApi";
265238
265241
  })(ActionFunction || (exports.ActionFunction = ActionFunction = {}));
265239
265242
 
265240
265243
  let ActionRefactor;
@@ -265268,7 +265271,8 @@ const ActionFunctionText = {
265268
265271
  [ActionFunction.Test]: () => _locale.i18n.t(_locale.localeKeys.action.function.test),
265269
265272
  [ActionFunction.E2ETest]: () => _locale.i18n.t(_locale.localeKeys.action.function.e2e_test),
265270
265273
  [ActionFunction.Doc]: () => _locale.i18n.t(_locale.localeKeys.action.function.doc),
265271
- [ActionFunction.Storybook]: () => _locale.i18n.t(_locale.localeKeys.action.function.storybook)
265274
+ [ActionFunction.Storybook]: () => _locale.i18n.t(_locale.localeKeys.action.function.storybook),
265275
+ [ActionFunction.RuntimeApi]: () => _locale.i18n.t(_locale.localeKeys.action.function.runtime_api)
265272
265276
  };
265273
265277
  exports.ActionFunctionText = ActionFunctionText;
265274
265278
  const ActionRefactorText = {
@@ -265357,7 +265361,7 @@ Object.keys(_monorepo).forEach(function (key) {
265357
265361
  Object.defineProperty(exports, "__esModule", ({
265358
265362
  value: true
265359
265363
  }));
265360
- exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypes = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctions = void 0;
265364
+ exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctions = void 0;
265361
265365
 
265362
265366
  var _common = __webpack_require__(78353);
265363
265367
 
@@ -265368,7 +265372,7 @@ exports.ModuleActionTypes = ModuleActionTypes;
265368
265372
  const ModuleActionFunctions = [// ActionFunction.TailwindCSS,
265369
265373
  _common.ActionFunction.Less, _common.ActionFunction.Sass, // ActionFunction.I18n,
265370
265374
  // ActionFunction.Doc,
265371
- _common.ActionFunction.Storybook];
265375
+ _common.ActionFunction.Storybook, _common.ActionFunction.RuntimeApi];
265372
265376
  exports.ModuleActionFunctions = ModuleActionFunctions;
265373
265377
  const ModuleSpecialSchemaMap = {};
265374
265378
  exports.ModuleSpecialSchemaMap = ModuleSpecialSchemaMap;
@@ -265395,9 +265399,14 @@ const ModuleNewActionSchema = {
265395
265399
  exports.ModuleNewActionSchema = ModuleNewActionSchema;
265396
265400
  const ModuleActionFunctionsDevDependencies = {
265397
265401
  [_common.ActionFunction.Doc]: '@modern-js/plugin-docsite',
265398
- [_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook'
265402
+ [_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook',
265403
+ [_common.ActionFunction.RuntimeApi]: '@modern-js/runtime'
265399
265404
  };
265400
265405
  exports.ModuleActionFunctionsDevDependencies = ModuleActionFunctionsDevDependencies;
265406
+ const ModuleActionFunctionsPeerDependencies = {
265407
+ [_common.ActionFunction.RuntimeApi]: '@modern-js/runtime'
265408
+ };
265409
+ exports.ModuleActionFunctionsPeerDependencies = ModuleActionFunctionsPeerDependencies;
265401
265410
  const ModuleActionFunctionsDependencies = {
265402
265411
  [_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
265403
265412
  [_common.ActionFunction.TailwindCSS]: '@modern-js/plugin-tailwindcss',
@@ -265543,7 +265552,7 @@ const MWANewActionGenerators = {
265543
265552
  [_common.ActionElement.Server]: '@modern-js/server-generator'
265544
265553
  },
265545
265554
  [_common.ActionType.Function]: {
265546
- [_common.ActionFunction.UnBundle]: '@modern-js/dependence-generator',
265555
+ [_common.ActionFunction.UnBundle]: '@modern-js/unbundle-generator',
265547
265556
  [_common.ActionFunction.TailwindCSS]: '@modern-js/dependence-generator',
265548
265557
  [_common.ActionFunction.Less]: '@modern-js/dependence-generator',
265549
265558
  [_common.ActionFunction.Sass]: '@modern-js/dependence-generator',
@@ -275741,8 +275750,8 @@ const handleTemplateFile = async (context, generator, appApi) => {
275741
275750
  }));
275742
275751
  }
275743
275752
 
275744
- if (enableLess) {
275745
- const lessDependence = _generatorCommon.MWAActionFunctionsDevDependencies[_generatorCommon.ActionFunction.Less];
275753
+ if (enableLess === _generatorCommon.BooleanConfig.YES) {
275754
+ const lessDependence = _generatorCommon.MWAActionFunctionsDependencies[_generatorCommon.ActionFunction.Less];
275746
275755
  await appApi.runSubGenerator(getGeneratorPath(_generatorCommon.DependenceGenerator, context.config.distTag), undefined, {
275747
275756
  dependencies: {
275748
275757
  [lessDependence]: await (0, _generatorUtils.getPackageVersion)(lessDependence)
@@ -275751,8 +275760,9 @@ const handleTemplateFile = async (context, generator, appApi) => {
275751
275760
  });
275752
275761
  }
275753
275762
 
275754
- if (enableSass) {
275755
- const sassDependence = _generatorCommon.MWAActionFunctionsDevDependencies[_generatorCommon.ActionFunction.Sass];
275763
+ if (enableSass === _generatorCommon.BooleanConfig.YES) {
275764
+ const sassDependence = _generatorCommon.MWAActionFunctionsDependencies[_generatorCommon.ActionFunction.Sass];
275765
+ [_generatorCommon.ActionFunction.Sass];
275756
275766
  await appApi.runSubGenerator(getGeneratorPath(_generatorCommon.DependenceGenerator, context.config.distTag), undefined, {
275757
275767
  dependencies: {
275758
275768
  [sassDependence]: await (0, _generatorUtils.getPackageVersion)(sassDependence)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/mwa-generator",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.5",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/js/node/main.js",
@@ -19,22 +19,22 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/runtime": "^7",
22
- "@modern-js/base-generator": "^1.0.0-rc.4",
22
+ "@modern-js/base-generator": "^1.0.0-rc.5",
23
23
  "@modern-js/codesmith": "^1.0.0-rc.14",
24
24
  "@modern-js/codesmith-api-app": "^1.0.0-rc.14",
25
25
  "@modern-js/codesmith-api-json": "^1.0.0-rc.14",
26
26
  "@modern-js/codesmith-tools": "^1.0.0-rc.14",
27
- "@modern-js/entry-generator": "^1.0.0-rc.4",
28
- "@modern-js/electron-generator": "^1.0.0-rc.4",
29
- "@modern-js/dependence-generator": "^1.0.0-rc.4",
30
- "@modern-js/generator-common": "^1.0.0-rc.5",
31
- "@modern-js/generator-utils": "^1.0.0-rc.4",
32
- "@modern-js/plugin-i18n": "^1.0.0-rc.4",
27
+ "@modern-js/entry-generator": "^1.0.0-rc.5",
28
+ "@modern-js/electron-generator": "^1.0.0-rc.5",
29
+ "@modern-js/dependence-generator": "^1.0.0-rc.5",
30
+ "@modern-js/generator-common": "^1.0.0-rc.6",
31
+ "@modern-js/generator-utils": "^1.0.0-rc.5",
32
+ "@modern-js/plugin-i18n": "^1.0.0-rc.5",
33
33
  "@types/jest": "^26",
34
34
  "@types/node": "^14",
35
35
  "typescript": "^4",
36
- "@modern-js/module-tools": "^1.0.0-rc.3",
37
- "@modern-js/plugin-testing": "^1.0.0-rc.3"
36
+ "@modern-js/module-tools": "^1.0.0-rc.5",
37
+ "@modern-js/plugin-testing": "^1.0.0-rc.5"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "modernConfig": {
@@ -43,7 +43,7 @@
43
43
  "disableSourceMap": true
44
44
  }
45
45
  },
46
- "publicCnfig": {
46
+ "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",
48
48
  "access": "public"
49
49
  },