@modern-js/repo-generator 0.0.0-next-1686666902450 → 0.0.0-next-1686673235002
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 +1 -216
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -122901,9 +122901,6 @@ var require_constants2 = __commonJS({
|
|
|
122901
122901
|
INTERNAL_SERVER_PLUGINS: function() {
|
|
122902
122902
|
return INTERNAL_SERVER_PLUGINS;
|
|
122903
122903
|
},
|
|
122904
|
-
PLUGIN_SCHEMAS: function() {
|
|
122905
|
-
return PLUGIN_SCHEMAS;
|
|
122906
|
-
},
|
|
122907
122904
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: function() {
|
|
122908
122905
|
return DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS;
|
|
122909
122906
|
}
|
|
@@ -122958,8 +122955,6 @@ var require_constants2 = __commonJS({
|
|
|
122958
122955
|
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
122959
122956
|
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
122960
122957
|
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
122961
|
-
// TODO: Maybe can remove it
|
|
122962
|
-
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
122963
122958
|
// legacy router (inner react-router-dom v5)
|
|
122964
122959
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
122965
122960
|
};
|
|
@@ -122990,8 +122985,6 @@ var require_constants2 = __commonJS({
|
|
|
122990
122985
|
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
|
122991
122986
|
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
122992
122987
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
122993
|
-
// TODO: Maybe can remove it
|
|
122994
|
-
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
122995
122988
|
// legacy router (inner react-router-dom v5)
|
|
122996
122989
|
"@modern-js/plugin-router-v5": "@modern-js/plugin-router-v5/cli"
|
|
122997
122990
|
};
|
|
@@ -123007,214 +123000,6 @@ var require_constants2 = __commonJS({
|
|
|
123007
123000
|
[SERVER_PLUGIN_SERVER]: "@modern-js/plugin-server/server",
|
|
123008
123001
|
[SERVER_PLUGIN_POLYFILL]: "@modern-js/plugin-polyfill/server"
|
|
123009
123002
|
};
|
|
123010
|
-
var PLUGIN_SCHEMAS = {
|
|
123011
|
-
"@modern-js/runtime": [
|
|
123012
|
-
{
|
|
123013
|
-
target: "runtime",
|
|
123014
|
-
schema: {
|
|
123015
|
-
type: "object",
|
|
123016
|
-
additionalProperties: false
|
|
123017
|
-
}
|
|
123018
|
-
},
|
|
123019
|
-
{
|
|
123020
|
-
target: "runtimeByEntries",
|
|
123021
|
-
schema: {
|
|
123022
|
-
type: "object",
|
|
123023
|
-
patternProperties: {
|
|
123024
|
-
[ENTRY_NAME_PATTERN]: {
|
|
123025
|
-
type: "object"
|
|
123026
|
-
}
|
|
123027
|
-
},
|
|
123028
|
-
additionalProperties: false
|
|
123029
|
-
}
|
|
123030
|
-
}
|
|
123031
|
-
],
|
|
123032
|
-
"@modern-js/plugin-swc": [
|
|
123033
|
-
{
|
|
123034
|
-
target: "tools.swc",
|
|
123035
|
-
schema: {
|
|
123036
|
-
typeof: [
|
|
123037
|
-
"object"
|
|
123038
|
-
]
|
|
123039
|
-
}
|
|
123040
|
-
}
|
|
123041
|
-
],
|
|
123042
|
-
"@modern-js/plugin-bff": [
|
|
123043
|
-
{
|
|
123044
|
-
target: "bff",
|
|
123045
|
-
schema: {
|
|
123046
|
-
type: "object",
|
|
123047
|
-
properties: {
|
|
123048
|
-
prefix: {
|
|
123049
|
-
type: [
|
|
123050
|
-
"string",
|
|
123051
|
-
"array"
|
|
123052
|
-
],
|
|
123053
|
-
items: {
|
|
123054
|
-
type: "string"
|
|
123055
|
-
}
|
|
123056
|
-
},
|
|
123057
|
-
fetcher: {
|
|
123058
|
-
type: "string"
|
|
123059
|
-
},
|
|
123060
|
-
proxy: {
|
|
123061
|
-
type: "object"
|
|
123062
|
-
},
|
|
123063
|
-
requestCreator: {
|
|
123064
|
-
type: "string"
|
|
123065
|
-
}
|
|
123066
|
-
}
|
|
123067
|
-
}
|
|
123068
|
-
}
|
|
123069
|
-
],
|
|
123070
|
-
"@modern-js/plugin-tailwindcss": [
|
|
123071
|
-
{
|
|
123072
|
-
target: "tools.tailwindcss",
|
|
123073
|
-
schema: {
|
|
123074
|
-
typeof: [
|
|
123075
|
-
"object",
|
|
123076
|
-
"function"
|
|
123077
|
-
]
|
|
123078
|
-
}
|
|
123079
|
-
}
|
|
123080
|
-
],
|
|
123081
|
-
"@modern-js/plugin-proxy": [
|
|
123082
|
-
{
|
|
123083
|
-
target: "dev.proxy",
|
|
123084
|
-
schema: {
|
|
123085
|
-
typeof: [
|
|
123086
|
-
"string",
|
|
123087
|
-
"object"
|
|
123088
|
-
]
|
|
123089
|
-
}
|
|
123090
|
-
}
|
|
123091
|
-
],
|
|
123092
|
-
"@modern-js/plugin-ssg": [
|
|
123093
|
-
{
|
|
123094
|
-
target: "output.ssg",
|
|
123095
|
-
schema: {
|
|
123096
|
-
oneOf: [
|
|
123097
|
-
{
|
|
123098
|
-
type: "boolean"
|
|
123099
|
-
},
|
|
123100
|
-
{
|
|
123101
|
-
type: "object"
|
|
123102
|
-
},
|
|
123103
|
-
{
|
|
123104
|
-
instanceof: "Function"
|
|
123105
|
-
}
|
|
123106
|
-
]
|
|
123107
|
-
}
|
|
123108
|
-
}
|
|
123109
|
-
],
|
|
123110
|
-
"@modern-js/plugin-state": [
|
|
123111
|
-
{
|
|
123112
|
-
target: "runtime.state",
|
|
123113
|
-
schema: {
|
|
123114
|
-
type: [
|
|
123115
|
-
"boolean",
|
|
123116
|
-
"object"
|
|
123117
|
-
]
|
|
123118
|
-
}
|
|
123119
|
-
}
|
|
123120
|
-
],
|
|
123121
|
-
"@modern-js/plugin-design-token": [
|
|
123122
|
-
// Legacy Features
|
|
123123
|
-
{
|
|
123124
|
-
target: "source.designSystem",
|
|
123125
|
-
schema: {
|
|
123126
|
-
typeof: [
|
|
123127
|
-
"object"
|
|
123128
|
-
]
|
|
123129
|
-
}
|
|
123130
|
-
},
|
|
123131
|
-
{
|
|
123132
|
-
target: "source.designSystem.supportStyledComponents",
|
|
123133
|
-
schema: {
|
|
123134
|
-
type: [
|
|
123135
|
-
"boolean"
|
|
123136
|
-
]
|
|
123137
|
-
}
|
|
123138
|
-
},
|
|
123139
|
-
{
|
|
123140
|
-
target: "designSystem",
|
|
123141
|
-
schema: {
|
|
123142
|
-
typeof: [
|
|
123143
|
-
"object"
|
|
123144
|
-
]
|
|
123145
|
-
}
|
|
123146
|
-
}
|
|
123147
|
-
],
|
|
123148
|
-
"@modern-js/plugin-router": [
|
|
123149
|
-
{
|
|
123150
|
-
target: "runtime.router",
|
|
123151
|
-
schema: {
|
|
123152
|
-
type: [
|
|
123153
|
-
"boolean",
|
|
123154
|
-
"object"
|
|
123155
|
-
]
|
|
123156
|
-
}
|
|
123157
|
-
}
|
|
123158
|
-
],
|
|
123159
|
-
"@modern-js/plugin-testing": [
|
|
123160
|
-
{
|
|
123161
|
-
target: "testing",
|
|
123162
|
-
schema: {
|
|
123163
|
-
typeof: [
|
|
123164
|
-
"object"
|
|
123165
|
-
]
|
|
123166
|
-
}
|
|
123167
|
-
},
|
|
123168
|
-
{
|
|
123169
|
-
target: "tools.jest",
|
|
123170
|
-
schema: {
|
|
123171
|
-
typeof: [
|
|
123172
|
-
"object",
|
|
123173
|
-
"function"
|
|
123174
|
-
]
|
|
123175
|
-
}
|
|
123176
|
-
}
|
|
123177
|
-
],
|
|
123178
|
-
"@modern-js/plugin-garfish": [
|
|
123179
|
-
{
|
|
123180
|
-
target: "runtime.masterApp",
|
|
123181
|
-
schema: {
|
|
123182
|
-
type: [
|
|
123183
|
-
"boolean",
|
|
123184
|
-
"object"
|
|
123185
|
-
]
|
|
123186
|
-
}
|
|
123187
|
-
},
|
|
123188
|
-
{
|
|
123189
|
-
target: "dev.withMasterApp",
|
|
123190
|
-
schema: {
|
|
123191
|
-
type: [
|
|
123192
|
-
"object"
|
|
123193
|
-
]
|
|
123194
|
-
}
|
|
123195
|
-
},
|
|
123196
|
-
{
|
|
123197
|
-
target: "deploy.microFrontend",
|
|
123198
|
-
schema: {
|
|
123199
|
-
type: [
|
|
123200
|
-
"boolean",
|
|
123201
|
-
"object"
|
|
123202
|
-
]
|
|
123203
|
-
}
|
|
123204
|
-
}
|
|
123205
|
-
],
|
|
123206
|
-
"@modern-js/plugin-nocode": [],
|
|
123207
|
-
"@modern-js/plugin-worker": [
|
|
123208
|
-
{
|
|
123209
|
-
target: "deploy.worker.ssr",
|
|
123210
|
-
schema: {
|
|
123211
|
-
type: [
|
|
123212
|
-
"boolean"
|
|
123213
|
-
]
|
|
123214
|
-
}
|
|
123215
|
-
}
|
|
123216
|
-
]
|
|
123217
|
-
};
|
|
123218
123003
|
var DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS = {
|
|
123219
123004
|
allowNamespaces: true,
|
|
123220
123005
|
allExtensions: true,
|
|
@@ -144538,7 +144323,7 @@ var ZH_LOCALE2 = {
|
|
|
144538
144323
|
function: {
|
|
144539
144324
|
self: "启用可选功能",
|
|
144540
144325
|
question: "请选择功能名称",
|
|
144541
|
-
tailwindcss: "
|
|
144326
|
+
tailwindcss: "启用「Tailwind CSS」 支持",
|
|
144542
144327
|
bff: "启用「BFF」功能",
|
|
144543
144328
|
micro_frontend: "启用「微前端」模式",
|
|
144544
144329
|
i18n: "启用「国际化(i18n)」功能",
|
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-1686673235002",
|
|
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/
|
|
39
|
-
"@modern-js/
|
|
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-1686673235002",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-1686673235002",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-1686673235002",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-1686673235002",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-next-1686673235002",
|
|
37
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1686673235002",
|
|
38
|
+
"@modern-js/doc-generator": "0.0.0-next-1686673235002",
|
|
39
|
+
"@modern-js/mwa-generator": "0.0.0-next-1686673235002",
|
|
40
|
+
"@modern-js/utils": "0.0.0-next-1686673235002",
|
|
41
|
+
"@scripts/build": "0.0.0-next-1686673235002",
|
|
42
|
+
"@scripts/jest-config": "0.0.0-next-1686673235002"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"publishConfig": {
|