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