@modern-js/repo-generator 0.0.0-next-1685418932858 → 0.0.0-next-1685455730674
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 +36 -25
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -144137,7 +144137,8 @@ var ZH_LOCALE2 = {
|
|
|
144137
144137
|
self: "请选择你想要的操作",
|
|
144138
144138
|
function: {
|
|
144139
144139
|
self: "启用可选功能",
|
|
144140
|
-
|
|
144140
|
+
question: "请选择功能名称",
|
|
144141
|
+
tailwindcss: "启用 「Tailwind CSS」 支持",
|
|
144141
144142
|
bff: "启用「BFF」功能",
|
|
144142
144143
|
micro_frontend: "启用「微前端」模式",
|
|
144143
144144
|
i18n: "启用「国际化(i18n)」功能",
|
|
@@ -144155,11 +144156,13 @@ var ZH_LOCALE2 = {
|
|
|
144155
144156
|
},
|
|
144156
144157
|
element: {
|
|
144157
144158
|
self: "创建工程元素",
|
|
144159
|
+
question: "请选择创建元素类型",
|
|
144158
144160
|
entry: "新建「应用入口」",
|
|
144159
144161
|
server: "新建「自定义 Web Server」源码目录"
|
|
144160
144162
|
},
|
|
144161
144163
|
refactor: {
|
|
144162
144164
|
self: "自动重构",
|
|
144165
|
+
question: "请选择重构类型",
|
|
144163
144166
|
react_router_5: "使用 React Router v5"
|
|
144164
144167
|
}
|
|
144165
144168
|
},
|
|
@@ -144212,7 +144215,7 @@ var ZH_LOCALE2 = {
|
|
|
144212
144215
|
// ../../generator-common/dist/esm-node/locale/en.js
|
|
144213
144216
|
var EN_LOCALE2 = {
|
|
144214
144217
|
solution: {
|
|
144215
|
-
self: "Please select the
|
|
144218
|
+
self: "Please select the type of project you want to create:",
|
|
144216
144219
|
mwa: "Web App",
|
|
144217
144220
|
module: "Npm Module",
|
|
144218
144221
|
doc: "Doc Site",
|
|
@@ -144221,10 +144224,10 @@ var EN_LOCALE2 = {
|
|
|
144221
144224
|
default: "Default"
|
|
144222
144225
|
},
|
|
144223
144226
|
scenes: {
|
|
144224
|
-
self: "Please select the
|
|
144227
|
+
self: "Please select the project scenario:"
|
|
144225
144228
|
},
|
|
144226
144229
|
sub_solution: {
|
|
144227
|
-
self: "Please select the
|
|
144230
|
+
self: "Please select the type of project you want to create:",
|
|
144228
144231
|
mwa: "Web App",
|
|
144229
144232
|
mwa_test: "Web App (Test)",
|
|
144230
144233
|
module: "Npm Module",
|
|
@@ -144232,9 +144235,10 @@ var EN_LOCALE2 = {
|
|
|
144232
144235
|
monorepo: "Monorepo"
|
|
144233
144236
|
},
|
|
144234
144237
|
action: {
|
|
144235
|
-
self: "
|
|
144238
|
+
self: "Please select the operation you want:",
|
|
144236
144239
|
function: {
|
|
144237
|
-
self: "Enable
|
|
144240
|
+
self: "Enable Features",
|
|
144241
|
+
question: "Please select the feature name:",
|
|
144238
144242
|
tailwindcss: "Enable Tailwind CSS",
|
|
144239
144243
|
bff: "Enable BFF",
|
|
144240
144244
|
micro_frontend: "Enable Micro Frontend",
|
|
@@ -144252,12 +144256,14 @@ var EN_LOCALE2 = {
|
|
|
144252
144256
|
rspack: "Enable Rspack Build (experimental)"
|
|
144253
144257
|
},
|
|
144254
144258
|
element: {
|
|
144255
|
-
self: "Create
|
|
144259
|
+
self: "Create Element",
|
|
144260
|
+
question: "Please select the type of element to create:",
|
|
144256
144261
|
entry: 'New "entry"',
|
|
144257
144262
|
server: 'New "Custom Web Server" source code directory'
|
|
144258
144263
|
},
|
|
144259
144264
|
refactor: {
|
|
144260
|
-
self: "Automatic
|
|
144265
|
+
self: "Automatic Refactor",
|
|
144266
|
+
question: "Please select the type of refactoring:",
|
|
144261
144267
|
react_router_5: "Use React Router v5"
|
|
144262
144268
|
}
|
|
144263
144269
|
},
|
|
@@ -144266,28 +144272,28 @@ var EN_LOCALE2 = {
|
|
|
144266
144272
|
no: "No"
|
|
144267
144273
|
},
|
|
144268
144274
|
language: {
|
|
144269
|
-
self: "
|
|
144275
|
+
self: "Please select the programming language:"
|
|
144270
144276
|
},
|
|
144271
144277
|
packageManager: {
|
|
144272
|
-
self: "
|
|
144278
|
+
self: "Please select the package manager:"
|
|
144279
|
+
},
|
|
144280
|
+
entry: {
|
|
144281
|
+
name: "Please fill in the entry name:",
|
|
144282
|
+
no_empty: "The entry name cannot be empty!",
|
|
144283
|
+
no_pages: 'The entry name cannot be "pages"!'
|
|
144273
144284
|
},
|
|
144274
144285
|
packageName: {
|
|
144275
|
-
self: "
|
|
144276
|
-
sub_name: "
|
|
144286
|
+
self: "Please fill in the project name:",
|
|
144287
|
+
sub_name: "Please fill in the sub-project name:",
|
|
144277
144288
|
no_empty: "The package name cannot be empty!"
|
|
144278
144289
|
},
|
|
144279
144290
|
packagePath: {
|
|
144280
|
-
self: "
|
|
144291
|
+
self: "Please fill in the sub-project directory name:",
|
|
144281
144292
|
no_empty: "The package path cannot be empty!",
|
|
144282
144293
|
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
|
144283
144294
|
},
|
|
144284
|
-
entry: {
|
|
144285
|
-
name: "Entry name",
|
|
144286
|
-
no_empty: "The entry name cannot be empty!",
|
|
144287
|
-
no_pages: 'The entry name cannot be "pages"!'
|
|
144288
|
-
},
|
|
144289
144295
|
framework: {
|
|
144290
|
-
self: "Please select the framework
|
|
144296
|
+
self: "Please select the framework:",
|
|
144291
144297
|
egg: "Egg",
|
|
144292
144298
|
express: "Express",
|
|
144293
144299
|
koa: "Koa",
|
|
@@ -144295,13 +144301,13 @@ var EN_LOCALE2 = {
|
|
|
144295
144301
|
},
|
|
144296
144302
|
bff: {
|
|
144297
144303
|
bffType: {
|
|
144298
|
-
self: "BFF
|
|
144304
|
+
self: "Please select the BFF type:",
|
|
144299
144305
|
func: "Function",
|
|
144300
144306
|
framework: "Framework"
|
|
144301
144307
|
}
|
|
144302
144308
|
},
|
|
144303
144309
|
buildTools: {
|
|
144304
|
-
self: "
|
|
144310
|
+
self: "Please select the bundler:",
|
|
144305
144311
|
webpack: "webpack",
|
|
144306
144312
|
rspack: "Rspack (experimental)"
|
|
144307
144313
|
}
|
|
@@ -144701,6 +144707,11 @@ var ActionTypeText = {
|
|
|
144701
144707
|
[ActionType.Element]: () => i18n2.t(localeKeys2.action.element.self),
|
|
144702
144708
|
[ActionType.Refactor]: () => i18n2.t(localeKeys2.action.refactor.self)
|
|
144703
144709
|
};
|
|
144710
|
+
var ActionTypeQuestionText = {
|
|
144711
|
+
[ActionType.Function]: () => i18n2.t(localeKeys2.action.function.question),
|
|
144712
|
+
[ActionType.Element]: () => i18n2.t(localeKeys2.action.element.question),
|
|
144713
|
+
[ActionType.Refactor]: () => i18n2.t(localeKeys2.action.refactor.question)
|
|
144714
|
+
};
|
|
144704
144715
|
var ActionElementText = {
|
|
144705
144716
|
[ActionElement.Entry]: () => i18n2.t(localeKeys2.action.element.entry),
|
|
144706
144717
|
[ActionElement.Server]: () => i18n2.t(localeKeys2.action.element.server)
|
|
@@ -144780,7 +144791,7 @@ var getMWANewActionSchema = (extra = {}) => {
|
|
|
144780
144791
|
},
|
|
144781
144792
|
[ActionType.Element]: {
|
|
144782
144793
|
type: "string",
|
|
144783
|
-
title:
|
|
144794
|
+
title: ActionTypeQuestionText[ActionType.Element](),
|
|
144784
144795
|
enum: MWAActionElements.map((element) => ({
|
|
144785
144796
|
value: element,
|
|
144786
144797
|
label: ActionElementText[element]()
|
|
@@ -144800,7 +144811,7 @@ var getMWANewActionSchema = (extra = {}) => {
|
|
|
144800
144811
|
},
|
|
144801
144812
|
[ActionType.Function]: {
|
|
144802
144813
|
type: "string",
|
|
144803
|
-
title:
|
|
144814
|
+
title: ActionTypeQuestionText[ActionType.Function](),
|
|
144804
144815
|
enum: funcs.map((func) => ({
|
|
144805
144816
|
value: func,
|
|
144806
144817
|
label: func === ActionFunction.Storybook ? i18n2.t(localeKeys2.action.function.mwa_storybook) : ActionFunctionText[func]()
|
|
@@ -144820,7 +144831,7 @@ var getMWANewActionSchema = (extra = {}) => {
|
|
|
144820
144831
|
},
|
|
144821
144832
|
[ActionType.Refactor]: {
|
|
144822
144833
|
type: "string",
|
|
144823
|
-
title:
|
|
144834
|
+
title: ActionTypeQuestionText[ActionType.Refactor](),
|
|
144824
144835
|
enum: refactors.map((refactor) => ({
|
|
144825
144836
|
value: refactor,
|
|
144826
144837
|
label: ActionRefactorText[refactor]()
|
|
@@ -144965,7 +144976,7 @@ var getModuleNewActionSchema = (extra = {}) => {
|
|
|
144965
144976
|
},
|
|
144966
144977
|
[ActionType.Function]: {
|
|
144967
144978
|
type: "string",
|
|
144968
|
-
title:
|
|
144979
|
+
title: ActionTypeQuestionText[ActionType.Function](),
|
|
144969
144980
|
enum: ModuleActionFunctions.filter((func) => !funcMap[func]).map((func) => ({
|
|
144970
144981
|
value: func,
|
|
144971
144982
|
label: ActionFunctionText[func]()
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1685455730674",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^29",
|
|
31
31
|
"typescript": "^5",
|
|
32
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
33
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
35
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
36
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
37
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
38
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
39
|
-
"@modern-js/doc-generator": "0.0.0-next-
|
|
40
|
-
"@modern-js/utils": "0.0.0-next-
|
|
41
|
-
"@scripts/build": "0.0.0-next-
|
|
42
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-next-1685455730674",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-1685455730674",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-1685455730674",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-1685455730674",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-next-1685455730674",
|
|
37
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1685455730674",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-1685455730674",
|
|
39
|
+
"@modern-js/doc-generator": "0.0.0-next-1685455730674",
|
|
40
|
+
"@modern-js/utils": "0.0.0-next-1685455730674",
|
|
41
|
+
"@scripts/build": "0.0.0-next-1685455730674",
|
|
42
|
+
"@scripts/jest-config": "0.0.0-next-1685455730674"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"publishConfig": {
|