@modern-js/repo-generator 0.0.0-next-20221219104725 → 0.0.0-next-20221220032350

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/index.js +16 -76
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -138752,7 +138752,7 @@ var I18n = class {
138752
138752
  }
138753
138753
  format(msg, vars) {
138754
138754
  return msg.replace(
138755
- /\{(\w+)\}/g,
138755
+ /\{([^}]+)\}/gm,
138756
138756
  (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture
138757
138757
  );
138758
138758
  }
@@ -139250,13 +139250,6 @@ var MonorepoDefaultConfig = {
139250
139250
  packageManager: PackageManager.Pnpm
139251
139251
  };
139252
139252
 
139253
- // ../../generator-common/dist/js/modern/mwa/common.js
139254
- var Framework = /* @__PURE__ */ ((Framework2) => {
139255
- Framework2["Express"] = "express";
139256
- Framework2["Koa"] = "koa";
139257
- return Framework2;
139258
- })(Framework || {});
139259
-
139260
139253
  // ../../generator-common/dist/js/modern/mwa/project.js
139261
139254
  var getMWASchemaProperties = (extra) => {
139262
139255
  return {
@@ -139442,6 +139435,7 @@ var getMWANewActionSchema = (extra = {}) => {
139442
139435
  var MWAActionFunctionsDevDependencies = {
139443
139436
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
139444
139437
  [ActionFunction.Test]: "@modern-js/plugin-testing",
139438
+ [ActionFunction.E2ETest]: "@modern-js/plugin-e2e",
139445
139439
  [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
139446
139440
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
139447
139441
  [ActionFunction.TailwindCSS]: "tailwindcss",
@@ -139450,6 +139444,7 @@ var MWAActionFunctionsDevDependencies = {
139450
139444
  var MWAActionFunctionsDependencies = {
139451
139445
  [ActionFunction.BFF]: "@modern-js/plugin-bff",
139452
139446
  [ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
139447
+ [ActionFunction.I18n]: "@modern-js/plugin-i18n",
139453
139448
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
139454
139449
  [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill"
139455
139450
  };
@@ -139458,10 +139453,10 @@ var MWAActionFunctionsAppendTypeContent = {
139458
139453
  [ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/types' />`
139459
139454
  };
139460
139455
  var MWAActionRefactorDependencies = {
139461
- [ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
139456
+ [ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-legacy"
139462
139457
  };
139463
139458
  var MWAActionReactorAppendTypeContent = {
139464
- [ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-v5/types' />`
139459
+ [ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-legacy/types' />`
139465
139460
  };
139466
139461
  var MWANewActionGenerators = {
139467
139462
  [ActionType.Element]: {
@@ -139472,63 +139467,20 @@ var MWANewActionGenerators = {
139472
139467
  [ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
139473
139468
  [ActionFunction.BFF]: "@modern-js/bff-generator",
139474
139469
  [ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
139470
+ [ActionFunction.I18n]: "@modern-js/dependence-generator",
139475
139471
  [ActionFunction.Test]: "@modern-js/test-generator",
139472
+ [ActionFunction.E2ETest]: "@modern-js/dependence-generator",
139473
+ [ActionFunction.Doc]: "@modern-js/dependence-generator",
139476
139474
  [ActionFunction.Storybook]: "@modern-js/dependence-generator",
139477
- [ActionFunction.SSG]: "@modern-js/dependence-generator",
139475
+ [ActionFunction.SSG]: "@modern-js/ssg-generator",
139478
139476
  [ActionFunction.Polyfill]: "@modern-js/dependence-generator",
139479
139477
  [ActionFunction.Proxy]: "@modern-js/dependence-generator",
139480
139478
  [ActionFunction.SWC]: "@modern-js/dependence-generator"
139481
139479
  },
139482
139480
  [ActionType.Refactor]: {
139483
- [ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
139484
- }
139485
- };
139486
- var MWANewActionPluginName = {
139487
- [ActionType.Element]: {
139488
- [ActionElement.Server]: "ServerPlugin"
139489
- },
139490
- [ActionType.Function]: {
139491
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
139492
- [ActionFunction.BFF]: "BFFPlugin",
139493
- [ActionFunction.MicroFrontend]: "GarfishPlugin",
139494
- [ActionFunction.Test]: "TestPlugin",
139495
- [ActionFunction.Storybook]: "StorybookPlugin",
139496
- [ActionFunction.SSG]: "SSGPlugin",
139497
- [ActionFunction.Polyfill]: "PolyfillPlugin",
139498
- [ActionFunction.Proxy]: "ProxyPlugin",
139499
- [ActionFunction.SWC]: "SWCPlugin"
139500
- },
139501
- [ActionType.Refactor]: {
139502
- [ActionRefactor.ReactRouter5]: "ReactRouter5Plugin"
139503
- }
139504
- };
139505
- var MWANewActionPluginDependence = {
139506
- [ActionType.Element]: {
139507
- [ActionElement.Server]: "@modern-js/plugin-server"
139508
- },
139509
- [ActionType.Function]: {
139510
- [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
139511
- [ActionFunction.BFF]: "@modern-js/plugin-bff",
139512
- [ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
139513
- [ActionFunction.Test]: "@modern-js/plugin-testing",
139514
- [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
139515
- [ActionFunction.SSG]: "@modern-js/plugin-ssg",
139516
- [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
139517
- [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
139518
- [ActionFunction.SWC]: "@modern-js/plugin-swc"
139519
- },
139520
- [ActionType.Refactor]: {
139521
- [ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
139481
+ [ActionRefactor.ReactRouter5]: "@modern-js/router-legacy-generator"
139522
139482
  }
139523
139483
  };
139524
- var BFFPluginName = {
139525
- [Framework.Express]: "ExpressBFFPlugin",
139526
- [Framework.Koa]: "KoaBFFPlugin"
139527
- };
139528
- var BFFPluginDependence = {
139529
- [Framework.Express]: "@modern-js/plugin-express",
139530
- [Framework.Koa]: "@modern-js/plugin-koa"
139531
- };
139532
139484
 
139533
139485
  // ../../generator-common/dist/js/modern/newAction/module/index.js
139534
139486
  var ModuleActionTypes = [ActionType.Function];
@@ -139587,27 +139539,19 @@ var ModuleActionFunctionsPeerDependencies = {
139587
139539
  [ActionFunction.TailwindCSS]: "tailwindcss"
139588
139540
  };
139589
139541
  var ModuleActionFunctionsDependencies = {
139542
+ [ActionFunction.I18n]: "@modern-js/plugin-i18n",
139590
139543
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss"
139591
139544
  };
139592
139545
  var ModuleNewActionGenerators = {
139593
139546
  [ActionType.Function]: {
139594
139547
  [ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
139548
+ [ActionFunction.I18n]: "@modern-js/dependence-generator",
139549
+ [ActionFunction.Test]: "@modern-js/dependence-generator",
139550
+ [ActionFunction.Doc]: "@modern-js/dependence-generator",
139595
139551
  [ActionFunction.Storybook]: "@modern-js/storybook-generator",
139596
139552
  [ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
139597
139553
  }
139598
139554
  };
139599
- var ModuleNewActionPluginName = {
139600
- [ActionType.Function]: {
139601
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
139602
- [ActionFunction.Storybook]: "StoryBookPlugin"
139603
- }
139604
- };
139605
- var ModuleNewActionPluginDependence = {
139606
- [ActionType.Function]: {
139607
- [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
139608
- [ActionFunction.Storybook]: "@modern-js/plugin-storybook"
139609
- }
139610
- };
139611
139555
 
139612
139556
  // ../../generator-common/dist/js/modern/newAction/monorepo/index.js
139613
139557
  var getMonorepoNewActionSchema = (extra = {}) => {
@@ -142204,9 +142148,7 @@ var MWANewAction = (options) => __async3(void 0, null, function* () {
142204
142148
  dependencies: dependency ? {
142205
142149
  [dependency]: `${yield getMwaPluginVersion(dependency)}`
142206
142150
  } : {},
142207
- appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
142208
- pluginName: MWANewActionPluginName[actionType][action2],
142209
- pluginDependence: MWANewActionPluginDependence[actionType][action2]
142151
+ appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2]
142210
142152
  }
142211
142153
  );
142212
142154
  const task = [
@@ -142349,9 +142291,7 @@ var ModuleNewAction = (options) => __async4(void 0, null, function* () {
142349
142291
  dependencies: dependency ? { [dependency]: `${yield getModulePluginVersion(dependency)}` } : {},
142350
142292
  peerDependencies: peerDependency ? {
142351
142293
  [peerDependency]: `${yield getModulePluginVersion(peerDependency)}`
142352
- } : {},
142353
- pluginName: ModuleNewActionPluginName[actionType][action2],
142354
- pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
142294
+ } : {}
142355
142295
  }
142356
142296
  );
142357
142297
  const task = [
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221219104725",
14
+ "version": "0.0.0-next-20221220032350",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,16 +26,16 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/base-generator": "0.0.0-next-20221219104725",
30
- "@modern-js/generator-common": "0.0.0-next-20221219104725",
31
- "@modern-js/generator-plugin": "0.0.0-next-20221219104725",
32
- "@modern-js/generator-utils": "0.0.0-next-20221219104725",
33
- "@modern-js/module-generator": "0.0.0-next-20221219104725",
34
- "@modern-js/monorepo-generator": "0.0.0-next-20221219104725",
35
- "@modern-js/mwa-generator": "0.0.0-next-20221219104725",
36
- "@modern-js/utils": "0.0.0-next-20221219104725",
37
- "@scripts/build": "0.0.0-next-20221219104725",
38
- "@scripts/jest-config": "0.0.0-next-20221219104725"
29
+ "@modern-js/base-generator": "0.0.0-next-20221220032350",
30
+ "@modern-js/generator-common": "0.0.0-next-20221220032350",
31
+ "@modern-js/generator-plugin": "0.0.0-next-20221220032350",
32
+ "@modern-js/generator-utils": "0.0.0-next-20221220032350",
33
+ "@modern-js/module-generator": "0.0.0-next-20221220032350",
34
+ "@modern-js/mwa-generator": "0.0.0-next-20221220032350",
35
+ "@modern-js/monorepo-generator": "0.0.0-next-20221220032350",
36
+ "@modern-js/utils": "0.0.0-next-20221220032350",
37
+ "@scripts/build": "0.0.0-next-20221220032350",
38
+ "@scripts/jest-config": "0.0.0-next-20221220032350"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {