@modern-js/repo-generator 0.0.0-next-20230218182850 → 0.0.0-next-20230219113905
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 +42 -8
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -140512,7 +140512,8 @@ var ZH_LOCALE = {
|
|
|
140512
140512
|
ssg: "启用「SSG」功能",
|
|
140513
140513
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
140514
140514
|
proxy: "启用「全局代理」",
|
|
140515
|
-
swc: "启用「SWC 编译」"
|
|
140515
|
+
swc: "启用「SWC 编译」",
|
|
140516
|
+
rspack: "启用「rspack 构建」"
|
|
140516
140517
|
},
|
|
140517
140518
|
element: {
|
|
140518
140519
|
self: "创建工程元素",
|
|
@@ -140562,6 +140563,11 @@ var ZH_LOCALE = {
|
|
|
140562
140563
|
func: "函数模式",
|
|
140563
140564
|
framework: "框架模式"
|
|
140564
140565
|
}
|
|
140566
|
+
},
|
|
140567
|
+
buildTools: {
|
|
140568
|
+
self: "请选择构建工具",
|
|
140569
|
+
webpack: "webpack",
|
|
140570
|
+
rspack: "rspack"
|
|
140565
140571
|
}
|
|
140566
140572
|
};
|
|
140567
140573
|
|
|
@@ -140603,7 +140609,8 @@ var EN_LOCALE = {
|
|
|
140603
140609
|
ssg: "Enable SSG",
|
|
140604
140610
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
140605
140611
|
proxy: "Enable Global Proxy",
|
|
140606
|
-
swc: "Enable SWC Compile"
|
|
140612
|
+
swc: "Enable SWC Compile",
|
|
140613
|
+
rspack: "Enable rspack Build"
|
|
140607
140614
|
},
|
|
140608
140615
|
element: {
|
|
140609
140616
|
self: "Create project element",
|
|
@@ -140653,6 +140660,11 @@ var EN_LOCALE = {
|
|
|
140653
140660
|
func: "Function",
|
|
140654
140661
|
framework: "Framework"
|
|
140655
140662
|
}
|
|
140663
|
+
},
|
|
140664
|
+
buildTools: {
|
|
140665
|
+
self: "Build Tools",
|
|
140666
|
+
webpack: "webpack",
|
|
140667
|
+
rspack: "rspack"
|
|
140656
140668
|
}
|
|
140657
140669
|
};
|
|
140658
140670
|
|
|
@@ -140938,6 +140950,21 @@ var Framework = /* @__PURE__ */ ((Framework2) => {
|
|
|
140938
140950
|
Framework2["Koa"] = "koa";
|
|
140939
140951
|
return Framework2;
|
|
140940
140952
|
})(Framework || {});
|
|
140953
|
+
var BuildTools = /* @__PURE__ */ ((BuildTools2) => {
|
|
140954
|
+
BuildTools2["Webpack"] = "webpack";
|
|
140955
|
+
BuildTools2["Rspack"] = "rspack";
|
|
140956
|
+
return BuildTools2;
|
|
140957
|
+
})(BuildTools || {});
|
|
140958
|
+
var getBuildToolsSchema = (_extra = {}) => {
|
|
140959
|
+
return {
|
|
140960
|
+
type: "string",
|
|
140961
|
+
title: i18n.t(localeKeys.buildTools.self),
|
|
140962
|
+
enum: Object.values(BuildTools).map((tool) => ({
|
|
140963
|
+
value: tool,
|
|
140964
|
+
label: i18n.t(localeKeys.buildTools[tool])
|
|
140965
|
+
}))
|
|
140966
|
+
};
|
|
140967
|
+
};
|
|
140941
140968
|
|
|
140942
140969
|
// ../../generator-common/dist/esm-node/mwa/project.js
|
|
140943
140970
|
var getMWASchemaProperties = (extra) => {
|
|
@@ -140945,7 +140972,8 @@ var getMWASchemaProperties = (extra) => {
|
|
|
140945
140972
|
packageName: getPackageNameSchema(extra),
|
|
140946
140973
|
packagePath: getPackagePathSchema(extra),
|
|
140947
140974
|
language: getLanguageSchema(extra),
|
|
140948
|
-
packageManager: getPackageManagerSchema(extra)
|
|
140975
|
+
packageManager: getPackageManagerSchema(extra),
|
|
140976
|
+
buildTools: getBuildToolsSchema(extra)
|
|
140949
140977
|
};
|
|
140950
140978
|
};
|
|
140951
140979
|
var getMWASchema = (extra = {}) => {
|
|
@@ -140957,7 +140985,8 @@ var getMWASchema = (extra = {}) => {
|
|
|
140957
140985
|
var MWADefaultConfig = {
|
|
140958
140986
|
language: Language.TS,
|
|
140959
140987
|
packageManager: PackageManager.Pnpm,
|
|
140960
|
-
needModifyMWAConfig: BooleanConfig.NO
|
|
140988
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
|
140989
|
+
buildTools: BuildTools.Webpack
|
|
140961
140990
|
};
|
|
140962
140991
|
|
|
140963
140992
|
// ../../generator-common/dist/esm-node/newAction/common/index.js
|
|
@@ -140986,6 +141015,7 @@ var ActionFunction = /* @__PURE__ */ ((ActionFunction2) => {
|
|
|
140986
141015
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
140987
141016
|
ActionFunction2["Proxy"] = "proxy";
|
|
140988
141017
|
ActionFunction2["SWC"] = "swc";
|
|
141018
|
+
ActionFunction2["Rspack"] = "rspack";
|
|
140989
141019
|
return ActionFunction2;
|
|
140990
141020
|
})(ActionFunction || {});
|
|
140991
141021
|
var ActionRefactor = /* @__PURE__ */ ((ActionRefactor2) => {
|
|
@@ -141014,7 +141044,8 @@ var ActionFunctionText = {
|
|
|
141014
141044
|
["ssg"]: () => i18n.t(localeKeys.action.function.ssg),
|
|
141015
141045
|
["polyfill"]: () => i18n.t(localeKeys.action.function.polyfill),
|
|
141016
141046
|
["proxy"]: () => i18n.t(localeKeys.action.function.proxy),
|
|
141017
|
-
["swc"]: () => i18n.t(localeKeys.action.function.swc)
|
|
141047
|
+
["swc"]: () => i18n.t(localeKeys.action.function.swc),
|
|
141048
|
+
["rspack"]: () => i18n.t(localeKeys.action.function.rspack)
|
|
141018
141049
|
};
|
|
141019
141050
|
var ActionRefactorText = {
|
|
141020
141051
|
["react_router_5"]: () => i18n.t(localeKeys.action.refactor.react_router_5)
|
|
@@ -141035,7 +141066,8 @@ var MWAActionFunctions = [
|
|
|
141035
141066
|
ActionFunction.Storybook,
|
|
141036
141067
|
ActionFunction.Polyfill,
|
|
141037
141068
|
ActionFunction.Proxy,
|
|
141038
|
-
ActionFunction.SWC
|
|
141069
|
+
ActionFunction.SWC,
|
|
141070
|
+
ActionFunction.Rspack
|
|
141039
141071
|
];
|
|
141040
141072
|
var MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
|
141041
141073
|
var MWAActionReactors = [ActionRefactor.ReactRouter5];
|
|
@@ -141127,7 +141159,8 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
141127
141159
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
141128
141160
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
141129
141161
|
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
141130
|
-
[ActionFunction.SWC]: "@modern-js/plugin-swc"
|
|
141162
|
+
[ActionFunction.SWC]: "@modern-js/plugin-swc",
|
|
141163
|
+
[ActionFunction.Rspack]: "@modern-js/builder-rspack-provider"
|
|
141131
141164
|
};
|
|
141132
141165
|
var MWAActionFunctionsDependencies = {
|
|
141133
141166
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
@@ -141159,7 +141192,8 @@ var MWANewActionGenerators = {
|
|
|
141159
141192
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
141160
141193
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
141161
141194
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
141162
|
-
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
141195
|
+
[ActionFunction.SWC]: "@modern-js/dependence-generator",
|
|
141196
|
+
[ActionFunction.Rspack]: "@modern-js/rspack-generator"
|
|
141163
141197
|
},
|
|
141164
141198
|
[ActionType.Refactor]: {
|
|
141165
141199
|
[ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
|
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-20230219113905",
|
|
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-
|
|
31
|
-
"@modern-js/generator-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
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-20230219113905",
|
|
30
|
+
"@modern-js/generator-plugin": "0.0.0-next-20230219113905",
|
|
31
|
+
"@modern-js/generator-common": "0.0.0-next-20230219113905",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-20230219113905",
|
|
33
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20230219113905",
|
|
34
|
+
"@modern-js/module-generator": "0.0.0-next-20230219113905",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-20230219113905",
|
|
36
|
+
"@modern-js/utils": "0.0.0-next-20230219113905",
|
|
37
|
+
"@scripts/build": "0.0.0-next-20230219113905",
|
|
38
|
+
"@scripts/jest-config": "0.0.0-next-20230219113905"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|