@dtwo/schema 3.0.0-rc.13
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/index.d.ts +1937 -0
- package/dist/index.mjs +567 -0
- package/package.json +41 -0
- package/schema/config.d.ts +1247 -0
- package/schema/config.defaults.json +335 -0
- package/schema/config.md +1221 -0
- package/schema/config.schema.json +2587 -0
|
@@ -0,0 +1,2587 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "#",
|
|
3
|
+
"properties": {
|
|
4
|
+
"components": {
|
|
5
|
+
"title": "Configure Dtwo component auto-registration.",
|
|
6
|
+
"description": "Any components in the directories configured here can be used throughout your pages, layouts (and other components) without needing to explicitly import them.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"@default {{ dirs: [`~/components`] }}"
|
|
9
|
+
],
|
|
10
|
+
"tsType": "boolean | typeof import('../src/types/components').ComponentsOptions | typeof import('../src/types/components').ComponentsOptions['dirs']",
|
|
11
|
+
"markdownType": "boolean | SrcTypesComponentsComponentsOptions | SrcTypesComponentsComponentsOptions['dirs']",
|
|
12
|
+
"id": "#components",
|
|
13
|
+
"default": {
|
|
14
|
+
"dirs": [
|
|
15
|
+
{
|
|
16
|
+
"path": "~/components/global",
|
|
17
|
+
"global": true
|
|
18
|
+
},
|
|
19
|
+
"~/components"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"type": "object"
|
|
23
|
+
},
|
|
24
|
+
"imports": {
|
|
25
|
+
"title": "Configure how Dtwo auto-imports composables into your application.",
|
|
26
|
+
"description": "",
|
|
27
|
+
"tags": [],
|
|
28
|
+
"tsType": "typeof import('../src/types/imports').ImportsOptions",
|
|
29
|
+
"markdownType": "SrcTypesImportsImportsOptions",
|
|
30
|
+
"id": "#imports",
|
|
31
|
+
"properties": {
|
|
32
|
+
"global": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"dirs": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"default": [],
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "any"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"default": {
|
|
45
|
+
"global": false,
|
|
46
|
+
"dirs": []
|
|
47
|
+
},
|
|
48
|
+
"type": "object"
|
|
49
|
+
},
|
|
50
|
+
"pages": {
|
|
51
|
+
"title": "Whether to use the kdu-router integration in Dtwo 3. If you do not provide a value it will be enabled if you have a `pages/` directory in your source folder.",
|
|
52
|
+
"description": "",
|
|
53
|
+
"tags": [],
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"tsType": "boolean",
|
|
56
|
+
"id": "#pages"
|
|
57
|
+
},
|
|
58
|
+
"telemetry": {
|
|
59
|
+
"title": "Manually disable dtwo telemetry.",
|
|
60
|
+
"description": "",
|
|
61
|
+
"tags": [],
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"tsType": "boolean",
|
|
64
|
+
"id": "#telemetry"
|
|
65
|
+
},
|
|
66
|
+
"kdu": {
|
|
67
|
+
"title": "Kdu.js config",
|
|
68
|
+
"description": "",
|
|
69
|
+
"tags": [],
|
|
70
|
+
"id": "#kdu",
|
|
71
|
+
"properties": {
|
|
72
|
+
"compilerOptions": {
|
|
73
|
+
"title": "Options for the Kdu compiler that will be passed at build time.",
|
|
74
|
+
"description": "",
|
|
75
|
+
"tags": [
|
|
76
|
+
"@see [documentation](https://kdu-js.web.app/api/application.html#app-config-compileroptions)"
|
|
77
|
+
],
|
|
78
|
+
"tsType": "typeof import('@kdujs/compiler-core').CompilerOptions",
|
|
79
|
+
"markdownType": "@kdujsCompilerCoreCompilerOptions",
|
|
80
|
+
"id": "#kdu/compilerOptions",
|
|
81
|
+
"default": {},
|
|
82
|
+
"type": "any"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"default": {
|
|
86
|
+
"compilerOptions": {}
|
|
87
|
+
},
|
|
88
|
+
"type": "object"
|
|
89
|
+
},
|
|
90
|
+
"app": {
|
|
91
|
+
"title": "Dtwo App configuration.",
|
|
92
|
+
"description": "",
|
|
93
|
+
"tags": [],
|
|
94
|
+
"id": "#app",
|
|
95
|
+
"properties": {
|
|
96
|
+
"baseURL": {
|
|
97
|
+
"title": "The base path of your Dtwo application.",
|
|
98
|
+
"description": "This can be set at runtime by setting the DTWO_APP_BASE_URL environment variable.",
|
|
99
|
+
"tags": [
|
|
100
|
+
"@example\n```bash\nDTWO_APP_BASE_URL=/prefix/ node .output/server/index.mjs\n```"
|
|
101
|
+
],
|
|
102
|
+
"id": "#app/baseURL",
|
|
103
|
+
"default": "/",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"buildAssetsDir": {
|
|
107
|
+
"title": "The folder name for the built site assets, relative to `baseURL` (or `cdnURL` if set). This is set at build time and should not be customized at runtime.",
|
|
108
|
+
"description": "",
|
|
109
|
+
"tags": [],
|
|
110
|
+
"id": "#app/buildAssetsDir",
|
|
111
|
+
"default": "/_dtwo/",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"cdnURL": {
|
|
115
|
+
"title": "An absolute URL to serve the public folder from (production-only).",
|
|
116
|
+
"description": "This can be set to a different value at runtime by setting the `DTWO_APP_CDN_URL` environment variable.",
|
|
117
|
+
"tags": [
|
|
118
|
+
"@example\n```bash\nDTWO_APP_CDN_URL=https://mycdn.org/ node .output/server/index.mjs\n```"
|
|
119
|
+
],
|
|
120
|
+
"id": "#app/cdnURL",
|
|
121
|
+
"default": "",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"head": {
|
|
125
|
+
"title": "Set default configuration for `<head>` on every page.",
|
|
126
|
+
"description": "",
|
|
127
|
+
"tags": [
|
|
128
|
+
"@example\n```js\napp: {\n head: {\n meta: [\n // <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n { name: 'viewport', content: 'width=device-width, initial-scale=1' }\n ],\n script: [\n // <script src=\"https://myawesome-lib.js\"></script>\n { src: 'https://awesome-lib.js' }\n ],\n link: [\n // <link rel=\"stylesheet\" href=\"https://myawesome-lib.css\">\n { rel: 'stylesheet', href: 'https://awesome-lib.css' }\n ],\n // please note that this is an area that is likely to change\n style: [\n // <style type=\"text/css\">:root { color: red }</style>\n { children: ':root { color: red }', type: 'text/css' }\n ],\n noscript: [\n // <noscript>Javascript is required</noscript>\n { children: 'Javascript is required' }\n ]\n }\n}\n```"
|
|
129
|
+
],
|
|
130
|
+
"tsType": "typeof import('../src/types/config').DtwoAppConfig['head']",
|
|
131
|
+
"markdownType": "SrcTypesConfigDtwoAppConfig['head']",
|
|
132
|
+
"id": "#app/head",
|
|
133
|
+
"default": {
|
|
134
|
+
"meta": [
|
|
135
|
+
{
|
|
136
|
+
"name": "viewport",
|
|
137
|
+
"content": "width=device-width, initial-scale=1"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"charset": "utf-8"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"link": [],
|
|
144
|
+
"style": [],
|
|
145
|
+
"script": [],
|
|
146
|
+
"noscript": []
|
|
147
|
+
},
|
|
148
|
+
"type": "object"
|
|
149
|
+
},
|
|
150
|
+
"layoutTransition": {
|
|
151
|
+
"title": "Default values for layout transitions.",
|
|
152
|
+
"description": "This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.",
|
|
153
|
+
"tags": [
|
|
154
|
+
"@see https://kdu-js.web.app/api/built-in-components.html#transition"
|
|
155
|
+
],
|
|
156
|
+
"tsType": "typeof import('../src/types/config').DtwoAppConfig['layoutTransition']",
|
|
157
|
+
"markdownType": "SrcTypesConfigDtwoAppConfig['layoutTransition']",
|
|
158
|
+
"id": "#app/layoutTransition",
|
|
159
|
+
"default": false,
|
|
160
|
+
"type": "boolean"
|
|
161
|
+
},
|
|
162
|
+
"pageTransition": {
|
|
163
|
+
"title": "Default values for page transitions.",
|
|
164
|
+
"description": "This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.",
|
|
165
|
+
"tags": [
|
|
166
|
+
"@see https://kdu-js.web.app/api/built-in-components.html#transition"
|
|
167
|
+
],
|
|
168
|
+
"tsType": "typeof import('../src/types/config').DtwoAppConfig['pageTransition']",
|
|
169
|
+
"markdownType": "SrcTypesConfigDtwoAppConfig['pageTransition']",
|
|
170
|
+
"id": "#app/pageTransition",
|
|
171
|
+
"default": false,
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"keepalive": {
|
|
175
|
+
"title": "Default values for KeepAlive configuration between pages.",
|
|
176
|
+
"description": "This can be overridden with `definePageMeta` on an individual page. Only JSON-serializable values are allowed.",
|
|
177
|
+
"tags": [
|
|
178
|
+
"@see https://kdu-js.web.app/api/built-in-components.html#keepalive"
|
|
179
|
+
],
|
|
180
|
+
"tsType": "typeof import('../src/types/config').DtwoAppConfig['keepalive']",
|
|
181
|
+
"markdownType": "SrcTypesConfigDtwoAppConfig['keepalive']",
|
|
182
|
+
"id": "#app/keepalive",
|
|
183
|
+
"default": false,
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"rootId": {
|
|
187
|
+
"title": "Customize Dtwo root element id.",
|
|
188
|
+
"description": "",
|
|
189
|
+
"tags": [],
|
|
190
|
+
"id": "#app/rootId",
|
|
191
|
+
"default": "__dtwo",
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"rootTag": {
|
|
195
|
+
"title": "Customize Dtwo root element tag.",
|
|
196
|
+
"description": "",
|
|
197
|
+
"tags": [],
|
|
198
|
+
"id": "#app/rootTag",
|
|
199
|
+
"default": "div",
|
|
200
|
+
"type": "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"default": {
|
|
204
|
+
"baseURL": "/",
|
|
205
|
+
"buildAssetsDir": "/_dtwo/",
|
|
206
|
+
"cdnURL": "",
|
|
207
|
+
"head": {
|
|
208
|
+
"meta": [
|
|
209
|
+
{
|
|
210
|
+
"name": "viewport",
|
|
211
|
+
"content": "width=device-width, initial-scale=1"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"charset": "utf-8"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"link": [],
|
|
218
|
+
"style": [],
|
|
219
|
+
"script": [],
|
|
220
|
+
"noscript": []
|
|
221
|
+
},
|
|
222
|
+
"layoutTransition": false,
|
|
223
|
+
"pageTransition": false,
|
|
224
|
+
"keepalive": false,
|
|
225
|
+
"rootId": "__dtwo",
|
|
226
|
+
"rootTag": "div"
|
|
227
|
+
},
|
|
228
|
+
"type": "object"
|
|
229
|
+
},
|
|
230
|
+
"plugins": {
|
|
231
|
+
"title": "An array of dtwo app plugins.",
|
|
232
|
+
"description": "Each plugin can be a string (which can be an absolute or relative path to a file). If it ends with `.client` or `.server` then it will be automatically loaded only in the appropriate context.\nIt can also be an object with `src` and `mode` keys.",
|
|
233
|
+
"tags": [
|
|
234
|
+
"@example\n```js\nplugins: [\n '~/plugins/foo.client.js', // only in client side\n '~/plugins/bar.server.js', // only in server side\n '~/plugins/baz.js', // both client & server\n { src: '~/plugins/both-sides.js' },\n { src: '~/plugins/client-only.js', mode: 'client' }, // only on client side\n { src: '~/plugins/server-only.js', mode: 'server' } // only on server side\n]\n```"
|
|
235
|
+
],
|
|
236
|
+
"tsType": "(typeof import('../src/types/dtwo').DtwoPlugin | string)[]",
|
|
237
|
+
"markdownType": "(SrcTypesDtwoDtwoPlugin | string)[]",
|
|
238
|
+
"id": "#plugins",
|
|
239
|
+
"default": [],
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"type": "any"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"css": {
|
|
246
|
+
"title": "You can define the CSS files/modules/libraries you want to set globally (included in every page).",
|
|
247
|
+
"description": "Dtwo will automatically guess the file type by its extension and use the appropriate pre-processor. You will still need to install the required loader if you need to use them.",
|
|
248
|
+
"tags": [
|
|
249
|
+
"@example\n```js\ncss: [\n // Load a Node.js module directly (here it's a Sass file).\n 'bulma',\n // CSS file in the project\n '@/assets/css/main.css',\n // SCSS file in the project\n '@/assets/css/main.scss'\n]\n```"
|
|
250
|
+
],
|
|
251
|
+
"tsType": "string[]",
|
|
252
|
+
"id": "#css",
|
|
253
|
+
"default": [],
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "any"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"builder": {
|
|
260
|
+
"title": "The builder to use for bundling the Kdu part of your application.",
|
|
261
|
+
"description": "",
|
|
262
|
+
"tags": [],
|
|
263
|
+
"tsType": "'wite' | 'webpack' | { bundle: (dtwo: typeof import('../src/types/dtwo').Dtwo) => Promise<void> }",
|
|
264
|
+
"markdownType": "'wite' | 'webpack' | { bundle: (dtwo: SrcTypesDtwoDtwo) => Promise<void> }",
|
|
265
|
+
"id": "#builder",
|
|
266
|
+
"default": "@dtwo/wite-builder",
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"sourcemap": {
|
|
270
|
+
"title": "Whether to generate sourcemaps.",
|
|
271
|
+
"description": "",
|
|
272
|
+
"tags": [],
|
|
273
|
+
"tsType": "boolean | { server?: boolean, client?: boolean }",
|
|
274
|
+
"id": "#sourcemap",
|
|
275
|
+
"default": {
|
|
276
|
+
"server": true,
|
|
277
|
+
"client": false
|
|
278
|
+
},
|
|
279
|
+
"type": "object"
|
|
280
|
+
},
|
|
281
|
+
"build": {
|
|
282
|
+
"title": "Shared build configuration.",
|
|
283
|
+
"description": "",
|
|
284
|
+
"tags": [],
|
|
285
|
+
"id": "#build",
|
|
286
|
+
"properties": {
|
|
287
|
+
"transpile": {
|
|
288
|
+
"title": "If you want to transpile specific dependencies with Babel, you can add them here. Each item in transpile can be a package name, a function, a string or regex object matching the dependency's file name.",
|
|
289
|
+
"description": "You can also use a function to conditionally transpile. The function will receive an object ({ isDev, isServer, isClient, isModern, isLegacy }).",
|
|
290
|
+
"tags": [
|
|
291
|
+
"@example\n```js\n transpile: [({ isLegacy }) => isLegacy && 'ky']\n```"
|
|
292
|
+
],
|
|
293
|
+
"tsType": "Array<string | RegExp | Function>",
|
|
294
|
+
"id": "#build/transpile",
|
|
295
|
+
"default": [],
|
|
296
|
+
"type": "array",
|
|
297
|
+
"items": {
|
|
298
|
+
"type": "any"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"templates": {
|
|
302
|
+
"title": "You can provide your own templates which will be rendered based on Dtwo configuration. This feature is specially useful for using with modules.",
|
|
303
|
+
"description": "Templates are rendered using [`lodash.template`](https://lodash.com/docs/4.17.15#template).",
|
|
304
|
+
"tags": [
|
|
305
|
+
"@example\n```js\ntemplates: [\n {\n src: '~/modules/support/plugin.js', // `src` can be absolute or relative\n dst: 'support.js', // `dst` is relative to project `.dtwo` dir\n options: {\n // Options are provided to template as `options` key\n live_chat: false\n }\n }\n]\n```"
|
|
306
|
+
],
|
|
307
|
+
"id": "#build/templates",
|
|
308
|
+
"default": [],
|
|
309
|
+
"type": "array",
|
|
310
|
+
"items": {
|
|
311
|
+
"type": "any"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"analyze": {
|
|
315
|
+
"title": "Dtwo uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them.",
|
|
316
|
+
"description": "Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for wite](https://github.com/btd/rollup-plugin-visualizer#options).",
|
|
317
|
+
"tags": [
|
|
318
|
+
"@example\n```js\nanalyze: {\n analyzerMode: 'static'\n}\n```"
|
|
319
|
+
],
|
|
320
|
+
"tsType": "boolean | typeof import('webpack-bundle-analyzer').BundleAnalyzerPlugin.Options | typeof import('rollup-plugin-visualizer').PluginVisualizerOptions",
|
|
321
|
+
"markdownType": "boolean | WebpackBundleAnalyzerBundleAnalyzerPluginOptions | RollupPluginVisualizerPluginVisualizerOptions",
|
|
322
|
+
"id": "#build/analyze",
|
|
323
|
+
"default": false,
|
|
324
|
+
"type": "boolean"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"default": {
|
|
328
|
+
"transpile": [],
|
|
329
|
+
"templates": [],
|
|
330
|
+
"analyze": false
|
|
331
|
+
},
|
|
332
|
+
"type": "object"
|
|
333
|
+
},
|
|
334
|
+
"extends": {
|
|
335
|
+
"title": "Extend project from multiple local or remote sources.",
|
|
336
|
+
"description": "Value should be either a string or array of strings pointing to source directories or config path relative to current config.\nYou can use `github:`, `gitlab:`, `bitbucket:` or `https://` to extend from a remote git repository.",
|
|
337
|
+
"tags": [],
|
|
338
|
+
"tsType": "string|string[]",
|
|
339
|
+
"id": "#extends",
|
|
340
|
+
"default": null,
|
|
341
|
+
"type": "any"
|
|
342
|
+
},
|
|
343
|
+
"theme": {
|
|
344
|
+
"title": "Extend project from a local or remote source.",
|
|
345
|
+
"description": "Value should be a string pointing to source directory or config path relative to current config.\nYou can use `github:`, `gitlab:`, `bitbucket:` or `https://` to extend from a remote git repository.",
|
|
346
|
+
"tags": [],
|
|
347
|
+
"type": "string",
|
|
348
|
+
"tsType": "string",
|
|
349
|
+
"id": "#theme",
|
|
350
|
+
"default": null
|
|
351
|
+
},
|
|
352
|
+
"rootDir": {
|
|
353
|
+
"title": "Define the root directory of your application.",
|
|
354
|
+
"description": "This property can be overwritten (for example, running `dtwo ./my-app/` will set the `rootDir` to the absolute path of `./my-app/` from the current/working directory.\nIt is normally not needed to configure this option.",
|
|
355
|
+
"tags": [],
|
|
356
|
+
"id": "#rootDir",
|
|
357
|
+
"default": "/<rootDir>",
|
|
358
|
+
"type": "string"
|
|
359
|
+
},
|
|
360
|
+
"workspaceDir": {
|
|
361
|
+
"title": "Define the workspace directory of your application.",
|
|
362
|
+
"description": "Often this is used when in a monorepo setup. Dtwo will attempt to detect your workspace directory automatically, but you can override it here.\nIt is normally not needed to configure this option.",
|
|
363
|
+
"tags": [],
|
|
364
|
+
"id": "#workspaceDir",
|
|
365
|
+
"default": "/<rootDir>",
|
|
366
|
+
"type": "string"
|
|
367
|
+
},
|
|
368
|
+
"srcDir": {
|
|
369
|
+
"title": "Define the source directory of your Dtwo application.",
|
|
370
|
+
"description": "If a relative path is specified, it will be relative to the `rootDir`.",
|
|
371
|
+
"tags": [
|
|
372
|
+
"@example\n```js\nexport default {\n srcDir: 'src/'\n}\n```\nThis would work with the following folder structure:\n```bash\n-| app/\n---| node_modules/\n---| dtwo.config.js\n---| package.json\n---| src/\n------| assets/\n------| components/\n------| layouts/\n------| middleware/\n------| pages/\n------| plugins/\n------| static/\n------| store/\n------| server/\n```"
|
|
373
|
+
],
|
|
374
|
+
"id": "#srcDir",
|
|
375
|
+
"default": "/<rootDir>",
|
|
376
|
+
"type": "string"
|
|
377
|
+
},
|
|
378
|
+
"serverDir": {
|
|
379
|
+
"title": "Define the server directory of your Dtwo application, where Hole routes, middleware and plugins are kept.",
|
|
380
|
+
"description": "If a relative path is specified, it will be relative to your `rootDir`.",
|
|
381
|
+
"tags": [],
|
|
382
|
+
"id": "#serverDir",
|
|
383
|
+
"default": "/<rootDir>/server",
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
"buildDir": {
|
|
387
|
+
"title": "Define the directory where your built Dtwo files will be placed.",
|
|
388
|
+
"description": "Many tools assume that `.dtwo` is a hidden directory (because it starts with a `.`). If that is a problem, you can use this option to prevent that.",
|
|
389
|
+
"tags": [
|
|
390
|
+
"@example\n```js\nexport default {\n buildDir: 'dtwo-build'\n}\n```"
|
|
391
|
+
],
|
|
392
|
+
"id": "#buildDir",
|
|
393
|
+
"default": "/<rootDir>/.dtwo",
|
|
394
|
+
"type": "string"
|
|
395
|
+
},
|
|
396
|
+
"modulesDir": {
|
|
397
|
+
"title": "Used to set the modules directories for path resolving (for example, webpack's `resolveLoading`, `nodeExternals` and `postcss`).",
|
|
398
|
+
"description": "The configuration path is relative to `options.rootDir` (default is current working directory).\nSetting this field may be necessary if your project is organized as a yarn workspace-styled mono-repository.",
|
|
399
|
+
"tags": [
|
|
400
|
+
"@example\n```js\nexport default {\n modulesDir: ['../../node_modules']\n}\n```"
|
|
401
|
+
],
|
|
402
|
+
"id": "#modulesDir",
|
|
403
|
+
"default": [
|
|
404
|
+
"/<rootDir>/node_modules",
|
|
405
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
406
|
+
],
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": [
|
|
410
|
+
"string"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"dev": {
|
|
415
|
+
"title": "Whether Dtwo is running in development mode.",
|
|
416
|
+
"description": "Normally, you should not need to set this.",
|
|
417
|
+
"tags": [],
|
|
418
|
+
"id": "#dev",
|
|
419
|
+
"default": false,
|
|
420
|
+
"type": "boolean"
|
|
421
|
+
},
|
|
422
|
+
"test": {
|
|
423
|
+
"title": "Whether your app is being unit tested.",
|
|
424
|
+
"description": "",
|
|
425
|
+
"tags": [],
|
|
426
|
+
"id": "#test",
|
|
427
|
+
"default": false,
|
|
428
|
+
"type": "boolean"
|
|
429
|
+
},
|
|
430
|
+
"debug": {
|
|
431
|
+
"title": "Set to `true` to enable debug mode.",
|
|
432
|
+
"description": "At the moment, it prints out hook names and timings on the server, and logs hook arguments as well in the browser.",
|
|
433
|
+
"tags": [],
|
|
434
|
+
"id": "#debug",
|
|
435
|
+
"default": false,
|
|
436
|
+
"type": "boolean"
|
|
437
|
+
},
|
|
438
|
+
"ssr": {
|
|
439
|
+
"title": "Whether to enable rendering of HTML - either dynamically (in server mode) or at generate time. If set to `false` and combined with `static` target, generated pages will simply display a loading screen with no content.",
|
|
440
|
+
"description": "",
|
|
441
|
+
"tags": [],
|
|
442
|
+
"id": "#ssr",
|
|
443
|
+
"default": true,
|
|
444
|
+
"type": "boolean"
|
|
445
|
+
},
|
|
446
|
+
"modules": {
|
|
447
|
+
"title": "Modules are Dtwo extensions which can extend its core functionality and add endless integrations.",
|
|
448
|
+
"description": "Each module is either a string (which can refer to a package, or be a path to a file), a tuple with the module as first string and the options as a second object, or an inline module function.\nDtwo tries to resolve each item in the modules array using node require path (in `node_modules`) and then will be resolved from project `srcDir` if `~` alias is used.",
|
|
449
|
+
"tags": [
|
|
450
|
+
"@note Modules are executed sequentially so the order is important.",
|
|
451
|
+
"@example\n```js\nmodules: [\n // Using package name\n '@dtwojs/axios',\n // Relative to your project srcDir\n '~/modules/awesome.js',\n // Providing options\n ['@dtwojs/google-analytics', { ua: 'X1234567' }],\n // Inline definition\n function () {}\n]\n```"
|
|
452
|
+
],
|
|
453
|
+
"tsType": "(typeof import('../src/types/module').DtwoModule | string | [typeof import('../src/types/module').DtwoModule | string, Record<string, any>])[]",
|
|
454
|
+
"markdownType": "(SrcTypesModuleDtwoModule | string | [SrcTypesModuleDtwoModule | string, Record<string, any>])[]",
|
|
455
|
+
"id": "#modules",
|
|
456
|
+
"default": [],
|
|
457
|
+
"type": "array",
|
|
458
|
+
"items": {
|
|
459
|
+
"type": "any"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"dir": {
|
|
463
|
+
"title": "Customize default directory structure used by Dtwo.",
|
|
464
|
+
"description": "It is better to stick with defaults unless needed.",
|
|
465
|
+
"tags": [],
|
|
466
|
+
"id": "#dir",
|
|
467
|
+
"properties": {
|
|
468
|
+
"assets": {
|
|
469
|
+
"title": "The assets directory (aliased as `~assets` in your build).",
|
|
470
|
+
"description": "",
|
|
471
|
+
"tags": [],
|
|
472
|
+
"id": "#dir/assets",
|
|
473
|
+
"default": "assets",
|
|
474
|
+
"type": "string"
|
|
475
|
+
},
|
|
476
|
+
"layouts": {
|
|
477
|
+
"title": "The layouts directory, each file of which will be auto-registered as a Dtwo layout.",
|
|
478
|
+
"description": "",
|
|
479
|
+
"tags": [],
|
|
480
|
+
"id": "#dir/layouts",
|
|
481
|
+
"default": "layouts",
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"middleware": {
|
|
485
|
+
"title": "The middleware directory, each file of which will be auto-registered as a Dtwo middleware.",
|
|
486
|
+
"description": "",
|
|
487
|
+
"tags": [],
|
|
488
|
+
"id": "#dir/middleware",
|
|
489
|
+
"default": "middleware",
|
|
490
|
+
"type": "string"
|
|
491
|
+
},
|
|
492
|
+
"pages": {
|
|
493
|
+
"title": "The directory which will be processed to auto-generate your application page routes.",
|
|
494
|
+
"description": "",
|
|
495
|
+
"tags": [],
|
|
496
|
+
"id": "#dir/pages",
|
|
497
|
+
"default": "pages",
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
"plugins": {
|
|
501
|
+
"title": "The plugins directory, each file of which will be auto-registered as a Dtwo plugin.",
|
|
502
|
+
"description": "",
|
|
503
|
+
"tags": [],
|
|
504
|
+
"id": "#dir/plugins",
|
|
505
|
+
"default": "plugins",
|
|
506
|
+
"type": "string"
|
|
507
|
+
},
|
|
508
|
+
"public": {
|
|
509
|
+
"title": "The directory containing your static files, which will be directly accessible via the Dtwo server and copied across into your `dist` folder when your app is generated.",
|
|
510
|
+
"description": "",
|
|
511
|
+
"tags": [],
|
|
512
|
+
"id": "#dir/public",
|
|
513
|
+
"default": "public",
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"static": {
|
|
517
|
+
"deprecated": "use `dir.public` option instead",
|
|
518
|
+
"id": "#dir/static",
|
|
519
|
+
"default": "public",
|
|
520
|
+
"type": "string"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"default": {
|
|
524
|
+
"assets": "assets",
|
|
525
|
+
"layouts": "layouts",
|
|
526
|
+
"middleware": "middleware",
|
|
527
|
+
"pages": "pages",
|
|
528
|
+
"plugins": "plugins",
|
|
529
|
+
"static": "public",
|
|
530
|
+
"public": "public"
|
|
531
|
+
},
|
|
532
|
+
"type": "object"
|
|
533
|
+
},
|
|
534
|
+
"extensions": {
|
|
535
|
+
"title": "The extensions that should be resolved by the Dtwo resolver.",
|
|
536
|
+
"description": "",
|
|
537
|
+
"tags": [],
|
|
538
|
+
"id": "#extensions",
|
|
539
|
+
"default": [
|
|
540
|
+
".js",
|
|
541
|
+
".jsx",
|
|
542
|
+
".mjs",
|
|
543
|
+
".ts",
|
|
544
|
+
".tsx",
|
|
545
|
+
".kdu"
|
|
546
|
+
],
|
|
547
|
+
"type": "array",
|
|
548
|
+
"items": {
|
|
549
|
+
"type": [
|
|
550
|
+
"string"
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"alias": {
|
|
555
|
+
"title": "You can improve your DX by defining additional aliases to access custom directories within your JavaScript and CSS.",
|
|
556
|
+
"description": "",
|
|
557
|
+
"tags": [
|
|
558
|
+
"@note Within a webpack context (image sources, CSS - but not JavaScript) you _must_ access\nyour alias by prefixing it with `~`.",
|
|
559
|
+
"@note These aliases will be automatically added to the generated `.dtwo/tsconfig.json` so you can get full\ntype support and path auto-complete. In case you need to extend options provided by `./.dtwo/tsconfig.json`\nfurther, make sure to add them here or within the `typescript.tsConfig` property in `dtwo.config`.",
|
|
560
|
+
"@example\n```js\nexport default {\n alias: {\n 'images': fileURLToPath(new URL('./assets/images', import.meta.url)),\n 'style': fileURLToPath(new URL('./assets/style', import.meta.url)),\n 'data': fileURLToPath(new URL('./assets/other/data', import.meta.url))\n }\n}\n```",
|
|
561
|
+
"```html\n<template>\n <img src=\"~images/main-bg.jpg\">\n</template>\n\n<script>\nimport data from 'data/test.json'\n</script>\n\n<style>\n// Uncomment the below\n//@import '~style/variables.scss';\n//@import '~style/utils.scss';\n//@import '~style/base.scss';\nbody {\n background-image: url('~images/main-bg.jpg');\n}\n</style>\n```"
|
|
562
|
+
],
|
|
563
|
+
"tsType": "Record<string, string>",
|
|
564
|
+
"id": "#alias",
|
|
565
|
+
"default": {
|
|
566
|
+
"~~": "/<rootDir>",
|
|
567
|
+
"@@": "/<rootDir>",
|
|
568
|
+
"~": "/<rootDir>",
|
|
569
|
+
"@": "/<rootDir>",
|
|
570
|
+
"assets": "/<rootDir>/assets",
|
|
571
|
+
"public": "/<rootDir>/public"
|
|
572
|
+
},
|
|
573
|
+
"type": "object"
|
|
574
|
+
},
|
|
575
|
+
"ignoreOptions": {
|
|
576
|
+
"title": "Pass options directly to `node-ignore` (which is used by Dtwo to ignore files).",
|
|
577
|
+
"description": "",
|
|
578
|
+
"tags": [
|
|
579
|
+
"@see [node-ignore](https://github.com/kaelzhang/node-ignore)",
|
|
580
|
+
"@example\n```js\nignoreOptions: {\n ignorecase: false\n}\n```"
|
|
581
|
+
],
|
|
582
|
+
"id": "#ignoreOptions",
|
|
583
|
+
"default": {},
|
|
584
|
+
"type": "any"
|
|
585
|
+
},
|
|
586
|
+
"ignorePrefix": {
|
|
587
|
+
"title": "Any file in `pages/`, `layouts/`, `middleware/` or `store/` will be ignored during building if its filename starts with the prefix specified by `ignorePrefix`.",
|
|
588
|
+
"description": "",
|
|
589
|
+
"tags": [],
|
|
590
|
+
"id": "#ignorePrefix",
|
|
591
|
+
"default": "-",
|
|
592
|
+
"type": "string"
|
|
593
|
+
},
|
|
594
|
+
"ignore": {
|
|
595
|
+
"title": "More customizable than `ignorePrefix`: all files matching glob patterns specified inside the `ignore` array will be ignored in building.",
|
|
596
|
+
"description": "",
|
|
597
|
+
"tags": [],
|
|
598
|
+
"id": "#ignore",
|
|
599
|
+
"default": [
|
|
600
|
+
"**/*.stories.{js,ts,jsx,tsx}",
|
|
601
|
+
"**/*.{spec,test}.{js,ts,jsx,tsx}",
|
|
602
|
+
"**/*.d.ts",
|
|
603
|
+
".output",
|
|
604
|
+
"**/-*.*"
|
|
605
|
+
],
|
|
606
|
+
"type": "array",
|
|
607
|
+
"items": {
|
|
608
|
+
"type": [
|
|
609
|
+
"string"
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"watchers": {
|
|
614
|
+
"title": "The watchers property lets you overwrite watchers configuration in your `dtwo.config`.",
|
|
615
|
+
"description": "",
|
|
616
|
+
"tags": [],
|
|
617
|
+
"id": "#watchers",
|
|
618
|
+
"properties": {
|
|
619
|
+
"rewatchOnRawEvents": {
|
|
620
|
+
"title": "An array of event types, which, when received, will cause the watcher to restart.",
|
|
621
|
+
"description": "",
|
|
622
|
+
"tags": [],
|
|
623
|
+
"id": "#watchers/rewatchOnRawEvents",
|
|
624
|
+
"default": {},
|
|
625
|
+
"type": "any"
|
|
626
|
+
},
|
|
627
|
+
"webpack": {
|
|
628
|
+
"title": "`watchOptions` to pass directly to webpack.",
|
|
629
|
+
"description": "",
|
|
630
|
+
"tags": [
|
|
631
|
+
"@see [webpack@4 watch options](https://v4.webpack.js.org/configuration/watch/#watchoptions)."
|
|
632
|
+
],
|
|
633
|
+
"id": "#watchers/webpack",
|
|
634
|
+
"properties": {
|
|
635
|
+
"aggregateTimeout": {
|
|
636
|
+
"type": "number",
|
|
637
|
+
"default": 1000
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"default": {
|
|
641
|
+
"aggregateTimeout": 1000
|
|
642
|
+
},
|
|
643
|
+
"type": "object"
|
|
644
|
+
},
|
|
645
|
+
"chokidar": {
|
|
646
|
+
"title": "Options to pass directly to `chokidar`.",
|
|
647
|
+
"description": "",
|
|
648
|
+
"tags": [
|
|
649
|
+
"@see [chokidar](https://github.com/paulmillr/chokidar#api)"
|
|
650
|
+
],
|
|
651
|
+
"id": "#watchers/chokidar",
|
|
652
|
+
"properties": {
|
|
653
|
+
"ignoreInitial": {
|
|
654
|
+
"type": "boolean",
|
|
655
|
+
"default": true
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"default": {
|
|
659
|
+
"ignoreInitial": true
|
|
660
|
+
},
|
|
661
|
+
"type": "object"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"default": {
|
|
665
|
+
"rewatchOnRawEvents": {},
|
|
666
|
+
"webpack": {
|
|
667
|
+
"aggregateTimeout": 1000
|
|
668
|
+
},
|
|
669
|
+
"chokidar": {
|
|
670
|
+
"ignoreInitial": true
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"type": "object"
|
|
674
|
+
},
|
|
675
|
+
"hooks": {
|
|
676
|
+
"title": "Hooks are listeners to Dtwo events that are typically used in modules, but are also available in `dtwo.config`.",
|
|
677
|
+
"description": "Internally, hooks follow a naming pattern using colons (e.g., build:done).\nFor ease of configuration, you can also structure them as an hierarchical object in `dtwo.config` (as below).",
|
|
678
|
+
"tags": [
|
|
679
|
+
"@example\n```js'node:fs'\nimport fs from 'node:fs'\nimport path from 'node:path'\nexport default {\n hooks: {\n build: {\n done(builder) {\n const extraFilePath = path.join(\n builder.dtwo.options.buildDir,\n 'extra-file'\n )\n fs.writeFileSync(extraFilePath, 'Something extra')\n }\n }\n }\n}\n```"
|
|
680
|
+
],
|
|
681
|
+
"tsType": "typeof import('../src/types/hooks').DtwoHooks",
|
|
682
|
+
"markdownType": "SrcTypesHooksDtwoHooks",
|
|
683
|
+
"id": "#hooks",
|
|
684
|
+
"default": null,
|
|
685
|
+
"type": "any"
|
|
686
|
+
},
|
|
687
|
+
"runtimeConfig": {
|
|
688
|
+
"title": "Runtime config allows passing dynamic config and environment variables to the Dtwo app context.",
|
|
689
|
+
"description": "The value of this object is accessible from server only using `useRuntimeConfig`.\nIt mainly should hold _private_ configuration which is not exposed on the frontend. This could include a reference to your API secret tokens.\nAnything under `public` and `app` will be exposed to the frontend as well.\nValues are automatically replaced by matching env variables at runtime, e.g. setting an environment variable `DTWO_API_KEY=my-api-key DTWO_PUBLIC_BASE_URL=/foo/` would overwrite the two values in the example below.",
|
|
690
|
+
"tags": [
|
|
691
|
+
"@example\n```js\nexport default {\n runtimeConfig: {\n apiKey: '' // Default to an empty string, automatically set at runtime using process.env.DTWO_API_KEY\n public: {\n baseURL: '' // Exposed to the frontend as well.\n }\n }\n}\n```"
|
|
692
|
+
],
|
|
693
|
+
"tsType": "typeof import('../src/types/config').RuntimeConfig",
|
|
694
|
+
"markdownType": "SrcTypesConfigRuntimeConfig",
|
|
695
|
+
"id": "#runtimeConfig",
|
|
696
|
+
"default": {
|
|
697
|
+
"app": {
|
|
698
|
+
"baseURL": "/",
|
|
699
|
+
"buildAssetsDir": "/_dtwo/",
|
|
700
|
+
"cdnURL": ""
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"type": "object"
|
|
704
|
+
},
|
|
705
|
+
"appConfig": {
|
|
706
|
+
"title": "Additional app configuration",
|
|
707
|
+
"description": "For programmatic usage and type support, you can directly provide app config with this option. It will be merged with `app.config` file as default value.",
|
|
708
|
+
"tags": [],
|
|
709
|
+
"tsType": "typeof import('../src/types/config').AppConfig",
|
|
710
|
+
"markdownType": "SrcTypesConfigAppConfig",
|
|
711
|
+
"id": "#appConfig",
|
|
712
|
+
"default": {},
|
|
713
|
+
"type": "any"
|
|
714
|
+
},
|
|
715
|
+
"devServer": {
|
|
716
|
+
"id": "#devServer",
|
|
717
|
+
"properties": {
|
|
718
|
+
"https": {
|
|
719
|
+
"title": "Whether to enable HTTPS.",
|
|
720
|
+
"description": "",
|
|
721
|
+
"tags": [
|
|
722
|
+
"@example\n```\nimport { fileURLToPath } from 'node:url'\nexport default {\n server: {\n https: {\n key: fs.readFileSync(fileURLToPath(new URL('./server.key', import.meta.url))),\n cert: fs.readFileSync(fileURLToPath(new URL('./server.crt', import.meta.url)))\n }\n }\n}\n```"
|
|
723
|
+
],
|
|
724
|
+
"tsType": "false | { key: string; cert: string }",
|
|
725
|
+
"id": "#devServer/https",
|
|
726
|
+
"default": false,
|
|
727
|
+
"type": "boolean"
|
|
728
|
+
},
|
|
729
|
+
"port": {
|
|
730
|
+
"title": "Dev server listening port",
|
|
731
|
+
"description": "",
|
|
732
|
+
"tags": [],
|
|
733
|
+
"id": "#devServer/port",
|
|
734
|
+
"default": 3000,
|
|
735
|
+
"type": "number"
|
|
736
|
+
},
|
|
737
|
+
"host": {
|
|
738
|
+
"title": "Dev server listening host",
|
|
739
|
+
"description": "",
|
|
740
|
+
"tags": [],
|
|
741
|
+
"id": "#devServer/host",
|
|
742
|
+
"default": "localhost",
|
|
743
|
+
"type": "string"
|
|
744
|
+
},
|
|
745
|
+
"url": {
|
|
746
|
+
"title": "Listening dev server url",
|
|
747
|
+
"description": "",
|
|
748
|
+
"tags": [],
|
|
749
|
+
"id": "#devServer/url",
|
|
750
|
+
"default": "http://localhost:3000",
|
|
751
|
+
"type": "string"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
"default": {
|
|
755
|
+
"https": false,
|
|
756
|
+
"port": 3000,
|
|
757
|
+
"host": "localhost",
|
|
758
|
+
"url": "http://localhost:3000"
|
|
759
|
+
},
|
|
760
|
+
"type": "object"
|
|
761
|
+
},
|
|
762
|
+
"experimental": {
|
|
763
|
+
"id": "#experimental",
|
|
764
|
+
"properties": {
|
|
765
|
+
"asyncEntry": {
|
|
766
|
+
"title": "Set to true to generate an async entry point for the Kdu bundle (for module federation support).",
|
|
767
|
+
"description": "",
|
|
768
|
+
"tags": [],
|
|
769
|
+
"id": "#experimental/asyncEntry",
|
|
770
|
+
"default": false,
|
|
771
|
+
"type": "boolean"
|
|
772
|
+
},
|
|
773
|
+
"reactivityTransform": {
|
|
774
|
+
"title": "Enable Kdu's reactivity transform",
|
|
775
|
+
"description": "",
|
|
776
|
+
"tags": [
|
|
777
|
+
"@see https://kdu-js.web.app/guide/extras/reactivity-transform.html"
|
|
778
|
+
],
|
|
779
|
+
"id": "#experimental/reactivityTransform",
|
|
780
|
+
"default": false,
|
|
781
|
+
"type": "boolean"
|
|
782
|
+
},
|
|
783
|
+
"externalKdu": {
|
|
784
|
+
"title": "Externalize `kdu`, `@kdujs/*` and `kdu-router` when building.",
|
|
785
|
+
"description": "",
|
|
786
|
+
"tags": [],
|
|
787
|
+
"id": "#experimental/externalKdu",
|
|
788
|
+
"default": true,
|
|
789
|
+
"type": "boolean"
|
|
790
|
+
},
|
|
791
|
+
"treeshakeClientOnly": {
|
|
792
|
+
"title": "Tree shakes contents of client-only components from server bundle.",
|
|
793
|
+
"description": "",
|
|
794
|
+
"tags": [],
|
|
795
|
+
"id": "#experimental/treeshakeClientOnly",
|
|
796
|
+
"default": true,
|
|
797
|
+
"type": "boolean"
|
|
798
|
+
},
|
|
799
|
+
"witeNode": {
|
|
800
|
+
"title": "Use wite-node for on-demand server chunk loading",
|
|
801
|
+
"description": "",
|
|
802
|
+
"tags": [
|
|
803
|
+
"@deprecated use `wite.devBundler: 'wite-node'`"
|
|
804
|
+
],
|
|
805
|
+
"id": "#experimental/witeNode",
|
|
806
|
+
"default": true,
|
|
807
|
+
"type": "boolean"
|
|
808
|
+
},
|
|
809
|
+
"witeServerDynamicImports": {
|
|
810
|
+
"title": "Split server bundle into multiple chunks and dynamically import them.",
|
|
811
|
+
"description": "",
|
|
812
|
+
"tags": [],
|
|
813
|
+
"id": "#experimental/witeServerDynamicImports",
|
|
814
|
+
"default": true,
|
|
815
|
+
"type": "boolean"
|
|
816
|
+
},
|
|
817
|
+
"inlineSSRStyles": {
|
|
818
|
+
"title": "Inline styles when rendering HTML (currently wite only).",
|
|
819
|
+
"description": "You can also pass a function that receives the path of a Kdu component and returns a boolean indicating whether to inline the styles for that component.",
|
|
820
|
+
"tags": [],
|
|
821
|
+
"tsType": "boolean | ((id?: string) => boolean)",
|
|
822
|
+
"id": "#experimental/inlineSSRStyles",
|
|
823
|
+
"default": true,
|
|
824
|
+
"type": "boolean"
|
|
825
|
+
},
|
|
826
|
+
"noScripts": {
|
|
827
|
+
"title": "Turn off rendering of Dtwo scripts and JS resource hints.",
|
|
828
|
+
"description": "",
|
|
829
|
+
"tags": [],
|
|
830
|
+
"id": "#experimental/noScripts",
|
|
831
|
+
"default": false,
|
|
832
|
+
"type": "boolean"
|
|
833
|
+
},
|
|
834
|
+
"payloadExtraction": {
|
|
835
|
+
"title": "When this option is enabled (by default) payload of pages generated with `dtwo generate` are extracted",
|
|
836
|
+
"description": "",
|
|
837
|
+
"tags": [],
|
|
838
|
+
"id": "#experimental/payloadExtraction",
|
|
839
|
+
"default": false,
|
|
840
|
+
"type": "boolean"
|
|
841
|
+
},
|
|
842
|
+
"crossOriginPrefetch": {
|
|
843
|
+
"title": "Enable cross-origin prefetch using the Speculation Rules API.",
|
|
844
|
+
"description": "",
|
|
845
|
+
"tags": [],
|
|
846
|
+
"id": "#experimental/crossOriginPrefetch",
|
|
847
|
+
"default": false,
|
|
848
|
+
"type": "boolean"
|
|
849
|
+
},
|
|
850
|
+
"writeEarlyHints": {
|
|
851
|
+
"title": "Write early hints when using node server.",
|
|
852
|
+
"description": "",
|
|
853
|
+
"tags": [
|
|
854
|
+
"@note nginx does not support 103 Early hints in the current version."
|
|
855
|
+
],
|
|
856
|
+
"id": "#experimental/writeEarlyHints",
|
|
857
|
+
"default": false,
|
|
858
|
+
"type": "boolean"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"default": {
|
|
862
|
+
"asyncEntry": false,
|
|
863
|
+
"reactivityTransform": false,
|
|
864
|
+
"externalKdu": true,
|
|
865
|
+
"treeshakeClientOnly": true,
|
|
866
|
+
"witeNode": true,
|
|
867
|
+
"witeServerDynamicImports": true,
|
|
868
|
+
"inlineSSRStyles": true,
|
|
869
|
+
"noScripts": false,
|
|
870
|
+
"payloadExtraction": false,
|
|
871
|
+
"crossOriginPrefetch": false,
|
|
872
|
+
"writeEarlyHints": false
|
|
873
|
+
},
|
|
874
|
+
"type": "object"
|
|
875
|
+
},
|
|
876
|
+
"generate": {
|
|
877
|
+
"id": "#generate",
|
|
878
|
+
"properties": {
|
|
879
|
+
"routes": {
|
|
880
|
+
"title": "The routes to generate.",
|
|
881
|
+
"description": "If you are using the crawler, this will be only the starting point for route generation. This is often necessary when using dynamic routes.\nIt can be an array or a function.",
|
|
882
|
+
"tags": [
|
|
883
|
+
"@example\n```js\nroutes: ['/users/1', '/users/2', '/users/3']\n```",
|
|
884
|
+
"You can pass a function that returns a promise or a function that takes a callback. It should\nreturn an array of strings or objects with `route` and (optional) `payload` keys.",
|
|
885
|
+
"@example\n```js\nexport default {\n generate: {\n async routes() {\n const res = await axios.get('https://my-api/users')\n return res.data.map(user => ({ route: '/users/' + user.id, payload: user }))\n }\n }\n}\n```\nOr instead:\n```js\nexport default {\n generate: {\n routes(callback) {\n axios\n .get('https://my-api/users')\n .then(res => {\n const routes = res.data.map(user => '/users/' + user.id)\n callback(null, routes)\n })\n .catch(callback)\n }\n }\n}\n```",
|
|
886
|
+
"If `routes()` returns a payload, it can be accessed from the Dtwo context.",
|
|
887
|
+
"@example\n```js\nexport default {\n async useAsyncData ({ params, error, payload }) {\n if (payload) return { user: payload }\n else return { user: await backend.fetchUser(params.id) }\n }\n}\n```"
|
|
888
|
+
],
|
|
889
|
+
"id": "#generate/routes",
|
|
890
|
+
"default": [],
|
|
891
|
+
"type": "array",
|
|
892
|
+
"items": {
|
|
893
|
+
"type": "any"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"exclude": {
|
|
897
|
+
"title": "An array of string or regular expressions that will prevent generation of routes matching them. The routes will still be accessible when `fallback` is set.",
|
|
898
|
+
"description": "",
|
|
899
|
+
"tags": [],
|
|
900
|
+
"id": "#generate/exclude",
|
|
901
|
+
"default": [],
|
|
902
|
+
"type": "array",
|
|
903
|
+
"items": {
|
|
904
|
+
"type": "any"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
"default": {
|
|
909
|
+
"routes": [],
|
|
910
|
+
"exclude": []
|
|
911
|
+
},
|
|
912
|
+
"type": "object"
|
|
913
|
+
},
|
|
914
|
+
"_majorVersion": {
|
|
915
|
+
"title": "",
|
|
916
|
+
"description": "",
|
|
917
|
+
"tags": [
|
|
918
|
+
"@private"
|
|
919
|
+
],
|
|
920
|
+
"id": "#_majorVersion",
|
|
921
|
+
"default": 3,
|
|
922
|
+
"type": "number"
|
|
923
|
+
},
|
|
924
|
+
"_legacyGenerate": {
|
|
925
|
+
"title": "",
|
|
926
|
+
"description": "",
|
|
927
|
+
"tags": [
|
|
928
|
+
"@private"
|
|
929
|
+
],
|
|
930
|
+
"id": "#_legacyGenerate",
|
|
931
|
+
"default": false,
|
|
932
|
+
"type": "boolean"
|
|
933
|
+
},
|
|
934
|
+
"_start": {
|
|
935
|
+
"title": "",
|
|
936
|
+
"description": "",
|
|
937
|
+
"tags": [
|
|
938
|
+
"@private"
|
|
939
|
+
],
|
|
940
|
+
"id": "#_start",
|
|
941
|
+
"default": false,
|
|
942
|
+
"type": "boolean"
|
|
943
|
+
},
|
|
944
|
+
"_build": {
|
|
945
|
+
"title": "",
|
|
946
|
+
"description": "",
|
|
947
|
+
"tags": [
|
|
948
|
+
"@private"
|
|
949
|
+
],
|
|
950
|
+
"id": "#_build",
|
|
951
|
+
"default": false,
|
|
952
|
+
"type": "boolean"
|
|
953
|
+
},
|
|
954
|
+
"_generate": {
|
|
955
|
+
"title": "",
|
|
956
|
+
"description": "",
|
|
957
|
+
"tags": [
|
|
958
|
+
"@private"
|
|
959
|
+
],
|
|
960
|
+
"id": "#_generate",
|
|
961
|
+
"default": false,
|
|
962
|
+
"type": "boolean"
|
|
963
|
+
},
|
|
964
|
+
"_prepare": {
|
|
965
|
+
"title": "",
|
|
966
|
+
"description": "",
|
|
967
|
+
"tags": [
|
|
968
|
+
"@private"
|
|
969
|
+
],
|
|
970
|
+
"id": "#_prepare",
|
|
971
|
+
"default": false,
|
|
972
|
+
"type": "boolean"
|
|
973
|
+
},
|
|
974
|
+
"_cli": {
|
|
975
|
+
"title": "",
|
|
976
|
+
"description": "",
|
|
977
|
+
"tags": [
|
|
978
|
+
"@private"
|
|
979
|
+
],
|
|
980
|
+
"id": "#_cli",
|
|
981
|
+
"default": false,
|
|
982
|
+
"type": "boolean"
|
|
983
|
+
},
|
|
984
|
+
"_requiredModules": {
|
|
985
|
+
"title": "",
|
|
986
|
+
"description": "",
|
|
987
|
+
"tags": [
|
|
988
|
+
"@private"
|
|
989
|
+
],
|
|
990
|
+
"id": "#_requiredModules",
|
|
991
|
+
"default": {},
|
|
992
|
+
"type": "any"
|
|
993
|
+
},
|
|
994
|
+
"_dtwoConfigFile": {
|
|
995
|
+
"title": "",
|
|
996
|
+
"description": "",
|
|
997
|
+
"tags": [
|
|
998
|
+
"@private"
|
|
999
|
+
],
|
|
1000
|
+
"id": "#_dtwoConfigFile",
|
|
1001
|
+
"default": {},
|
|
1002
|
+
"type": "any"
|
|
1003
|
+
},
|
|
1004
|
+
"_dtwoConfigFiles": {
|
|
1005
|
+
"title": "",
|
|
1006
|
+
"description": "",
|
|
1007
|
+
"tags": [
|
|
1008
|
+
"@private"
|
|
1009
|
+
],
|
|
1010
|
+
"id": "#_dtwoConfigFiles",
|
|
1011
|
+
"default": [],
|
|
1012
|
+
"type": "array",
|
|
1013
|
+
"items": {
|
|
1014
|
+
"type": "any"
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
"appDir": {
|
|
1018
|
+
"title": "",
|
|
1019
|
+
"description": "",
|
|
1020
|
+
"tags": [
|
|
1021
|
+
"@private"
|
|
1022
|
+
],
|
|
1023
|
+
"id": "#appDir",
|
|
1024
|
+
"default": "",
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
},
|
|
1027
|
+
"_installedModules": {
|
|
1028
|
+
"title": "",
|
|
1029
|
+
"description": "",
|
|
1030
|
+
"tags": [
|
|
1031
|
+
"@private"
|
|
1032
|
+
],
|
|
1033
|
+
"id": "#_installedModules",
|
|
1034
|
+
"default": [],
|
|
1035
|
+
"type": "array",
|
|
1036
|
+
"items": {
|
|
1037
|
+
"type": "any"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"_modules": {
|
|
1041
|
+
"title": "",
|
|
1042
|
+
"description": "",
|
|
1043
|
+
"tags": [
|
|
1044
|
+
"@private"
|
|
1045
|
+
],
|
|
1046
|
+
"id": "#_modules",
|
|
1047
|
+
"default": [],
|
|
1048
|
+
"type": "array",
|
|
1049
|
+
"items": {
|
|
1050
|
+
"type": "any"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
"hole": {
|
|
1054
|
+
"title": "Configuration for Hole.",
|
|
1055
|
+
"description": "",
|
|
1056
|
+
"tags": [
|
|
1057
|
+
"@see https://holepack.web.app/config/"
|
|
1058
|
+
],
|
|
1059
|
+
"tsType": "typeof import('holepack')['HoleConfig']",
|
|
1060
|
+
"markdownType": "HolepackHoleConfig",
|
|
1061
|
+
"id": "#hole",
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"routeRules": {
|
|
1064
|
+
"id": "#hole/routeRules",
|
|
1065
|
+
"default": {},
|
|
1066
|
+
"type": "object"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"default": {
|
|
1070
|
+
"routeRules": {}
|
|
1071
|
+
},
|
|
1072
|
+
"type": "object"
|
|
1073
|
+
},
|
|
1074
|
+
"routeRules": {
|
|
1075
|
+
"title": "Global route options applied to matching server routes.",
|
|
1076
|
+
"description": "",
|
|
1077
|
+
"tags": [
|
|
1078
|
+
"@experimental This is an experimental feature and API may change in the future.",
|
|
1079
|
+
"@see https://holepack.web.app/config/#routes"
|
|
1080
|
+
],
|
|
1081
|
+
"tsType": "typeof import('holepack')['HoleConfig']['routeRules']",
|
|
1082
|
+
"markdownType": "HolepackHoleConfig['routeRules']",
|
|
1083
|
+
"id": "#routeRules",
|
|
1084
|
+
"default": {},
|
|
1085
|
+
"type": "any"
|
|
1086
|
+
},
|
|
1087
|
+
"serverHandlers": {
|
|
1088
|
+
"title": "Hole server handlers.",
|
|
1089
|
+
"description": "Each handler accepts the following options: - handler: The path to the file defining the handler. - route: The route under which the handler is available. This follows the conventions of https://github.com/unjs/radix3. - method: The HTTP method of requests that should be handled. - middleware: Specifies whether it is a middleware handler. - lazy: Specifies whether to use lazy loading to import the handler.",
|
|
1090
|
+
"tags": [
|
|
1091
|
+
"@note Files from `server/api`, `server/middleware` and `server/routes` will be automatically registered by Dtwo.",
|
|
1092
|
+
"@example\n```js\nserverHandlers: [\n { route: '/path/foo/**:name', handler: '~/server/foohandler.ts' }\n]\n```"
|
|
1093
|
+
],
|
|
1094
|
+
"tsType": "typeof import('holepack')['HoleEventHandler'][]",
|
|
1095
|
+
"markdownType": "HolepackHoleEventHandler[]",
|
|
1096
|
+
"id": "#serverHandlers",
|
|
1097
|
+
"default": [],
|
|
1098
|
+
"type": "array",
|
|
1099
|
+
"items": {
|
|
1100
|
+
"type": "any"
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
"devServerHandlers": {
|
|
1104
|
+
"title": "Hole development-only server handlers.",
|
|
1105
|
+
"description": "",
|
|
1106
|
+
"tags": [
|
|
1107
|
+
"@see https://holepack.web.app/guide/introduction/routing"
|
|
1108
|
+
],
|
|
1109
|
+
"tsType": "typeof import('holepack')['HoleDevEventHandler'][]",
|
|
1110
|
+
"markdownType": "HolepackHoleDevEventHandler[]",
|
|
1111
|
+
"id": "#devServerHandlers",
|
|
1112
|
+
"default": [],
|
|
1113
|
+
"type": "array",
|
|
1114
|
+
"items": {
|
|
1115
|
+
"type": "any"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"postcss": {
|
|
1119
|
+
"id": "#postcss",
|
|
1120
|
+
"properties": {
|
|
1121
|
+
"config": {
|
|
1122
|
+
"title": "Path to postcss config file.",
|
|
1123
|
+
"description": "",
|
|
1124
|
+
"tags": [],
|
|
1125
|
+
"id": "#postcss/config",
|
|
1126
|
+
"default": false,
|
|
1127
|
+
"type": "boolean"
|
|
1128
|
+
},
|
|
1129
|
+
"plugins": {
|
|
1130
|
+
"title": "Options for configuring PostCSS plugins.",
|
|
1131
|
+
"description": "https://postcss.org/",
|
|
1132
|
+
"tags": [],
|
|
1133
|
+
"tsType": "Record<string, any>",
|
|
1134
|
+
"id": "#postcss/plugins",
|
|
1135
|
+
"properties": {
|
|
1136
|
+
"postcss-import": {
|
|
1137
|
+
"title": "https://github.com/postcss/postcss-import",
|
|
1138
|
+
"description": "",
|
|
1139
|
+
"tags": [],
|
|
1140
|
+
"id": "#postcss/plugins/postcss-import",
|
|
1141
|
+
"default": {},
|
|
1142
|
+
"type": "object"
|
|
1143
|
+
},
|
|
1144
|
+
"postcss-url": {
|
|
1145
|
+
"title": "https://github.com/postcss/postcss-url",
|
|
1146
|
+
"description": "",
|
|
1147
|
+
"tags": [],
|
|
1148
|
+
"id": "#postcss/plugins/postcss-url",
|
|
1149
|
+
"default": {},
|
|
1150
|
+
"type": "any"
|
|
1151
|
+
},
|
|
1152
|
+
"autoprefixer": {
|
|
1153
|
+
"title": "https://github.com/postcss/autoprefixer",
|
|
1154
|
+
"description": "",
|
|
1155
|
+
"tags": [],
|
|
1156
|
+
"id": "#postcss/plugins/autoprefixer",
|
|
1157
|
+
"default": {},
|
|
1158
|
+
"type": "any"
|
|
1159
|
+
},
|
|
1160
|
+
"cssnano": {
|
|
1161
|
+
"id": "#postcss/plugins/cssnano",
|
|
1162
|
+
"default": true,
|
|
1163
|
+
"type": "boolean"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"default": {
|
|
1167
|
+
"postcss-import": {},
|
|
1168
|
+
"postcss-url": {},
|
|
1169
|
+
"autoprefixer": {},
|
|
1170
|
+
"cssnano": true
|
|
1171
|
+
},
|
|
1172
|
+
"type": "object"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"default": {
|
|
1176
|
+
"config": false,
|
|
1177
|
+
"plugins": {
|
|
1178
|
+
"postcss-import": {},
|
|
1179
|
+
"postcss-url": {},
|
|
1180
|
+
"autoprefixer": {},
|
|
1181
|
+
"cssnano": true
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"type": "object"
|
|
1185
|
+
},
|
|
1186
|
+
"router": {
|
|
1187
|
+
"id": "#router",
|
|
1188
|
+
"properties": {
|
|
1189
|
+
"options": {
|
|
1190
|
+
"title": "Additional options passed to `kdu-router`.",
|
|
1191
|
+
"description": "Note: Only JSON serializable options should be passed by dtwo config.\nFor more control, you can use `app/router.options.ts` file.",
|
|
1192
|
+
"tags": [
|
|
1193
|
+
"@see [documentation](https://kdujs-router.web.app/api/interfaces/routeroptions.html)."
|
|
1194
|
+
],
|
|
1195
|
+
"tsType": "import('../src/types/router').RouterConfigSerializable",
|
|
1196
|
+
"markdownType": "SrcTypesRouterRouterConfigSerializable",
|
|
1197
|
+
"id": "#router/options",
|
|
1198
|
+
"default": {},
|
|
1199
|
+
"type": "any"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"default": {
|
|
1203
|
+
"options": {}
|
|
1204
|
+
},
|
|
1205
|
+
"type": "object"
|
|
1206
|
+
},
|
|
1207
|
+
"typescript": {
|
|
1208
|
+
"title": "Configuration for Dtwo's TypeScript integration.",
|
|
1209
|
+
"description": "",
|
|
1210
|
+
"tags": [],
|
|
1211
|
+
"id": "#typescript",
|
|
1212
|
+
"properties": {
|
|
1213
|
+
"strict": {
|
|
1214
|
+
"title": "TypeScript comes with certain checks to give you more safety and analysis of your program. Once you’ve converted your codebase to TypeScript, you can start enabling these checks for greater safety. [Read More](https://www.typescriptlang.org/docs/handbook/migrating-from-javascript.html#getting-stricter-checks)",
|
|
1215
|
+
"description": "",
|
|
1216
|
+
"tags": [],
|
|
1217
|
+
"id": "#typescript/strict",
|
|
1218
|
+
"default": true,
|
|
1219
|
+
"type": "boolean"
|
|
1220
|
+
},
|
|
1221
|
+
"includeWorkspace": {
|
|
1222
|
+
"title": "Include parent workspace in the Dtwo project. Mostly useful for themes and module authors.",
|
|
1223
|
+
"description": "",
|
|
1224
|
+
"tags": [],
|
|
1225
|
+
"id": "#typescript/includeWorkspace",
|
|
1226
|
+
"default": false,
|
|
1227
|
+
"type": "boolean"
|
|
1228
|
+
},
|
|
1229
|
+
"typeCheck": {
|
|
1230
|
+
"title": "Enable build-time type checking.",
|
|
1231
|
+
"description": "If set to true, this will type check in development. You can restrict this to build-time type checking by setting it to `build`. Requires to install `typescript` and `kdu-tsc` as dev dependencies.",
|
|
1232
|
+
"tags": [],
|
|
1233
|
+
"tsType": "boolean | 'build'",
|
|
1234
|
+
"id": "#typescript/typeCheck",
|
|
1235
|
+
"default": false,
|
|
1236
|
+
"type": "boolean"
|
|
1237
|
+
},
|
|
1238
|
+
"tsConfig": {
|
|
1239
|
+
"title": "You can extend generated `.dtwo/tsconfig.json` using this option.",
|
|
1240
|
+
"description": "",
|
|
1241
|
+
"tags": [],
|
|
1242
|
+
"tsType": "typeof import('pkg-types')['readPackageJSON']",
|
|
1243
|
+
"markdownType": "PkgTypesReadPackageJSON",
|
|
1244
|
+
"id": "#typescript/tsConfig",
|
|
1245
|
+
"default": {},
|
|
1246
|
+
"type": "any"
|
|
1247
|
+
},
|
|
1248
|
+
"shim": {
|
|
1249
|
+
"title": "Generate a `*.kdu` shim.",
|
|
1250
|
+
"description": "We recommend instead either enabling [**Take Over Mode**](https://kdu-js.web.app/guide/typescript/overview.html#kocan-takeover-mode) or adding TypeScript Kdu Plugin (Kocan)** 👉 [[Download](https://marketplace.visualstudio.com/items?itemName=Kdu-Code.vscode-typescript-kdu-plugin)].",
|
|
1251
|
+
"tags": [],
|
|
1252
|
+
"id": "#typescript/shim",
|
|
1253
|
+
"default": true,
|
|
1254
|
+
"type": "boolean"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"default": {
|
|
1258
|
+
"strict": true,
|
|
1259
|
+
"includeWorkspace": false,
|
|
1260
|
+
"typeCheck": false,
|
|
1261
|
+
"tsConfig": {},
|
|
1262
|
+
"shim": true
|
|
1263
|
+
},
|
|
1264
|
+
"type": "object"
|
|
1265
|
+
},
|
|
1266
|
+
"wite": {
|
|
1267
|
+
"title": "Configuration that will be passed directly to Wite.",
|
|
1268
|
+
"description": "See https://witejs.web.app/config for more information. Please note that not all wite options are supported in Dtwo.",
|
|
1269
|
+
"tags": [],
|
|
1270
|
+
"tsType": "typeof import('../src/types/config').WiteConfig",
|
|
1271
|
+
"markdownType": "SrcTypesConfigWiteConfig",
|
|
1272
|
+
"id": "#wite",
|
|
1273
|
+
"properties": {
|
|
1274
|
+
"root": {
|
|
1275
|
+
"id": "#wite/root",
|
|
1276
|
+
"default": "/<rootDir>",
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
},
|
|
1279
|
+
"mode": {
|
|
1280
|
+
"id": "#wite/mode",
|
|
1281
|
+
"default": "production",
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
},
|
|
1284
|
+
"logLevel": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"default": "warn"
|
|
1287
|
+
},
|
|
1288
|
+
"define": {
|
|
1289
|
+
"id": "#wite/define",
|
|
1290
|
+
"default": {
|
|
1291
|
+
"process.dev": false
|
|
1292
|
+
},
|
|
1293
|
+
"type": "object"
|
|
1294
|
+
},
|
|
1295
|
+
"resolve": {
|
|
1296
|
+
"id": "#wite/resolve",
|
|
1297
|
+
"properties": {
|
|
1298
|
+
"extensions": {
|
|
1299
|
+
"type": "array",
|
|
1300
|
+
"default": [
|
|
1301
|
+
".mjs",
|
|
1302
|
+
".js",
|
|
1303
|
+
".ts",
|
|
1304
|
+
".jsx",
|
|
1305
|
+
".tsx",
|
|
1306
|
+
".json",
|
|
1307
|
+
".kdu"
|
|
1308
|
+
],
|
|
1309
|
+
"items": {
|
|
1310
|
+
"type": [
|
|
1311
|
+
"string"
|
|
1312
|
+
]
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
"default": {
|
|
1317
|
+
"extensions": [
|
|
1318
|
+
".mjs",
|
|
1319
|
+
".js",
|
|
1320
|
+
".ts",
|
|
1321
|
+
".jsx",
|
|
1322
|
+
".tsx",
|
|
1323
|
+
".json",
|
|
1324
|
+
".kdu"
|
|
1325
|
+
]
|
|
1326
|
+
},
|
|
1327
|
+
"type": "object"
|
|
1328
|
+
},
|
|
1329
|
+
"publicDir": {
|
|
1330
|
+
"id": "#wite/publicDir",
|
|
1331
|
+
"default": "/<rootDir>/public",
|
|
1332
|
+
"type": "string"
|
|
1333
|
+
},
|
|
1334
|
+
"kdu": {
|
|
1335
|
+
"id": "#wite/kdu",
|
|
1336
|
+
"properties": {
|
|
1337
|
+
"isProduction": {
|
|
1338
|
+
"id": "#wite/kdu/isProduction",
|
|
1339
|
+
"default": true,
|
|
1340
|
+
"type": "boolean"
|
|
1341
|
+
},
|
|
1342
|
+
"template": {
|
|
1343
|
+
"id": "#wite/kdu/template",
|
|
1344
|
+
"properties": {
|
|
1345
|
+
"compilerOptions": {
|
|
1346
|
+
"id": "#wite/kdu/template/compilerOptions",
|
|
1347
|
+
"default": {},
|
|
1348
|
+
"type": "object"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
"default": {
|
|
1352
|
+
"compilerOptions": {}
|
|
1353
|
+
},
|
|
1354
|
+
"type": "object"
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
"default": {
|
|
1358
|
+
"isProduction": true,
|
|
1359
|
+
"template": {
|
|
1360
|
+
"compilerOptions": {}
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"type": "object"
|
|
1364
|
+
},
|
|
1365
|
+
"optimizeDeps": {
|
|
1366
|
+
"id": "#wite/optimizeDeps",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"exclude": {
|
|
1369
|
+
"id": "#wite/optimizeDeps/exclude",
|
|
1370
|
+
"default": [
|
|
1371
|
+
"kdu-demi"
|
|
1372
|
+
],
|
|
1373
|
+
"type": "array",
|
|
1374
|
+
"items": {
|
|
1375
|
+
"type": [
|
|
1376
|
+
"string"
|
|
1377
|
+
]
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"default": {
|
|
1382
|
+
"exclude": [
|
|
1383
|
+
"kdu-demi"
|
|
1384
|
+
]
|
|
1385
|
+
},
|
|
1386
|
+
"type": "object"
|
|
1387
|
+
},
|
|
1388
|
+
"esbuild": {
|
|
1389
|
+
"id": "#wite/esbuild",
|
|
1390
|
+
"properties": {
|
|
1391
|
+
"jsxFactory": {
|
|
1392
|
+
"type": "string",
|
|
1393
|
+
"default": "h"
|
|
1394
|
+
},
|
|
1395
|
+
"jsxFragment": {
|
|
1396
|
+
"type": "string",
|
|
1397
|
+
"default": "Fragment"
|
|
1398
|
+
},
|
|
1399
|
+
"tsconfigRaw": {
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"default": "{}"
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
"default": {
|
|
1405
|
+
"jsxFactory": "h",
|
|
1406
|
+
"jsxFragment": "Fragment",
|
|
1407
|
+
"tsconfigRaw": "{}"
|
|
1408
|
+
},
|
|
1409
|
+
"type": "object"
|
|
1410
|
+
},
|
|
1411
|
+
"clearScreen": {
|
|
1412
|
+
"type": "boolean",
|
|
1413
|
+
"default": false
|
|
1414
|
+
},
|
|
1415
|
+
"build": {
|
|
1416
|
+
"id": "#wite/build",
|
|
1417
|
+
"properties": {
|
|
1418
|
+
"assetsDir": {
|
|
1419
|
+
"id": "#wite/build/assetsDir",
|
|
1420
|
+
"default": "_dtwo/",
|
|
1421
|
+
"type": "string"
|
|
1422
|
+
},
|
|
1423
|
+
"emptyOutDir": {
|
|
1424
|
+
"type": "boolean",
|
|
1425
|
+
"default": false
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"default": {
|
|
1429
|
+
"assetsDir": "_dtwo/",
|
|
1430
|
+
"emptyOutDir": false
|
|
1431
|
+
},
|
|
1432
|
+
"type": "object"
|
|
1433
|
+
},
|
|
1434
|
+
"server": {
|
|
1435
|
+
"id": "#wite/server",
|
|
1436
|
+
"properties": {
|
|
1437
|
+
"fs": {
|
|
1438
|
+
"id": "#wite/server/fs",
|
|
1439
|
+
"properties": {
|
|
1440
|
+
"allow": {
|
|
1441
|
+
"id": "#wite/server/fs/allow",
|
|
1442
|
+
"default": [
|
|
1443
|
+
"/<rootDir>/.dtwo",
|
|
1444
|
+
"/<rootDir>",
|
|
1445
|
+
"/<rootDir>",
|
|
1446
|
+
"/<rootDir>",
|
|
1447
|
+
"/<rootDir>/node_modules",
|
|
1448
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
1449
|
+
],
|
|
1450
|
+
"type": "array",
|
|
1451
|
+
"items": {
|
|
1452
|
+
"type": [
|
|
1453
|
+
"string"
|
|
1454
|
+
]
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
"default": {
|
|
1459
|
+
"allow": [
|
|
1460
|
+
"/<rootDir>/.dtwo",
|
|
1461
|
+
"/<rootDir>",
|
|
1462
|
+
"/<rootDir>",
|
|
1463
|
+
"/<rootDir>",
|
|
1464
|
+
"/<rootDir>/node_modules",
|
|
1465
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
1466
|
+
]
|
|
1467
|
+
},
|
|
1468
|
+
"type": "object"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
"default": {
|
|
1472
|
+
"fs": {
|
|
1473
|
+
"allow": [
|
|
1474
|
+
"/<rootDir>/.dtwo",
|
|
1475
|
+
"/<rootDir>",
|
|
1476
|
+
"/<rootDir>",
|
|
1477
|
+
"/<rootDir>",
|
|
1478
|
+
"/<rootDir>/node_modules",
|
|
1479
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
1480
|
+
]
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
"type": "object"
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
"default": {
|
|
1487
|
+
"base": "/",
|
|
1488
|
+
"root": "/<rootDir>",
|
|
1489
|
+
"mode": "production",
|
|
1490
|
+
"logLevel": "warn",
|
|
1491
|
+
"define": {
|
|
1492
|
+
"process.dev": false
|
|
1493
|
+
},
|
|
1494
|
+
"resolve": {
|
|
1495
|
+
"extensions": [
|
|
1496
|
+
".mjs",
|
|
1497
|
+
".js",
|
|
1498
|
+
".ts",
|
|
1499
|
+
".jsx",
|
|
1500
|
+
".tsx",
|
|
1501
|
+
".json",
|
|
1502
|
+
".kdu"
|
|
1503
|
+
]
|
|
1504
|
+
},
|
|
1505
|
+
"publicDir": "/<rootDir>/public",
|
|
1506
|
+
"kdu": {
|
|
1507
|
+
"isProduction": true,
|
|
1508
|
+
"template": {
|
|
1509
|
+
"compilerOptions": {}
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
"optimizeDeps": {
|
|
1513
|
+
"exclude": [
|
|
1514
|
+
"kdu-demi"
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
"esbuild": {
|
|
1518
|
+
"jsxFactory": "h",
|
|
1519
|
+
"jsxFragment": "Fragment",
|
|
1520
|
+
"tsconfigRaw": "{}"
|
|
1521
|
+
},
|
|
1522
|
+
"clearScreen": false,
|
|
1523
|
+
"build": {
|
|
1524
|
+
"assetsDir": "_dtwo/",
|
|
1525
|
+
"emptyOutDir": false
|
|
1526
|
+
},
|
|
1527
|
+
"server": {
|
|
1528
|
+
"fs": {
|
|
1529
|
+
"allow": [
|
|
1530
|
+
"/<rootDir>/.dtwo",
|
|
1531
|
+
"/<rootDir>",
|
|
1532
|
+
"/<rootDir>",
|
|
1533
|
+
"/<rootDir>",
|
|
1534
|
+
"/<rootDir>/node_modules",
|
|
1535
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
1536
|
+
]
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
"type": "object"
|
|
1541
|
+
},
|
|
1542
|
+
"webpack": {
|
|
1543
|
+
"id": "#webpack",
|
|
1544
|
+
"properties": {
|
|
1545
|
+
"analyze": {
|
|
1546
|
+
"title": "Dtwo uses `webpack-bundle-analyzer` to visualize your bundles and how to optimize them.",
|
|
1547
|
+
"description": "Set to `true` to enable bundle analysis, or pass an object with options: [for webpack](https://github.com/webpack-contrib/webpack-bundle-analyzer#options-for-plugin) or [for wite](https://github.com/btd/rollup-plugin-visualizer#options).",
|
|
1548
|
+
"tags": [
|
|
1549
|
+
"@example\n```js\nanalyze: {\n analyzerMode: 'static'\n}\n```"
|
|
1550
|
+
],
|
|
1551
|
+
"tsType": "boolean | typeof import('webpack-bundle-analyzer').BundleAnalyzerPlugin.Options",
|
|
1552
|
+
"markdownType": "boolean | WebpackBundleAnalyzerBundleAnalyzerPluginOptions",
|
|
1553
|
+
"id": "#webpack/analyze",
|
|
1554
|
+
"default": false,
|
|
1555
|
+
"type": "boolean"
|
|
1556
|
+
},
|
|
1557
|
+
"profile": {
|
|
1558
|
+
"title": "Enable the profiler in webpackbar.",
|
|
1559
|
+
"description": "It is normally enabled by CLI argument `--profile`.",
|
|
1560
|
+
"tags": [
|
|
1561
|
+
"@see [webpackbar](https://github.com/unjs/webpackbar#profile)."
|
|
1562
|
+
],
|
|
1563
|
+
"id": "#webpack/profile",
|
|
1564
|
+
"default": false,
|
|
1565
|
+
"type": "boolean"
|
|
1566
|
+
},
|
|
1567
|
+
"extractCSS": {
|
|
1568
|
+
"title": "Enables Common CSS Extraction using [Kdu Server Renderer guidelines](https://kdujs-ssr.web.app/guide/css.html).",
|
|
1569
|
+
"description": "Using [extract-css-chunks-webpack-plugin](https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/) under the hood, your CSS will be extracted into separate files, usually one per component. This allows caching your CSS and JavaScript separately and is worth trying if you have a lot of global or shared CSS.",
|
|
1570
|
+
"tags": [
|
|
1571
|
+
"@example\n```js\nexport default {\n webpack: {\n extractCSS: true,\n // or\n extractCSS: {\n ignoreOrder: true\n }\n }\n}\n```",
|
|
1572
|
+
"If you want to extract all your CSS to a single file, there is a workaround for this.\nHowever, note that it is not recommended to extract everything into a single file.\nExtracting into multiple CSS files is better for caching and preload isolation. It\ncan also improve page performance by downloading and resolving only those resources\nthat are needed.",
|
|
1573
|
+
"@example\n```js\nexport default {\n webpack: {\n extractCSS: true,\n optimization: {\n splitChunks: {\n cacheGroups: {\n styles: {\n name: 'styles',\n test: /\\.(css|kdu)$/,\n chunks: 'all',\n enforce: true\n }\n }\n }\n }\n }\n}\n```"
|
|
1574
|
+
],
|
|
1575
|
+
"tsType": "boolean | typeof import('mini-css-extract-plugin').PluginOptions",
|
|
1576
|
+
"markdownType": "boolean | MiniCssExtractPluginPluginOptions",
|
|
1577
|
+
"id": "#webpack/extractCSS",
|
|
1578
|
+
"default": true,
|
|
1579
|
+
"type": "boolean"
|
|
1580
|
+
},
|
|
1581
|
+
"cssSourceMap": {
|
|
1582
|
+
"title": "Enables CSS source map support (defaults to `true` in development).",
|
|
1583
|
+
"description": "",
|
|
1584
|
+
"tags": [],
|
|
1585
|
+
"id": "#webpack/cssSourceMap",
|
|
1586
|
+
"default": false,
|
|
1587
|
+
"type": "boolean"
|
|
1588
|
+
},
|
|
1589
|
+
"serverURLPolyfill": {
|
|
1590
|
+
"title": "The polyfill library to load to provide URL and URLSearchParams.",
|
|
1591
|
+
"description": "Defaults to `'url'` ([see package](https://www.npmjs.com/package/url)).",
|
|
1592
|
+
"tags": [],
|
|
1593
|
+
"id": "#webpack/serverURLPolyfill",
|
|
1594
|
+
"default": "url",
|
|
1595
|
+
"type": "string"
|
|
1596
|
+
},
|
|
1597
|
+
"filenames": {
|
|
1598
|
+
"title": "Customize bundle filenames.",
|
|
1599
|
+
"description": "To understand a bit more about the use of manifests, take a look at [this webpack documentation](https://webpack.js.org/guides/code-splitting/).",
|
|
1600
|
+
"tags": [
|
|
1601
|
+
"@note Be careful when using non-hashed based filenames in production\nas most browsers will cache the asset and not detect the changes on first load.",
|
|
1602
|
+
"This example changes fancy chunk names to numerical ids:",
|
|
1603
|
+
"@example\n```js\nfilenames: {\n chunk: ({ isDev }) => (isDev ? '[name].js' : '[id].[contenthash].js')\n}\n```"
|
|
1604
|
+
],
|
|
1605
|
+
"id": "#webpack/filenames",
|
|
1606
|
+
"properties": {
|
|
1607
|
+
"app": {
|
|
1608
|
+
"type": "function"
|
|
1609
|
+
},
|
|
1610
|
+
"chunk": {
|
|
1611
|
+
"type": "function"
|
|
1612
|
+
},
|
|
1613
|
+
"css": {
|
|
1614
|
+
"type": "function"
|
|
1615
|
+
},
|
|
1616
|
+
"img": {
|
|
1617
|
+
"type": "function"
|
|
1618
|
+
},
|
|
1619
|
+
"font": {
|
|
1620
|
+
"type": "function"
|
|
1621
|
+
},
|
|
1622
|
+
"video": {
|
|
1623
|
+
"type": "function"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
"default": {},
|
|
1627
|
+
"type": "object"
|
|
1628
|
+
},
|
|
1629
|
+
"loaders": {
|
|
1630
|
+
"title": "Customize the options of Dtwo's integrated webpack loaders.",
|
|
1631
|
+
"description": "",
|
|
1632
|
+
"tags": [],
|
|
1633
|
+
"id": "#webpack/loaders",
|
|
1634
|
+
"properties": {
|
|
1635
|
+
"file": {
|
|
1636
|
+
"id": "#webpack/loaders/file",
|
|
1637
|
+
"properties": {
|
|
1638
|
+
"esModule": {
|
|
1639
|
+
"type": "boolean",
|
|
1640
|
+
"default": false
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
"default": {
|
|
1644
|
+
"esModule": false
|
|
1645
|
+
},
|
|
1646
|
+
"type": "object"
|
|
1647
|
+
},
|
|
1648
|
+
"fontUrl": {
|
|
1649
|
+
"id": "#webpack/loaders/fontUrl",
|
|
1650
|
+
"properties": {
|
|
1651
|
+
"esModule": {
|
|
1652
|
+
"type": "boolean",
|
|
1653
|
+
"default": false
|
|
1654
|
+
},
|
|
1655
|
+
"limit": {
|
|
1656
|
+
"type": "number",
|
|
1657
|
+
"default": 1000
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
"default": {
|
|
1661
|
+
"esModule": false,
|
|
1662
|
+
"limit": 1000
|
|
1663
|
+
},
|
|
1664
|
+
"type": "object"
|
|
1665
|
+
},
|
|
1666
|
+
"imgUrl": {
|
|
1667
|
+
"id": "#webpack/loaders/imgUrl",
|
|
1668
|
+
"properties": {
|
|
1669
|
+
"esModule": {
|
|
1670
|
+
"type": "boolean",
|
|
1671
|
+
"default": false
|
|
1672
|
+
},
|
|
1673
|
+
"limit": {
|
|
1674
|
+
"type": "number",
|
|
1675
|
+
"default": 1000
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
"default": {
|
|
1679
|
+
"esModule": false,
|
|
1680
|
+
"limit": 1000
|
|
1681
|
+
},
|
|
1682
|
+
"type": "object"
|
|
1683
|
+
},
|
|
1684
|
+
"pugPlain": {
|
|
1685
|
+
"id": "#webpack/loaders/pugPlain",
|
|
1686
|
+
"default": {},
|
|
1687
|
+
"type": "any"
|
|
1688
|
+
},
|
|
1689
|
+
"kdu": {
|
|
1690
|
+
"id": "#webpack/loaders/kdu",
|
|
1691
|
+
"properties": {
|
|
1692
|
+
"productionMode": {
|
|
1693
|
+
"id": "#webpack/loaders/kdu/productionMode",
|
|
1694
|
+
"default": true,
|
|
1695
|
+
"type": "boolean"
|
|
1696
|
+
},
|
|
1697
|
+
"transformAssetUrls": {
|
|
1698
|
+
"id": "#webpack/loaders/kdu/transformAssetUrls",
|
|
1699
|
+
"properties": {
|
|
1700
|
+
"video": {
|
|
1701
|
+
"type": "string",
|
|
1702
|
+
"default": "src"
|
|
1703
|
+
},
|
|
1704
|
+
"source": {
|
|
1705
|
+
"type": "string",
|
|
1706
|
+
"default": "src"
|
|
1707
|
+
},
|
|
1708
|
+
"object": {
|
|
1709
|
+
"type": "string",
|
|
1710
|
+
"default": "src"
|
|
1711
|
+
},
|
|
1712
|
+
"embed": {
|
|
1713
|
+
"type": "string",
|
|
1714
|
+
"default": "src"
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"default": {
|
|
1718
|
+
"video": "src",
|
|
1719
|
+
"source": "src",
|
|
1720
|
+
"object": "src",
|
|
1721
|
+
"embed": "src"
|
|
1722
|
+
},
|
|
1723
|
+
"type": "object"
|
|
1724
|
+
},
|
|
1725
|
+
"compilerOptions": {
|
|
1726
|
+
"id": "#webpack/loaders/kdu/compilerOptions",
|
|
1727
|
+
"default": {},
|
|
1728
|
+
"type": "object"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
"default": {
|
|
1732
|
+
"productionMode": true,
|
|
1733
|
+
"transformAssetUrls": {
|
|
1734
|
+
"video": "src",
|
|
1735
|
+
"source": "src",
|
|
1736
|
+
"object": "src",
|
|
1737
|
+
"embed": "src"
|
|
1738
|
+
},
|
|
1739
|
+
"compilerOptions": {}
|
|
1740
|
+
},
|
|
1741
|
+
"type": "object"
|
|
1742
|
+
},
|
|
1743
|
+
"css": {
|
|
1744
|
+
"id": "#webpack/loaders/css",
|
|
1745
|
+
"properties": {
|
|
1746
|
+
"importLoaders": {
|
|
1747
|
+
"type": "number",
|
|
1748
|
+
"default": 0
|
|
1749
|
+
},
|
|
1750
|
+
"url": {
|
|
1751
|
+
"id": "#webpack/loaders/css/url",
|
|
1752
|
+
"properties": {
|
|
1753
|
+
"filter": {
|
|
1754
|
+
"type": "function"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"default": {},
|
|
1758
|
+
"type": "object"
|
|
1759
|
+
},
|
|
1760
|
+
"esModule": {
|
|
1761
|
+
"type": "boolean",
|
|
1762
|
+
"default": false
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
"default": {
|
|
1766
|
+
"importLoaders": 0,
|
|
1767
|
+
"url": {},
|
|
1768
|
+
"esModule": false,
|
|
1769
|
+
"sourceMap": false
|
|
1770
|
+
},
|
|
1771
|
+
"type": "object"
|
|
1772
|
+
},
|
|
1773
|
+
"cssModules": {
|
|
1774
|
+
"id": "#webpack/loaders/cssModules",
|
|
1775
|
+
"properties": {
|
|
1776
|
+
"importLoaders": {
|
|
1777
|
+
"type": "number",
|
|
1778
|
+
"default": 0
|
|
1779
|
+
},
|
|
1780
|
+
"url": {
|
|
1781
|
+
"id": "#webpack/loaders/cssModules/url",
|
|
1782
|
+
"properties": {
|
|
1783
|
+
"filter": {
|
|
1784
|
+
"type": "function"
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
"default": {},
|
|
1788
|
+
"type": "object"
|
|
1789
|
+
},
|
|
1790
|
+
"esModule": {
|
|
1791
|
+
"type": "boolean",
|
|
1792
|
+
"default": false
|
|
1793
|
+
},
|
|
1794
|
+
"modules": {
|
|
1795
|
+
"id": "#webpack/loaders/cssModules/modules",
|
|
1796
|
+
"properties": {
|
|
1797
|
+
"localIdentName": {
|
|
1798
|
+
"type": "string",
|
|
1799
|
+
"default": "[local]_[hash:base64:5]"
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
"default": {
|
|
1803
|
+
"localIdentName": "[local]_[hash:base64:5]"
|
|
1804
|
+
},
|
|
1805
|
+
"type": "object"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"default": {
|
|
1809
|
+
"importLoaders": 0,
|
|
1810
|
+
"url": {},
|
|
1811
|
+
"esModule": false,
|
|
1812
|
+
"modules": {
|
|
1813
|
+
"localIdentName": "[local]_[hash:base64:5]"
|
|
1814
|
+
},
|
|
1815
|
+
"sourceMap": false
|
|
1816
|
+
},
|
|
1817
|
+
"type": "object"
|
|
1818
|
+
},
|
|
1819
|
+
"less": {
|
|
1820
|
+
"id": "#webpack/loaders/less",
|
|
1821
|
+
"default": {
|
|
1822
|
+
"sourceMap": false
|
|
1823
|
+
},
|
|
1824
|
+
"type": "any"
|
|
1825
|
+
},
|
|
1826
|
+
"sass": {
|
|
1827
|
+
"id": "#webpack/loaders/sass",
|
|
1828
|
+
"properties": {
|
|
1829
|
+
"sassOptions": {
|
|
1830
|
+
"id": "#webpack/loaders/sass/sassOptions",
|
|
1831
|
+
"properties": {
|
|
1832
|
+
"indentedSyntax": {
|
|
1833
|
+
"type": "boolean",
|
|
1834
|
+
"default": true
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
"default": {
|
|
1838
|
+
"indentedSyntax": true
|
|
1839
|
+
},
|
|
1840
|
+
"type": "object"
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
"default": {
|
|
1844
|
+
"sassOptions": {
|
|
1845
|
+
"indentedSyntax": true
|
|
1846
|
+
},
|
|
1847
|
+
"sourceMap": false
|
|
1848
|
+
},
|
|
1849
|
+
"type": "object"
|
|
1850
|
+
},
|
|
1851
|
+
"scss": {
|
|
1852
|
+
"id": "#webpack/loaders/scss",
|
|
1853
|
+
"default": {
|
|
1854
|
+
"sourceMap": false
|
|
1855
|
+
},
|
|
1856
|
+
"type": "any"
|
|
1857
|
+
},
|
|
1858
|
+
"stylus": {
|
|
1859
|
+
"id": "#webpack/loaders/stylus",
|
|
1860
|
+
"default": {
|
|
1861
|
+
"sourceMap": false
|
|
1862
|
+
},
|
|
1863
|
+
"type": "any"
|
|
1864
|
+
},
|
|
1865
|
+
"kduStyle": {
|
|
1866
|
+
"id": "#webpack/loaders/kduStyle",
|
|
1867
|
+
"default": {
|
|
1868
|
+
"sourceMap": false
|
|
1869
|
+
},
|
|
1870
|
+
"type": "any"
|
|
1871
|
+
}
|
|
1872
|
+
},
|
|
1873
|
+
"default": {
|
|
1874
|
+
"file": {
|
|
1875
|
+
"esModule": false
|
|
1876
|
+
},
|
|
1877
|
+
"fontUrl": {
|
|
1878
|
+
"esModule": false,
|
|
1879
|
+
"limit": 1000
|
|
1880
|
+
},
|
|
1881
|
+
"imgUrl": {
|
|
1882
|
+
"esModule": false,
|
|
1883
|
+
"limit": 1000
|
|
1884
|
+
},
|
|
1885
|
+
"pugPlain": {},
|
|
1886
|
+
"kdu": {
|
|
1887
|
+
"productionMode": true,
|
|
1888
|
+
"transformAssetUrls": {
|
|
1889
|
+
"video": "src",
|
|
1890
|
+
"source": "src",
|
|
1891
|
+
"object": "src",
|
|
1892
|
+
"embed": "src"
|
|
1893
|
+
},
|
|
1894
|
+
"compilerOptions": {}
|
|
1895
|
+
},
|
|
1896
|
+
"css": {
|
|
1897
|
+
"importLoaders": 0,
|
|
1898
|
+
"url": {},
|
|
1899
|
+
"esModule": false,
|
|
1900
|
+
"sourceMap": false
|
|
1901
|
+
},
|
|
1902
|
+
"cssModules": {
|
|
1903
|
+
"importLoaders": 0,
|
|
1904
|
+
"url": {},
|
|
1905
|
+
"esModule": false,
|
|
1906
|
+
"modules": {
|
|
1907
|
+
"localIdentName": "[local]_[hash:base64:5]"
|
|
1908
|
+
},
|
|
1909
|
+
"sourceMap": false
|
|
1910
|
+
},
|
|
1911
|
+
"less": {
|
|
1912
|
+
"sourceMap": false
|
|
1913
|
+
},
|
|
1914
|
+
"sass": {
|
|
1915
|
+
"sassOptions": {
|
|
1916
|
+
"indentedSyntax": true
|
|
1917
|
+
},
|
|
1918
|
+
"sourceMap": false
|
|
1919
|
+
},
|
|
1920
|
+
"scss": {
|
|
1921
|
+
"sourceMap": false
|
|
1922
|
+
},
|
|
1923
|
+
"stylus": {
|
|
1924
|
+
"sourceMap": false
|
|
1925
|
+
},
|
|
1926
|
+
"kduStyle": {
|
|
1927
|
+
"sourceMap": false
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"type": "object"
|
|
1931
|
+
},
|
|
1932
|
+
"plugins": {
|
|
1933
|
+
"title": "Add webpack plugins.",
|
|
1934
|
+
"description": "",
|
|
1935
|
+
"tags": [
|
|
1936
|
+
"@example\n```js\nimport webpack from 'webpack'\nimport { version } from './package.json'\n// ...\nplugins: [\n new webpack.DefinePlugin({\n 'process.VERSION': version\n })\n]\n```"
|
|
1937
|
+
],
|
|
1938
|
+
"id": "#webpack/plugins",
|
|
1939
|
+
"default": [],
|
|
1940
|
+
"type": "array",
|
|
1941
|
+
"items": {
|
|
1942
|
+
"type": "any"
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
"terser": {
|
|
1946
|
+
"title": "Terser plugin options.",
|
|
1947
|
+
"description": "Set to false to disable this plugin, or pass an object of options.",
|
|
1948
|
+
"tags": [
|
|
1949
|
+
"@see [terser-webpack-plugin documentation](https://github.com/webpack-contrib/terser-webpack-plugin).",
|
|
1950
|
+
"@note Enabling sourceMap will leave `//# sourceMappingURL` linking comment at\nthe end of each output file if webpack `config.devtool` is set to `source-map`."
|
|
1951
|
+
],
|
|
1952
|
+
"tsType": "false | typeof import('terser-webpack-plugin').BasePluginOptions & typeof import('terser-webpack-plugin').DefinedDefaultMinimizerAndOptions<any>",
|
|
1953
|
+
"markdownType": "false | TerserWebpackPluginBasePluginOptions & TerserWebpackPluginDefinedDefaultMinimizerAndOptions<any>",
|
|
1954
|
+
"id": "#webpack/terser",
|
|
1955
|
+
"default": {},
|
|
1956
|
+
"type": "any"
|
|
1957
|
+
},
|
|
1958
|
+
"aggressiveCodeRemoval": {
|
|
1959
|
+
"title": "Hard-replaces `typeof process`, `typeof window` and `typeof document` to tree-shake bundle.",
|
|
1960
|
+
"description": "",
|
|
1961
|
+
"tags": [],
|
|
1962
|
+
"id": "#webpack/aggressiveCodeRemoval",
|
|
1963
|
+
"default": false,
|
|
1964
|
+
"type": "boolean"
|
|
1965
|
+
},
|
|
1966
|
+
"optimizeCSS": {
|
|
1967
|
+
"title": "OptimizeCSSAssets plugin options.",
|
|
1968
|
+
"description": "Defaults to true when `extractCSS` is enabled.",
|
|
1969
|
+
"tags": [
|
|
1970
|
+
"@see [css-minimizer-webpack-plugin documentation](https://github.com/webpack-contrib/css-minimizer-webpack-plugin)."
|
|
1971
|
+
],
|
|
1972
|
+
"tsType": "false | typeof import('css-minimizer-webpack-plugin').BasePluginOptions & typeof import('css-minimizer-webpack-plugin').DefinedDefaultMinimizerAndOptions<any>",
|
|
1973
|
+
"markdownType": "false | CssMinimizerWebpackPluginBasePluginOptions & CssMinimizerWebpackPluginDefinedDefaultMinimizerAndOptions<any>",
|
|
1974
|
+
"id": "#webpack/optimizeCSS",
|
|
1975
|
+
"default": false,
|
|
1976
|
+
"type": "boolean"
|
|
1977
|
+
},
|
|
1978
|
+
"optimization": {
|
|
1979
|
+
"title": "Configure [webpack optimization](https://webpack.js.org/configuration/optimization/).",
|
|
1980
|
+
"description": "",
|
|
1981
|
+
"tags": [],
|
|
1982
|
+
"tsType": "false | typeof import('webpack').Configuration['optimization']",
|
|
1983
|
+
"markdownType": "false | WebpackConfiguration['optimization']",
|
|
1984
|
+
"id": "#webpack/optimization",
|
|
1985
|
+
"properties": {
|
|
1986
|
+
"runtimeChunk": {
|
|
1987
|
+
"type": "string",
|
|
1988
|
+
"default": "single"
|
|
1989
|
+
},
|
|
1990
|
+
"minimize": {
|
|
1991
|
+
"title": "Set minimize to `false` to disable all minimizers. (It is disabled in development by default).",
|
|
1992
|
+
"description": "",
|
|
1993
|
+
"tags": [],
|
|
1994
|
+
"id": "#webpack/optimization/minimize",
|
|
1995
|
+
"default": true,
|
|
1996
|
+
"type": "boolean"
|
|
1997
|
+
},
|
|
1998
|
+
"minimizer": {
|
|
1999
|
+
"title": "You can set minimizer to a customized array of plugins.",
|
|
2000
|
+
"description": "",
|
|
2001
|
+
"tags": [],
|
|
2002
|
+
"id": "#webpack/optimization/minimizer",
|
|
2003
|
+
"default": {},
|
|
2004
|
+
"type": "any"
|
|
2005
|
+
},
|
|
2006
|
+
"splitChunks": {
|
|
2007
|
+
"id": "#webpack/optimization/splitChunks",
|
|
2008
|
+
"properties": {
|
|
2009
|
+
"chunks": {
|
|
2010
|
+
"type": "string",
|
|
2011
|
+
"default": "all"
|
|
2012
|
+
},
|
|
2013
|
+
"automaticNameDelimiter": {
|
|
2014
|
+
"type": "string",
|
|
2015
|
+
"default": "/"
|
|
2016
|
+
},
|
|
2017
|
+
"cacheGroups": {
|
|
2018
|
+
"id": "#webpack/optimization/splitChunks/cacheGroups",
|
|
2019
|
+
"default": {},
|
|
2020
|
+
"type": "any"
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
"default": {
|
|
2024
|
+
"chunks": "all",
|
|
2025
|
+
"automaticNameDelimiter": "/",
|
|
2026
|
+
"cacheGroups": {}
|
|
2027
|
+
},
|
|
2028
|
+
"type": "object"
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
"default": {
|
|
2032
|
+
"runtimeChunk": "single",
|
|
2033
|
+
"minimize": true,
|
|
2034
|
+
"minimizer": {},
|
|
2035
|
+
"splitChunks": {
|
|
2036
|
+
"chunks": "all",
|
|
2037
|
+
"automaticNameDelimiter": "/",
|
|
2038
|
+
"cacheGroups": {}
|
|
2039
|
+
}
|
|
2040
|
+
},
|
|
2041
|
+
"type": "object"
|
|
2042
|
+
},
|
|
2043
|
+
"postcss": {
|
|
2044
|
+
"title": "Customize PostCSS Loader. Same options as https://github.com/webpack-contrib/postcss-loader#options",
|
|
2045
|
+
"description": "",
|
|
2046
|
+
"tags": [],
|
|
2047
|
+
"id": "#webpack/postcss",
|
|
2048
|
+
"properties": {
|
|
2049
|
+
"execute": {},
|
|
2050
|
+
"postcssOptions": {
|
|
2051
|
+
"id": "#webpack/postcss/postcssOptions",
|
|
2052
|
+
"properties": {
|
|
2053
|
+
"config": {
|
|
2054
|
+
"id": "#webpack/postcss/postcssOptions/config",
|
|
2055
|
+
"default": false,
|
|
2056
|
+
"type": "boolean"
|
|
2057
|
+
},
|
|
2058
|
+
"plugins": {
|
|
2059
|
+
"id": "#webpack/postcss/postcssOptions/plugins",
|
|
2060
|
+
"default": {
|
|
2061
|
+
"postcss-import": {},
|
|
2062
|
+
"postcss-url": {},
|
|
2063
|
+
"autoprefixer": {},
|
|
2064
|
+
"cssnano": true
|
|
2065
|
+
},
|
|
2066
|
+
"type": "object"
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
"default": {
|
|
2070
|
+
"config": false,
|
|
2071
|
+
"plugins": {
|
|
2072
|
+
"postcss-import": {},
|
|
2073
|
+
"postcss-url": {},
|
|
2074
|
+
"autoprefixer": {},
|
|
2075
|
+
"cssnano": true
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"type": "object"
|
|
2079
|
+
},
|
|
2080
|
+
"sourceMap": {},
|
|
2081
|
+
"implementation": {},
|
|
2082
|
+
"order": {
|
|
2083
|
+
"type": "string",
|
|
2084
|
+
"default": ""
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
"default": {
|
|
2088
|
+
"postcssOptions": {
|
|
2089
|
+
"config": false,
|
|
2090
|
+
"plugins": {
|
|
2091
|
+
"postcss-import": {},
|
|
2092
|
+
"postcss-url": {},
|
|
2093
|
+
"autoprefixer": {},
|
|
2094
|
+
"cssnano": true
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
"order": ""
|
|
2098
|
+
},
|
|
2099
|
+
"type": "object"
|
|
2100
|
+
},
|
|
2101
|
+
"devMiddleware": {
|
|
2102
|
+
"title": "See [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) for available options.",
|
|
2103
|
+
"description": "",
|
|
2104
|
+
"tags": [],
|
|
2105
|
+
"tsType": "typeof import('webpack-dev-middleware').Options<typeof import('http').IncomingMessage, typeof import('http').ServerResponse>",
|
|
2106
|
+
"markdownType": "WebpackDevMiddlewareOptions<typeof HttpIncomingMessage, HttpServerResponse>",
|
|
2107
|
+
"id": "#webpack/devMiddleware",
|
|
2108
|
+
"properties": {
|
|
2109
|
+
"stats": {
|
|
2110
|
+
"type": "string",
|
|
2111
|
+
"default": "none"
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
"default": {
|
|
2115
|
+
"stats": "none"
|
|
2116
|
+
},
|
|
2117
|
+
"type": "object"
|
|
2118
|
+
},
|
|
2119
|
+
"hotMiddleware": {
|
|
2120
|
+
"title": "See [webpack-hot-middleware](https://github.com/webpack-contrib/webpack-hot-middleware) for available options.",
|
|
2121
|
+
"description": "",
|
|
2122
|
+
"tags": [],
|
|
2123
|
+
"tsType": "typeof import('webpack-hot-middleware').MiddlewareOptions & { client?: typeof import('webpack-hot-middleware').ClientOptions }",
|
|
2124
|
+
"markdownType": "WebpackHotMiddlewareMiddlewareOptions & { client?: WebpackHotMiddlewareClientOptions }",
|
|
2125
|
+
"id": "#webpack/hotMiddleware",
|
|
2126
|
+
"default": {},
|
|
2127
|
+
"type": "any"
|
|
2128
|
+
},
|
|
2129
|
+
"friendlyErrors": {
|
|
2130
|
+
"title": "Set to `false` to disable the overlay provided by [FriendlyErrorsWebpackPlugin](https://www.npmjs.com/package/@d2js/friendly-errors-webpack-plugin).",
|
|
2131
|
+
"description": "",
|
|
2132
|
+
"tags": [],
|
|
2133
|
+
"id": "#webpack/friendlyErrors",
|
|
2134
|
+
"default": true,
|
|
2135
|
+
"type": "boolean"
|
|
2136
|
+
},
|
|
2137
|
+
"warningIgnoreFilters": {
|
|
2138
|
+
"title": "Filters to hide build warnings.",
|
|
2139
|
+
"description": "",
|
|
2140
|
+
"tags": [],
|
|
2141
|
+
"tsType": "Array<(warn: typeof import('webpack').WebpackError) => boolean>",
|
|
2142
|
+
"markdownType": "Array<(warn: WebpackWebpackError) => boolean>",
|
|
2143
|
+
"id": "#webpack/warningIgnoreFilters",
|
|
2144
|
+
"default": [],
|
|
2145
|
+
"type": "array",
|
|
2146
|
+
"items": {
|
|
2147
|
+
"type": "any"
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
"default": {
|
|
2152
|
+
"analyze": false,
|
|
2153
|
+
"profile": false,
|
|
2154
|
+
"extractCSS": true,
|
|
2155
|
+
"cssSourceMap": false,
|
|
2156
|
+
"serverURLPolyfill": "url",
|
|
2157
|
+
"filenames": {},
|
|
2158
|
+
"loaders": {
|
|
2159
|
+
"file": {
|
|
2160
|
+
"esModule": false
|
|
2161
|
+
},
|
|
2162
|
+
"fontUrl": {
|
|
2163
|
+
"esModule": false,
|
|
2164
|
+
"limit": 1000
|
|
2165
|
+
},
|
|
2166
|
+
"imgUrl": {
|
|
2167
|
+
"esModule": false,
|
|
2168
|
+
"limit": 1000
|
|
2169
|
+
},
|
|
2170
|
+
"pugPlain": {},
|
|
2171
|
+
"kdu": {
|
|
2172
|
+
"productionMode": true,
|
|
2173
|
+
"transformAssetUrls": {
|
|
2174
|
+
"video": "src",
|
|
2175
|
+
"source": "src",
|
|
2176
|
+
"object": "src",
|
|
2177
|
+
"embed": "src"
|
|
2178
|
+
},
|
|
2179
|
+
"compilerOptions": {}
|
|
2180
|
+
},
|
|
2181
|
+
"css": {
|
|
2182
|
+
"importLoaders": 0,
|
|
2183
|
+
"url": {},
|
|
2184
|
+
"esModule": false,
|
|
2185
|
+
"sourceMap": false
|
|
2186
|
+
},
|
|
2187
|
+
"cssModules": {
|
|
2188
|
+
"importLoaders": 0,
|
|
2189
|
+
"url": {},
|
|
2190
|
+
"esModule": false,
|
|
2191
|
+
"modules": {
|
|
2192
|
+
"localIdentName": "[local]_[hash:base64:5]"
|
|
2193
|
+
},
|
|
2194
|
+
"sourceMap": false
|
|
2195
|
+
},
|
|
2196
|
+
"less": {
|
|
2197
|
+
"sourceMap": false
|
|
2198
|
+
},
|
|
2199
|
+
"sass": {
|
|
2200
|
+
"sassOptions": {
|
|
2201
|
+
"indentedSyntax": true
|
|
2202
|
+
},
|
|
2203
|
+
"sourceMap": false
|
|
2204
|
+
},
|
|
2205
|
+
"scss": {
|
|
2206
|
+
"sourceMap": false
|
|
2207
|
+
},
|
|
2208
|
+
"stylus": {
|
|
2209
|
+
"sourceMap": false
|
|
2210
|
+
},
|
|
2211
|
+
"kduStyle": {
|
|
2212
|
+
"sourceMap": false
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"plugins": [],
|
|
2216
|
+
"terser": {},
|
|
2217
|
+
"aggressiveCodeRemoval": false,
|
|
2218
|
+
"optimizeCSS": false,
|
|
2219
|
+
"optimization": {
|
|
2220
|
+
"runtimeChunk": "single",
|
|
2221
|
+
"minimize": true,
|
|
2222
|
+
"minimizer": {},
|
|
2223
|
+
"splitChunks": {
|
|
2224
|
+
"chunks": "all",
|
|
2225
|
+
"automaticNameDelimiter": "/",
|
|
2226
|
+
"cacheGroups": {}
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
"postcss": {
|
|
2230
|
+
"postcssOptions": {
|
|
2231
|
+
"config": false,
|
|
2232
|
+
"plugins": {
|
|
2233
|
+
"postcss-import": {},
|
|
2234
|
+
"postcss-url": {},
|
|
2235
|
+
"autoprefixer": {},
|
|
2236
|
+
"cssnano": true
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
"order": ""
|
|
2240
|
+
},
|
|
2241
|
+
"devMiddleware": {
|
|
2242
|
+
"stats": "none"
|
|
2243
|
+
},
|
|
2244
|
+
"hotMiddleware": {},
|
|
2245
|
+
"friendlyErrors": true,
|
|
2246
|
+
"warningIgnoreFilters": []
|
|
2247
|
+
},
|
|
2248
|
+
"type": "object"
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
"default": {
|
|
2252
|
+
"components": {
|
|
2253
|
+
"dirs": [
|
|
2254
|
+
{
|
|
2255
|
+
"path": "~/components/global",
|
|
2256
|
+
"global": true
|
|
2257
|
+
},
|
|
2258
|
+
"~/components"
|
|
2259
|
+
]
|
|
2260
|
+
},
|
|
2261
|
+
"imports": {
|
|
2262
|
+
"global": false,
|
|
2263
|
+
"dirs": []
|
|
2264
|
+
},
|
|
2265
|
+
"kdu": {
|
|
2266
|
+
"compilerOptions": {}
|
|
2267
|
+
},
|
|
2268
|
+
"app": {
|
|
2269
|
+
"baseURL": "/",
|
|
2270
|
+
"buildAssetsDir": "/_dtwo/",
|
|
2271
|
+
"cdnURL": "",
|
|
2272
|
+
"head": {
|
|
2273
|
+
"meta": [
|
|
2274
|
+
{
|
|
2275
|
+
"name": "viewport",
|
|
2276
|
+
"content": "width=device-width, initial-scale=1"
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"charset": "utf-8"
|
|
2280
|
+
}
|
|
2281
|
+
],
|
|
2282
|
+
"link": [],
|
|
2283
|
+
"style": [],
|
|
2284
|
+
"script": [],
|
|
2285
|
+
"noscript": []
|
|
2286
|
+
},
|
|
2287
|
+
"layoutTransition": false,
|
|
2288
|
+
"pageTransition": false,
|
|
2289
|
+
"keepalive": false,
|
|
2290
|
+
"rootId": "__dtwo",
|
|
2291
|
+
"rootTag": "div"
|
|
2292
|
+
},
|
|
2293
|
+
"plugins": [],
|
|
2294
|
+
"css": [],
|
|
2295
|
+
"builder": "@dtwo/wite-builder",
|
|
2296
|
+
"sourcemap": {
|
|
2297
|
+
"server": true,
|
|
2298
|
+
"client": false
|
|
2299
|
+
},
|
|
2300
|
+
"build": {
|
|
2301
|
+
"transpile": [],
|
|
2302
|
+
"templates": [],
|
|
2303
|
+
"analyze": false
|
|
2304
|
+
},
|
|
2305
|
+
"extends": null,
|
|
2306
|
+
"theme": null,
|
|
2307
|
+
"rootDir": "/<rootDir>",
|
|
2308
|
+
"workspaceDir": "/<rootDir>",
|
|
2309
|
+
"srcDir": "/<rootDir>",
|
|
2310
|
+
"serverDir": "/<rootDir>/server",
|
|
2311
|
+
"buildDir": "/<rootDir>/.dtwo",
|
|
2312
|
+
"modulesDir": [
|
|
2313
|
+
"/<rootDir>/node_modules",
|
|
2314
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
2315
|
+
],
|
|
2316
|
+
"dev": false,
|
|
2317
|
+
"test": false,
|
|
2318
|
+
"debug": false,
|
|
2319
|
+
"ssr": true,
|
|
2320
|
+
"modules": [],
|
|
2321
|
+
"dir": {
|
|
2322
|
+
"assets": "assets",
|
|
2323
|
+
"layouts": "layouts",
|
|
2324
|
+
"middleware": "middleware",
|
|
2325
|
+
"pages": "pages",
|
|
2326
|
+
"plugins": "plugins",
|
|
2327
|
+
"static": "public",
|
|
2328
|
+
"public": "public"
|
|
2329
|
+
},
|
|
2330
|
+
"extensions": [
|
|
2331
|
+
".js",
|
|
2332
|
+
".jsx",
|
|
2333
|
+
".mjs",
|
|
2334
|
+
".ts",
|
|
2335
|
+
".tsx",
|
|
2336
|
+
".kdu"
|
|
2337
|
+
],
|
|
2338
|
+
"alias": {
|
|
2339
|
+
"~~": "/<rootDir>",
|
|
2340
|
+
"@@": "/<rootDir>",
|
|
2341
|
+
"~": "/<rootDir>",
|
|
2342
|
+
"@": "/<rootDir>",
|
|
2343
|
+
"assets": "/<rootDir>/assets",
|
|
2344
|
+
"public": "/<rootDir>/public"
|
|
2345
|
+
},
|
|
2346
|
+
"ignoreOptions": {},
|
|
2347
|
+
"ignorePrefix": "-",
|
|
2348
|
+
"ignore": [
|
|
2349
|
+
"**/*.stories.{js,ts,jsx,tsx}",
|
|
2350
|
+
"**/*.{spec,test}.{js,ts,jsx,tsx}",
|
|
2351
|
+
"**/*.d.ts",
|
|
2352
|
+
".output",
|
|
2353
|
+
"**/-*.*"
|
|
2354
|
+
],
|
|
2355
|
+
"watchers": {
|
|
2356
|
+
"rewatchOnRawEvents": {},
|
|
2357
|
+
"webpack": {
|
|
2358
|
+
"aggregateTimeout": 1000
|
|
2359
|
+
},
|
|
2360
|
+
"chokidar": {
|
|
2361
|
+
"ignoreInitial": true
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
"hooks": null,
|
|
2365
|
+
"runtimeConfig": {
|
|
2366
|
+
"app": {
|
|
2367
|
+
"baseURL": "/",
|
|
2368
|
+
"buildAssetsDir": "/_dtwo/",
|
|
2369
|
+
"cdnURL": ""
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
"appConfig": {},
|
|
2373
|
+
"devServer": {
|
|
2374
|
+
"https": false,
|
|
2375
|
+
"port": 3000,
|
|
2376
|
+
"host": "localhost",
|
|
2377
|
+
"url": "http://localhost:3000"
|
|
2378
|
+
},
|
|
2379
|
+
"experimental": {
|
|
2380
|
+
"asyncEntry": false,
|
|
2381
|
+
"reactivityTransform": false,
|
|
2382
|
+
"externalKdu": true,
|
|
2383
|
+
"treeshakeClientOnly": true,
|
|
2384
|
+
"witeNode": true,
|
|
2385
|
+
"witeServerDynamicImports": true,
|
|
2386
|
+
"inlineSSRStyles": true,
|
|
2387
|
+
"noScripts": false,
|
|
2388
|
+
"payloadExtraction": false,
|
|
2389
|
+
"crossOriginPrefetch": false,
|
|
2390
|
+
"writeEarlyHints": false
|
|
2391
|
+
},
|
|
2392
|
+
"generate": {
|
|
2393
|
+
"routes": [],
|
|
2394
|
+
"exclude": []
|
|
2395
|
+
},
|
|
2396
|
+
"_majorVersion": 3,
|
|
2397
|
+
"_legacyGenerate": false,
|
|
2398
|
+
"_start": false,
|
|
2399
|
+
"_build": false,
|
|
2400
|
+
"_generate": false,
|
|
2401
|
+
"_prepare": false,
|
|
2402
|
+
"_cli": false,
|
|
2403
|
+
"_requiredModules": {},
|
|
2404
|
+
"_dtwoConfigFile": {},
|
|
2405
|
+
"_dtwoConfigFiles": [],
|
|
2406
|
+
"appDir": "",
|
|
2407
|
+
"_installedModules": [],
|
|
2408
|
+
"_modules": [],
|
|
2409
|
+
"hole": {
|
|
2410
|
+
"routeRules": {}
|
|
2411
|
+
},
|
|
2412
|
+
"routeRules": {},
|
|
2413
|
+
"serverHandlers": [],
|
|
2414
|
+
"devServerHandlers": [],
|
|
2415
|
+
"postcss": {
|
|
2416
|
+
"config": false,
|
|
2417
|
+
"plugins": {
|
|
2418
|
+
"postcss-import": {},
|
|
2419
|
+
"postcss-url": {},
|
|
2420
|
+
"autoprefixer": {},
|
|
2421
|
+
"cssnano": true
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
"router": {
|
|
2425
|
+
"options": {}
|
|
2426
|
+
},
|
|
2427
|
+
"typescript": {
|
|
2428
|
+
"strict": true,
|
|
2429
|
+
"includeWorkspace": false,
|
|
2430
|
+
"typeCheck": false,
|
|
2431
|
+
"tsConfig": {},
|
|
2432
|
+
"shim": true
|
|
2433
|
+
},
|
|
2434
|
+
"wite": {
|
|
2435
|
+
"base": "/",
|
|
2436
|
+
"root": "/<rootDir>",
|
|
2437
|
+
"mode": "production",
|
|
2438
|
+
"logLevel": "warn",
|
|
2439
|
+
"define": {
|
|
2440
|
+
"process.dev": false
|
|
2441
|
+
},
|
|
2442
|
+
"resolve": {
|
|
2443
|
+
"extensions": [
|
|
2444
|
+
".mjs",
|
|
2445
|
+
".js",
|
|
2446
|
+
".ts",
|
|
2447
|
+
".jsx",
|
|
2448
|
+
".tsx",
|
|
2449
|
+
".json",
|
|
2450
|
+
".kdu"
|
|
2451
|
+
]
|
|
2452
|
+
},
|
|
2453
|
+
"publicDir": "/<rootDir>/public",
|
|
2454
|
+
"kdu": {
|
|
2455
|
+
"isProduction": true,
|
|
2456
|
+
"template": {
|
|
2457
|
+
"compilerOptions": {}
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
"optimizeDeps": {
|
|
2461
|
+
"exclude": [
|
|
2462
|
+
"kdu-demi"
|
|
2463
|
+
]
|
|
2464
|
+
},
|
|
2465
|
+
"esbuild": {
|
|
2466
|
+
"jsxFactory": "h",
|
|
2467
|
+
"jsxFragment": "Fragment",
|
|
2468
|
+
"tsconfigRaw": "{}"
|
|
2469
|
+
},
|
|
2470
|
+
"clearScreen": false,
|
|
2471
|
+
"build": {
|
|
2472
|
+
"assetsDir": "_dtwo/",
|
|
2473
|
+
"emptyOutDir": false
|
|
2474
|
+
},
|
|
2475
|
+
"server": {
|
|
2476
|
+
"fs": {
|
|
2477
|
+
"allow": [
|
|
2478
|
+
"/<rootDir>/.dtwo",
|
|
2479
|
+
"/<rootDir>",
|
|
2480
|
+
"/<rootDir>",
|
|
2481
|
+
"/<rootDir>",
|
|
2482
|
+
"/<rootDir>/node_modules",
|
|
2483
|
+
"D:/Workspace/ORGs/d2js/dtwo/packages/schema/node_modules"
|
|
2484
|
+
]
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2488
|
+
"webpack": {
|
|
2489
|
+
"analyze": false,
|
|
2490
|
+
"profile": false,
|
|
2491
|
+
"extractCSS": true,
|
|
2492
|
+
"cssSourceMap": false,
|
|
2493
|
+
"serverURLPolyfill": "url",
|
|
2494
|
+
"filenames": {},
|
|
2495
|
+
"loaders": {
|
|
2496
|
+
"file": {
|
|
2497
|
+
"esModule": false
|
|
2498
|
+
},
|
|
2499
|
+
"fontUrl": {
|
|
2500
|
+
"esModule": false,
|
|
2501
|
+
"limit": 1000
|
|
2502
|
+
},
|
|
2503
|
+
"imgUrl": {
|
|
2504
|
+
"esModule": false,
|
|
2505
|
+
"limit": 1000
|
|
2506
|
+
},
|
|
2507
|
+
"pugPlain": {},
|
|
2508
|
+
"kdu": {
|
|
2509
|
+
"productionMode": true,
|
|
2510
|
+
"transformAssetUrls": {
|
|
2511
|
+
"video": "src",
|
|
2512
|
+
"source": "src",
|
|
2513
|
+
"object": "src",
|
|
2514
|
+
"embed": "src"
|
|
2515
|
+
},
|
|
2516
|
+
"compilerOptions": {}
|
|
2517
|
+
},
|
|
2518
|
+
"css": {
|
|
2519
|
+
"importLoaders": 0,
|
|
2520
|
+
"url": {},
|
|
2521
|
+
"esModule": false,
|
|
2522
|
+
"sourceMap": false
|
|
2523
|
+
},
|
|
2524
|
+
"cssModules": {
|
|
2525
|
+
"importLoaders": 0,
|
|
2526
|
+
"url": {},
|
|
2527
|
+
"esModule": false,
|
|
2528
|
+
"modules": {
|
|
2529
|
+
"localIdentName": "[local]_[hash:base64:5]"
|
|
2530
|
+
},
|
|
2531
|
+
"sourceMap": false
|
|
2532
|
+
},
|
|
2533
|
+
"less": {
|
|
2534
|
+
"sourceMap": false
|
|
2535
|
+
},
|
|
2536
|
+
"sass": {
|
|
2537
|
+
"sassOptions": {
|
|
2538
|
+
"indentedSyntax": true
|
|
2539
|
+
},
|
|
2540
|
+
"sourceMap": false
|
|
2541
|
+
},
|
|
2542
|
+
"scss": {
|
|
2543
|
+
"sourceMap": false
|
|
2544
|
+
},
|
|
2545
|
+
"stylus": {
|
|
2546
|
+
"sourceMap": false
|
|
2547
|
+
},
|
|
2548
|
+
"kduStyle": {
|
|
2549
|
+
"sourceMap": false
|
|
2550
|
+
}
|
|
2551
|
+
},
|
|
2552
|
+
"plugins": [],
|
|
2553
|
+
"terser": {},
|
|
2554
|
+
"aggressiveCodeRemoval": false,
|
|
2555
|
+
"optimizeCSS": false,
|
|
2556
|
+
"optimization": {
|
|
2557
|
+
"runtimeChunk": "single",
|
|
2558
|
+
"minimize": true,
|
|
2559
|
+
"minimizer": {},
|
|
2560
|
+
"splitChunks": {
|
|
2561
|
+
"chunks": "all",
|
|
2562
|
+
"automaticNameDelimiter": "/",
|
|
2563
|
+
"cacheGroups": {}
|
|
2564
|
+
}
|
|
2565
|
+
},
|
|
2566
|
+
"postcss": {
|
|
2567
|
+
"postcssOptions": {
|
|
2568
|
+
"config": false,
|
|
2569
|
+
"plugins": {
|
|
2570
|
+
"postcss-import": {},
|
|
2571
|
+
"postcss-url": {},
|
|
2572
|
+
"autoprefixer": {},
|
|
2573
|
+
"cssnano": true
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
2576
|
+
"order": ""
|
|
2577
|
+
},
|
|
2578
|
+
"devMiddleware": {
|
|
2579
|
+
"stats": "none"
|
|
2580
|
+
},
|
|
2581
|
+
"hotMiddleware": {},
|
|
2582
|
+
"friendlyErrors": true,
|
|
2583
|
+
"warningIgnoreFilters": []
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
"type": "object"
|
|
2587
|
+
}
|