@modern-js/repo-generator 0.0.0-next-20221219070004 → 0.0.0-next-20221219104725
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.
- package/dist/index.js +76 -16
- 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
|
-
/\{(
|
|
138755
|
+
/\{(\w+)\}/g,
|
|
138756
138756
|
(_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture
|
|
138757
138757
|
);
|
|
138758
138758
|
}
|
|
@@ -139250,6 +139250,13 @@ 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
|
+
|
|
139253
139260
|
// ../../generator-common/dist/js/modern/mwa/project.js
|
|
139254
139261
|
var getMWASchemaProperties = (extra) => {
|
|
139255
139262
|
return {
|
|
@@ -139435,7 +139442,6 @@ var getMWANewActionSchema = (extra = {}) => {
|
|
|
139435
139442
|
var MWAActionFunctionsDevDependencies = {
|
|
139436
139443
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
139437
139444
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
139438
|
-
[ActionFunction.E2ETest]: "@modern-js/plugin-e2e",
|
|
139439
139445
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
139440
139446
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
139441
139447
|
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
@@ -139444,7 +139450,6 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
139444
139450
|
var MWAActionFunctionsDependencies = {
|
|
139445
139451
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
139446
139452
|
[ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
139447
|
-
[ActionFunction.I18n]: "@modern-js/plugin-i18n",
|
|
139448
139453
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
|
139449
139454
|
[ActionFunction.Polyfill]: "@modern-js/plugin-polyfill"
|
|
139450
139455
|
};
|
|
@@ -139453,10 +139458,10 @@ var MWAActionFunctionsAppendTypeContent = {
|
|
|
139453
139458
|
[ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/types' />`
|
|
139454
139459
|
};
|
|
139455
139460
|
var MWAActionRefactorDependencies = {
|
|
139456
|
-
[ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-
|
|
139461
|
+
[ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
|
|
139457
139462
|
};
|
|
139458
139463
|
var MWAActionReactorAppendTypeContent = {
|
|
139459
|
-
[ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-
|
|
139464
|
+
[ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-v5/types' />`
|
|
139460
139465
|
};
|
|
139461
139466
|
var MWANewActionGenerators = {
|
|
139462
139467
|
[ActionType.Element]: {
|
|
@@ -139467,20 +139472,63 @@ var MWANewActionGenerators = {
|
|
|
139467
139472
|
[ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
|
|
139468
139473
|
[ActionFunction.BFF]: "@modern-js/bff-generator",
|
|
139469
139474
|
[ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
|
|
139470
|
-
[ActionFunction.I18n]: "@modern-js/dependence-generator",
|
|
139471
139475
|
[ActionFunction.Test]: "@modern-js/test-generator",
|
|
139472
|
-
[ActionFunction.E2ETest]: "@modern-js/dependence-generator",
|
|
139473
|
-
[ActionFunction.Doc]: "@modern-js/dependence-generator",
|
|
139474
139476
|
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
139475
|
-
[ActionFunction.SSG]: "@modern-js/
|
|
139477
|
+
[ActionFunction.SSG]: "@modern-js/dependence-generator",
|
|
139476
139478
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
139477
139479
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
139478
139480
|
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
139479
139481
|
},
|
|
139480
139482
|
[ActionType.Refactor]: {
|
|
139481
|
-
[ActionRefactor.ReactRouter5]: "@modern-js/router-
|
|
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"
|
|
139482
139522
|
}
|
|
139483
139523
|
};
|
|
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
|
+
};
|
|
139484
139532
|
|
|
139485
139533
|
// ../../generator-common/dist/js/modern/newAction/module/index.js
|
|
139486
139534
|
var ModuleActionTypes = [ActionType.Function];
|
|
@@ -139539,19 +139587,27 @@ var ModuleActionFunctionsPeerDependencies = {
|
|
|
139539
139587
|
[ActionFunction.TailwindCSS]: "tailwindcss"
|
|
139540
139588
|
};
|
|
139541
139589
|
var ModuleActionFunctionsDependencies = {
|
|
139542
|
-
[ActionFunction.I18n]: "@modern-js/plugin-i18n",
|
|
139543
139590
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss"
|
|
139544
139591
|
};
|
|
139545
139592
|
var ModuleNewActionGenerators = {
|
|
139546
139593
|
[ActionType.Function]: {
|
|
139547
139594
|
[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",
|
|
139551
139595
|
[ActionFunction.Storybook]: "@modern-js/storybook-generator",
|
|
139552
139596
|
[ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
|
|
139553
139597
|
}
|
|
139554
139598
|
};
|
|
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
|
+
};
|
|
139555
139611
|
|
|
139556
139612
|
// ../../generator-common/dist/js/modern/newAction/monorepo/index.js
|
|
139557
139613
|
var getMonorepoNewActionSchema = (extra = {}) => {
|
|
@@ -142148,7 +142204,9 @@ var MWANewAction = (options) => __async3(void 0, null, function* () {
|
|
|
142148
142204
|
dependencies: dependency ? {
|
|
142149
142205
|
[dependency]: `${yield getMwaPluginVersion(dependency)}`
|
|
142150
142206
|
} : {},
|
|
142151
|
-
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2]
|
|
142207
|
+
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
|
|
142208
|
+
pluginName: MWANewActionPluginName[actionType][action2],
|
|
142209
|
+
pluginDependence: MWANewActionPluginDependence[actionType][action2]
|
|
142152
142210
|
}
|
|
142153
142211
|
);
|
|
142154
142212
|
const task = [
|
|
@@ -142291,7 +142349,9 @@ var ModuleNewAction = (options) => __async4(void 0, null, function* () {
|
|
|
142291
142349
|
dependencies: dependency ? { [dependency]: `${yield getModulePluginVersion(dependency)}` } : {},
|
|
142292
142350
|
peerDependencies: peerDependency ? {
|
|
142293
142351
|
[peerDependency]: `${yield getModulePluginVersion(peerDependency)}`
|
|
142294
|
-
} : {}
|
|
142352
|
+
} : {},
|
|
142353
|
+
pluginName: ModuleNewActionPluginName[actionType][action2],
|
|
142354
|
+
pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
|
|
142295
142355
|
}
|
|
142296
142356
|
);
|
|
142297
142357
|
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-
|
|
14
|
+
"version": "0.0.0-next-20221219104725",
|
|
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-
|
|
30
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
31
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
35
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
36
|
-
"@modern-js/utils": "0.0.0-next-
|
|
37
|
-
"@scripts/build": "0.0.0-next-
|
|
38
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
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"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|