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