@modern-js/app-tools 2.39.2 → 2.41.0
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/cjs/analyze/getBundleEntry.js +2 -1
- package/dist/cjs/analyze/getHtmlTemplate.js +5 -5
- package/dist/cjs/analyze/index.js +0 -8
- package/dist/cjs/analyze/nestedRoutes.js +1 -2
- package/dist/cjs/analyze/utils.js +10 -0
- package/dist/cjs/builder/shared/bundlerPlugins/RouterPlugin.js +1 -1
- package/dist/cjs/defineConfig.js +8 -6
- package/dist/cjs/initialize/index.js +0 -7
- package/dist/esm/analyze/getBundleEntry.js +2 -1
- package/dist/esm/analyze/getHtmlTemplate.js +5 -5
- package/dist/esm/analyze/index.js +0 -8
- package/dist/esm/analyze/nestedRoutes.js +1 -4
- package/dist/esm/analyze/utils.js +9 -0
- package/dist/esm/builder/shared/bundlerPlugins/RouterPlugin.js +1 -1
- package/dist/esm/config/initialize/inits.js +19 -19
- package/dist/esm/defineConfig.js +1 -1
- package/dist/esm/initialize/index.js +0 -7
- package/dist/esm-node/analyze/getBundleEntry.js +2 -1
- package/dist/esm-node/analyze/getHtmlTemplate.js +5 -5
- package/dist/esm-node/analyze/index.js +0 -8
- package/dist/esm-node/analyze/nestedRoutes.js +1 -2
- package/dist/esm-node/analyze/utils.js +9 -0
- package/dist/esm-node/builder/shared/bundlerPlugins/RouterPlugin.js +1 -1
- package/dist/esm-node/defineConfig.js +8 -6
- package/dist/esm-node/initialize/index.js +0 -7
- package/dist/types/analyze/utils.d.ts +2 -1
- package/package.json +26 -26
- package/dist/cjs/schema/Schema.js +0 -66
- package/dist/cjs/schema/index.js +0 -205
- package/dist/cjs/schema/legacy.js +0 -364
- package/dist/esm/schema/Schema.js +0 -82
- package/dist/esm/schema/index.js +0 -169
- package/dist/esm/schema/legacy.js +0 -333
- package/dist/esm-node/schema/Schema.js +0 -42
- package/dist/esm-node/schema/index.js +0 -170
- package/dist/esm-node/schema/legacy.js +0 -344
- package/dist/types/schema/Schema.d.ts +0 -14
- package/dist/types/schema/index.d.ts +0 -4
- package/dist/types/schema/legacy.d.ts +0 -3
package/dist/esm/schema/index.js
DELETED
@@ -1,169 +0,0 @@
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
2
|
-
import { ENTRY_NAME_PATTERN } from "@modern-js/utils";
|
3
|
-
import { Schema } from "./Schema";
|
4
|
-
var source = {
|
5
|
-
entries: {
|
6
|
-
type: "object",
|
7
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
8
|
-
if: {
|
9
|
-
type: "object"
|
10
|
-
},
|
11
|
-
then: {
|
12
|
-
required: [
|
13
|
-
"entry"
|
14
|
-
],
|
15
|
-
properties: {
|
16
|
-
entry: {
|
17
|
-
type: [
|
18
|
-
"string",
|
19
|
-
"array"
|
20
|
-
]
|
21
|
-
},
|
22
|
-
disableMount: {
|
23
|
-
type: "boolean"
|
24
|
-
},
|
25
|
-
customBootstrap: {
|
26
|
-
type: "string"
|
27
|
-
}
|
28
|
-
},
|
29
|
-
additionalProperties: false
|
30
|
-
},
|
31
|
-
else: {
|
32
|
-
type: [
|
33
|
-
"string",
|
34
|
-
"array"
|
35
|
-
]
|
36
|
-
}
|
37
|
-
})
|
38
|
-
},
|
39
|
-
mainEntryName: {
|
40
|
-
type: "string"
|
41
|
-
},
|
42
|
-
enableAsyncEntry: {
|
43
|
-
type: "boolean"
|
44
|
-
},
|
45
|
-
disableDefaultEntries: {
|
46
|
-
type: "boolean"
|
47
|
-
},
|
48
|
-
entriesDir: {
|
49
|
-
type: "string"
|
50
|
-
},
|
51
|
-
disableEntryDirs: {
|
52
|
-
type: "array"
|
53
|
-
},
|
54
|
-
configDir: {
|
55
|
-
type: "string"
|
56
|
-
},
|
57
|
-
designSystem: {
|
58
|
-
type: "object"
|
59
|
-
}
|
60
|
-
};
|
61
|
-
var bff = {
|
62
|
-
prefix: {
|
63
|
-
type: "string"
|
64
|
-
},
|
65
|
-
httpMethodDecider: {
|
66
|
-
type: "string",
|
67
|
-
enum: [
|
68
|
-
"functionName",
|
69
|
-
"inputParams"
|
70
|
-
]
|
71
|
-
},
|
72
|
-
proxy: {
|
73
|
-
type: "object",
|
74
|
-
additionalProperties: {
|
75
|
-
type: "string"
|
76
|
-
}
|
77
|
-
}
|
78
|
-
};
|
79
|
-
var output = {
|
80
|
-
ssg: {
|
81
|
-
typeof: [
|
82
|
-
"boolean",
|
83
|
-
"object",
|
84
|
-
"function"
|
85
|
-
]
|
86
|
-
},
|
87
|
-
disableNodePolyfill: {
|
88
|
-
type: "boolean"
|
89
|
-
},
|
90
|
-
enableInlineRouteManifests: {
|
91
|
-
type: "boolean"
|
92
|
-
}
|
93
|
-
};
|
94
|
-
var dev = {};
|
95
|
-
var server = {
|
96
|
-
routes: {
|
97
|
-
type: "object"
|
98
|
-
},
|
99
|
-
publicRoutes: {
|
100
|
-
type: "object"
|
101
|
-
},
|
102
|
-
ssr: {
|
103
|
-
type: [
|
104
|
-
"boolean",
|
105
|
-
"object"
|
106
|
-
]
|
107
|
-
},
|
108
|
-
ssrByEntries: {
|
109
|
-
type: "object"
|
110
|
-
},
|
111
|
-
baseUrl: {
|
112
|
-
anyOf: [
|
113
|
-
{
|
114
|
-
type: "string"
|
115
|
-
},
|
116
|
-
{
|
117
|
-
type: "array",
|
118
|
-
items: {
|
119
|
-
type: "string"
|
120
|
-
}
|
121
|
-
}
|
122
|
-
]
|
123
|
-
},
|
124
|
-
port: {
|
125
|
-
type: "number"
|
126
|
-
},
|
127
|
-
logger: {
|
128
|
-
type: [
|
129
|
-
"boolean",
|
130
|
-
"object"
|
131
|
-
]
|
132
|
-
},
|
133
|
-
metrics: {
|
134
|
-
type: [
|
135
|
-
"boolean",
|
136
|
-
"object"
|
137
|
-
]
|
138
|
-
},
|
139
|
-
enableMicroFrontendDebug: {
|
140
|
-
type: "boolean"
|
141
|
-
},
|
142
|
-
watchOptions: {
|
143
|
-
type: "object"
|
144
|
-
},
|
145
|
-
compiler: {
|
146
|
-
type: "string"
|
147
|
-
},
|
148
|
-
enableFrameworkExt: {
|
149
|
-
type: "boolean"
|
150
|
-
}
|
151
|
-
};
|
152
|
-
var tools = {
|
153
|
-
esbuild: {
|
154
|
-
typeof: [
|
155
|
-
"object"
|
156
|
-
]
|
157
|
-
}
|
158
|
-
};
|
159
|
-
var deploy = {};
|
160
|
-
var builderPlugins = {
|
161
|
-
type: "array"
|
162
|
-
};
|
163
|
-
var schema = new Schema();
|
164
|
-
schema.setSchema("bff", bff).setSchema("dev", dev).setSchema("server", server).setSchema("source", source).setSchema("output", output).setSchema("tools", tools).setSchema("deploy", deploy).set("builderPlugin", builderPlugins);
|
165
|
-
import { default as default2 } from "./legacy";
|
166
|
-
export {
|
167
|
-
default2 as legacySchema,
|
168
|
-
schema
|
169
|
-
};
|
@@ -1,333 +0,0 @@
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
2
|
-
import { ENTRY_NAME_PATTERN } from "@modern-js/utils";
|
3
|
-
import { Schema } from "./Schema";
|
4
|
-
var source = {
|
5
|
-
entries: {
|
6
|
-
type: "object",
|
7
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
8
|
-
if: {
|
9
|
-
type: "object"
|
10
|
-
},
|
11
|
-
then: {
|
12
|
-
required: [
|
13
|
-
"entry"
|
14
|
-
],
|
15
|
-
properties: {
|
16
|
-
entry: {
|
17
|
-
type: [
|
18
|
-
"string",
|
19
|
-
"array"
|
20
|
-
]
|
21
|
-
},
|
22
|
-
disableMount: {
|
23
|
-
type: "boolean"
|
24
|
-
}
|
25
|
-
},
|
26
|
-
additionalProperties: false
|
27
|
-
},
|
28
|
-
else: {
|
29
|
-
type: [
|
30
|
-
"string",
|
31
|
-
"array"
|
32
|
-
]
|
33
|
-
}
|
34
|
-
})
|
35
|
-
},
|
36
|
-
mainEntryName: {
|
37
|
-
type: "string"
|
38
|
-
},
|
39
|
-
preEntry: {
|
40
|
-
type: [
|
41
|
-
"string",
|
42
|
-
"array"
|
43
|
-
]
|
44
|
-
},
|
45
|
-
alias: {
|
46
|
-
typeof: [
|
47
|
-
"object",
|
48
|
-
"function"
|
49
|
-
]
|
50
|
-
},
|
51
|
-
enableAsyncEntry: {
|
52
|
-
type: "boolean"
|
53
|
-
},
|
54
|
-
disableDefaultEntries: {
|
55
|
-
type: "boolean"
|
56
|
-
},
|
57
|
-
envVars: {
|
58
|
-
type: "array"
|
59
|
-
},
|
60
|
-
globalVars: {
|
61
|
-
typeof: [
|
62
|
-
"object",
|
63
|
-
"function"
|
64
|
-
]
|
65
|
-
},
|
66
|
-
moduleScopes: {
|
67
|
-
instanceof: [
|
68
|
-
"Array",
|
69
|
-
"Function"
|
70
|
-
]
|
71
|
-
},
|
72
|
-
entriesDir: {
|
73
|
-
type: "string"
|
74
|
-
},
|
75
|
-
configDir: {
|
76
|
-
type: "string"
|
77
|
-
},
|
78
|
-
include: {
|
79
|
-
type: [
|
80
|
-
"array"
|
81
|
-
]
|
82
|
-
}
|
83
|
-
};
|
84
|
-
var output = {
|
85
|
-
assetPrefix: {
|
86
|
-
type: "string"
|
87
|
-
},
|
88
|
-
path: {
|
89
|
-
type: "string"
|
90
|
-
},
|
91
|
-
jsPath: {
|
92
|
-
type: "string"
|
93
|
-
},
|
94
|
-
cssPath: {
|
95
|
-
type: "string"
|
96
|
-
},
|
97
|
-
htmlPath: {
|
98
|
-
type: "string"
|
99
|
-
},
|
100
|
-
mediaPath: {
|
101
|
-
type: "string"
|
102
|
-
},
|
103
|
-
mountId: {
|
104
|
-
type: "string"
|
105
|
-
},
|
106
|
-
favicon: {
|
107
|
-
type: "string"
|
108
|
-
},
|
109
|
-
faviconByEntries: {
|
110
|
-
type: "object",
|
111
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
112
|
-
type: "string"
|
113
|
-
})
|
114
|
-
},
|
115
|
-
title: {
|
116
|
-
type: "string"
|
117
|
-
},
|
118
|
-
titleByEntries: {
|
119
|
-
type: "object",
|
120
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
121
|
-
type: "string"
|
122
|
-
})
|
123
|
-
},
|
124
|
-
meta: {
|
125
|
-
type: "object"
|
126
|
-
},
|
127
|
-
metaByEntries: {
|
128
|
-
type: "object",
|
129
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
130
|
-
type: "object"
|
131
|
-
})
|
132
|
-
},
|
133
|
-
inject: {
|
134
|
-
enum: [
|
135
|
-
true,
|
136
|
-
"head",
|
137
|
-
"body",
|
138
|
-
false
|
139
|
-
]
|
140
|
-
},
|
141
|
-
injectByEntries: {
|
142
|
-
type: "object",
|
143
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
144
|
-
enum: [
|
145
|
-
true,
|
146
|
-
"head",
|
147
|
-
"body",
|
148
|
-
false
|
149
|
-
]
|
150
|
-
})
|
151
|
-
},
|
152
|
-
copy: {
|
153
|
-
type: "array"
|
154
|
-
},
|
155
|
-
scriptExt: {
|
156
|
-
type: "object"
|
157
|
-
},
|
158
|
-
disableTsChecker: {
|
159
|
-
type: "boolean"
|
160
|
-
},
|
161
|
-
disableHtmlFolder: {
|
162
|
-
type: "boolean"
|
163
|
-
},
|
164
|
-
disableCssModuleExtension: {
|
165
|
-
type: "boolean"
|
166
|
-
},
|
167
|
-
disableCssExtract: {
|
168
|
-
type: "boolean"
|
169
|
-
},
|
170
|
-
enableCssModuleTSDeclaration: {
|
171
|
-
type: "boolean"
|
172
|
-
},
|
173
|
-
disableMinimize: {
|
174
|
-
type: "boolean"
|
175
|
-
},
|
176
|
-
enableInlineStyles: {
|
177
|
-
type: "boolean"
|
178
|
-
},
|
179
|
-
enableInlineScripts: {
|
180
|
-
type: "boolean"
|
181
|
-
},
|
182
|
-
disableSourceMap: {
|
183
|
-
type: "boolean"
|
184
|
-
},
|
185
|
-
disableInlineRuntimeChunk: {
|
186
|
-
type: "boolean"
|
187
|
-
},
|
188
|
-
disableAssetsCache: {
|
189
|
-
type: "boolean"
|
190
|
-
},
|
191
|
-
enableLatestDecorators: {
|
192
|
-
type: "boolean"
|
193
|
-
},
|
194
|
-
enableTsLoader: {
|
195
|
-
type: "boolean"
|
196
|
-
},
|
197
|
-
dataUriLimit: {
|
198
|
-
type: "number"
|
199
|
-
},
|
200
|
-
templateParameters: {
|
201
|
-
type: "object"
|
202
|
-
},
|
203
|
-
templateParametersByEntries: {
|
204
|
-
type: "object",
|
205
|
-
patternProperties: _define_property({}, ENTRY_NAME_PATTERN, {
|
206
|
-
type: "object"
|
207
|
-
})
|
208
|
-
},
|
209
|
-
polyfill: {
|
210
|
-
type: "string",
|
211
|
-
enum: [
|
212
|
-
"usage",
|
213
|
-
"entry",
|
214
|
-
"off",
|
215
|
-
"ua"
|
216
|
-
]
|
217
|
-
},
|
218
|
-
cssModuleLocalIdentName: {
|
219
|
-
type: "string"
|
220
|
-
},
|
221
|
-
federation: {
|
222
|
-
type: "object"
|
223
|
-
},
|
224
|
-
disableNodePolyfill: {
|
225
|
-
type: "boolean"
|
226
|
-
}
|
227
|
-
};
|
228
|
-
var server = {
|
229
|
-
routes: {
|
230
|
-
type: "object"
|
231
|
-
},
|
232
|
-
publicRoutes: {
|
233
|
-
type: "object"
|
234
|
-
},
|
235
|
-
ssr: {
|
236
|
-
type: [
|
237
|
-
"boolean",
|
238
|
-
"object"
|
239
|
-
]
|
240
|
-
},
|
241
|
-
ssrByEntries: {
|
242
|
-
type: "object"
|
243
|
-
},
|
244
|
-
baseUrl: {
|
245
|
-
anyOf: [
|
246
|
-
{
|
247
|
-
type: "string"
|
248
|
-
},
|
249
|
-
{
|
250
|
-
type: "array",
|
251
|
-
items: {
|
252
|
-
type: "string"
|
253
|
-
}
|
254
|
-
}
|
255
|
-
]
|
256
|
-
},
|
257
|
-
port: {
|
258
|
-
type: "number"
|
259
|
-
},
|
260
|
-
logger: {
|
261
|
-
type: [
|
262
|
-
"boolean",
|
263
|
-
"object"
|
264
|
-
]
|
265
|
-
},
|
266
|
-
metrics: {
|
267
|
-
type: [
|
268
|
-
"boolean",
|
269
|
-
"object"
|
270
|
-
]
|
271
|
-
},
|
272
|
-
enableMicroFrontendDebug: {
|
273
|
-
type: "boolean"
|
274
|
-
},
|
275
|
-
watchOptions: {
|
276
|
-
type: "object"
|
277
|
-
},
|
278
|
-
compiler: {
|
279
|
-
type: "string"
|
280
|
-
},
|
281
|
-
enableFrameworkExt: {
|
282
|
-
type: "boolean"
|
283
|
-
}
|
284
|
-
};
|
285
|
-
var dev = {
|
286
|
-
proxy: {
|
287
|
-
type: [
|
288
|
-
"boolean",
|
289
|
-
"object"
|
290
|
-
]
|
291
|
-
}
|
292
|
-
};
|
293
|
-
var deploy = {
|
294
|
-
microFrontend: {
|
295
|
-
type: [
|
296
|
-
"boolean",
|
297
|
-
"object"
|
298
|
-
]
|
299
|
-
}
|
300
|
-
};
|
301
|
-
var tools = {
|
302
|
-
tailwindcss: {
|
303
|
-
type: "object"
|
304
|
-
},
|
305
|
-
jest: {
|
306
|
-
typeof: [
|
307
|
-
"object",
|
308
|
-
"function"
|
309
|
-
]
|
310
|
-
},
|
311
|
-
esbuild: {
|
312
|
-
typeof: [
|
313
|
-
"object"
|
314
|
-
]
|
315
|
-
}
|
316
|
-
};
|
317
|
-
var bff = {
|
318
|
-
prefix: {
|
319
|
-
type: "string"
|
320
|
-
},
|
321
|
-
proxy: {
|
322
|
-
type: "object",
|
323
|
-
additionalProperties: {
|
324
|
-
type: "string"
|
325
|
-
}
|
326
|
-
}
|
327
|
-
};
|
328
|
-
var schema = new Schema();
|
329
|
-
schema.setSchema("bff", bff).setSchema("dev", dev).setSchema("server", server).setSchema("source", source).setSchema("output", output).setSchema("tools", tools).setSchema("deploy", deploy);
|
330
|
-
var legacy_default = schema;
|
331
|
-
export {
|
332
|
-
legacy_default as default
|
333
|
-
};
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
2
|
-
import { merge } from "@modern-js/utils/lodash";
|
3
|
-
class Schema extends Map {
|
4
|
-
setSchema(key, object) {
|
5
|
-
Object.entries(object).forEach(([k, v]) => {
|
6
|
-
const target = `${key}.${k}`;
|
7
|
-
this.set(target, v);
|
8
|
-
});
|
9
|
-
return this;
|
10
|
-
}
|
11
|
-
set(key, value) {
|
12
|
-
if (this.has(key)) {
|
13
|
-
merge(this.schema[key], value);
|
14
|
-
} else {
|
15
|
-
this.schema[key] = value;
|
16
|
-
}
|
17
|
-
return this;
|
18
|
-
}
|
19
|
-
has(key) {
|
20
|
-
return key in this.schema;
|
21
|
-
}
|
22
|
-
get(key) {
|
23
|
-
return this.schema[key];
|
24
|
-
}
|
25
|
-
delete(key) {
|
26
|
-
return delete this.schema[key];
|
27
|
-
}
|
28
|
-
generate() {
|
29
|
-
return Object.entries(this.schema).map(([target, schema]) => ({
|
30
|
-
target,
|
31
|
-
schema
|
32
|
-
}));
|
33
|
-
}
|
34
|
-
constructor(baseSchema = {}) {
|
35
|
-
super();
|
36
|
-
_define_property(this, "schema", void 0);
|
37
|
-
this.schema = baseSchema;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
export {
|
41
|
-
Schema
|
42
|
-
};
|
@@ -1,170 +0,0 @@
|
|
1
|
-
import { ENTRY_NAME_PATTERN } from "@modern-js/utils";
|
2
|
-
import { Schema } from "./Schema";
|
3
|
-
const source = {
|
4
|
-
entries: {
|
5
|
-
type: "object",
|
6
|
-
patternProperties: {
|
7
|
-
[ENTRY_NAME_PATTERN]: {
|
8
|
-
if: {
|
9
|
-
type: "object"
|
10
|
-
},
|
11
|
-
then: {
|
12
|
-
required: [
|
13
|
-
"entry"
|
14
|
-
],
|
15
|
-
properties: {
|
16
|
-
entry: {
|
17
|
-
type: [
|
18
|
-
"string",
|
19
|
-
"array"
|
20
|
-
]
|
21
|
-
},
|
22
|
-
disableMount: {
|
23
|
-
type: "boolean"
|
24
|
-
},
|
25
|
-
customBootstrap: {
|
26
|
-
type: "string"
|
27
|
-
}
|
28
|
-
},
|
29
|
-
additionalProperties: false
|
30
|
-
},
|
31
|
-
else: {
|
32
|
-
type: [
|
33
|
-
"string",
|
34
|
-
"array"
|
35
|
-
]
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
},
|
40
|
-
mainEntryName: {
|
41
|
-
type: "string"
|
42
|
-
},
|
43
|
-
enableAsyncEntry: {
|
44
|
-
type: "boolean"
|
45
|
-
},
|
46
|
-
disableDefaultEntries: {
|
47
|
-
type: "boolean"
|
48
|
-
},
|
49
|
-
entriesDir: {
|
50
|
-
type: "string"
|
51
|
-
},
|
52
|
-
disableEntryDirs: {
|
53
|
-
type: "array"
|
54
|
-
},
|
55
|
-
configDir: {
|
56
|
-
type: "string"
|
57
|
-
},
|
58
|
-
designSystem: {
|
59
|
-
type: "object"
|
60
|
-
}
|
61
|
-
};
|
62
|
-
const bff = {
|
63
|
-
prefix: {
|
64
|
-
type: "string"
|
65
|
-
},
|
66
|
-
httpMethodDecider: {
|
67
|
-
type: "string",
|
68
|
-
enum: [
|
69
|
-
"functionName",
|
70
|
-
"inputParams"
|
71
|
-
]
|
72
|
-
},
|
73
|
-
proxy: {
|
74
|
-
type: "object",
|
75
|
-
additionalProperties: {
|
76
|
-
type: "string"
|
77
|
-
}
|
78
|
-
}
|
79
|
-
};
|
80
|
-
const output = {
|
81
|
-
ssg: {
|
82
|
-
typeof: [
|
83
|
-
"boolean",
|
84
|
-
"object",
|
85
|
-
"function"
|
86
|
-
]
|
87
|
-
},
|
88
|
-
disableNodePolyfill: {
|
89
|
-
type: "boolean"
|
90
|
-
},
|
91
|
-
enableInlineRouteManifests: {
|
92
|
-
type: "boolean"
|
93
|
-
}
|
94
|
-
};
|
95
|
-
const dev = {};
|
96
|
-
const server = {
|
97
|
-
routes: {
|
98
|
-
type: "object"
|
99
|
-
},
|
100
|
-
publicRoutes: {
|
101
|
-
type: "object"
|
102
|
-
},
|
103
|
-
ssr: {
|
104
|
-
type: [
|
105
|
-
"boolean",
|
106
|
-
"object"
|
107
|
-
]
|
108
|
-
},
|
109
|
-
ssrByEntries: {
|
110
|
-
type: "object"
|
111
|
-
},
|
112
|
-
baseUrl: {
|
113
|
-
anyOf: [
|
114
|
-
{
|
115
|
-
type: "string"
|
116
|
-
},
|
117
|
-
{
|
118
|
-
type: "array",
|
119
|
-
items: {
|
120
|
-
type: "string"
|
121
|
-
}
|
122
|
-
}
|
123
|
-
]
|
124
|
-
},
|
125
|
-
port: {
|
126
|
-
type: "number"
|
127
|
-
},
|
128
|
-
logger: {
|
129
|
-
type: [
|
130
|
-
"boolean",
|
131
|
-
"object"
|
132
|
-
]
|
133
|
-
},
|
134
|
-
metrics: {
|
135
|
-
type: [
|
136
|
-
"boolean",
|
137
|
-
"object"
|
138
|
-
]
|
139
|
-
},
|
140
|
-
enableMicroFrontendDebug: {
|
141
|
-
type: "boolean"
|
142
|
-
},
|
143
|
-
watchOptions: {
|
144
|
-
type: "object"
|
145
|
-
},
|
146
|
-
compiler: {
|
147
|
-
type: "string"
|
148
|
-
},
|
149
|
-
enableFrameworkExt: {
|
150
|
-
type: "boolean"
|
151
|
-
}
|
152
|
-
};
|
153
|
-
const tools = {
|
154
|
-
esbuild: {
|
155
|
-
typeof: [
|
156
|
-
"object"
|
157
|
-
]
|
158
|
-
}
|
159
|
-
};
|
160
|
-
const deploy = {};
|
161
|
-
const builderPlugins = {
|
162
|
-
type: "array"
|
163
|
-
};
|
164
|
-
const schema = new Schema();
|
165
|
-
schema.setSchema("bff", bff).setSchema("dev", dev).setSchema("server", server).setSchema("source", source).setSchema("output", output).setSchema("tools", tools).setSchema("deploy", deploy).set("builderPlugin", builderPlugins);
|
166
|
-
import { default as default2 } from "./legacy";
|
167
|
-
export {
|
168
|
-
default2 as legacySchema,
|
169
|
-
schema
|
170
|
-
};
|