@dtwo/schema 3.0.0-rc.14 → 3.1.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -2
- package/dist/index.d.ts +1193 -1019
- package/dist/index.mjs +945 -5
- package/package.json +23 -22
- package/schema/config.d.ts +1168 -1012
- package/schema/config.defaults.json +6 -4
- package/schema/config.md +22 -13
- package/schema/config.schema.json +117 -64
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"base": "/",
|
|
5
5
|
"root": "/<rootDir>",
|
|
6
6
|
"mode": "production",
|
|
7
|
-
"logLevel": "
|
|
7
|
+
"logLevel": "info",
|
|
8
8
|
"define": {
|
|
9
9
|
"process.dev": false
|
|
10
10
|
},
|
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
},
|
|
168
168
|
"hooks": null,
|
|
169
169
|
"runtimeConfig": {
|
|
170
|
+
"public": {},
|
|
170
171
|
"app": {
|
|
171
172
|
"baseURL": "/",
|
|
172
173
|
"buildAssetsDir": "/_dtwo/",
|
|
@@ -191,7 +192,9 @@
|
|
|
191
192
|
"noScripts": false,
|
|
192
193
|
"payloadExtraction": false,
|
|
193
194
|
"crossOriginPrefetch": false,
|
|
194
|
-
"writeEarlyHints": false
|
|
195
|
+
"writeEarlyHints": false,
|
|
196
|
+
"componentIslands": false,
|
|
197
|
+
"configSchema": false
|
|
195
198
|
},
|
|
196
199
|
"generate": {
|
|
197
200
|
"routes": [],
|
|
@@ -217,7 +220,6 @@
|
|
|
217
220
|
"serverHandlers": [],
|
|
218
221
|
"devServerHandlers": [],
|
|
219
222
|
"postcss": {
|
|
220
|
-
"config": false,
|
|
221
223
|
"plugins": {
|
|
222
224
|
"postcss-import": {},
|
|
223
225
|
"postcss-url": {},
|
|
@@ -315,7 +317,7 @@
|
|
|
315
317
|
},
|
|
316
318
|
"postcss": {
|
|
317
319
|
"postcssOptions": {
|
|
318
|
-
"config":
|
|
320
|
+
"config": {},
|
|
319
321
|
"plugins": {
|
|
320
322
|
"postcss-import": {},
|
|
321
323
|
"postcss-url": {},
|
package/schema/config.md
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
- **Type**: `array`
|
|
14
14
|
- **Default**: `[]`
|
|
15
15
|
|
|
16
|
+
> An array of custom directories that will be auto-imported. Note that this option will not override the default directories (~/composables, ~/utils).
|
|
17
|
+
|
|
16
18
|
|
|
17
19
|
# `pages`
|
|
18
20
|
- **Type**: `boolean`
|
|
@@ -145,7 +147,7 @@ Dtwo will automatically guess the file type by its extension and use the appropr
|
|
|
145
147
|
# `build`
|
|
146
148
|
|
|
147
149
|
## `transpile`
|
|
148
|
-
- **Type**: `Array<string | RegExp |
|
|
150
|
+
- **Type**: `Array<string | RegExp | ((ctx: { isClient?: boolean; isServer?: boolean; isDev: boolean }) => string | RegExp | false)>`
|
|
149
151
|
- **Default**: `[]`
|
|
150
152
|
|
|
151
153
|
> 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.
|
|
@@ -541,6 +543,20 @@ You can also pass a function that receives the path of a Kdu component and retur
|
|
|
541
543
|
> Write early hints when using node server.
|
|
542
544
|
|
|
543
545
|
|
|
546
|
+
## `componentIslands`
|
|
547
|
+
- **Type**: `boolean`
|
|
548
|
+
- **Default**: `false`
|
|
549
|
+
|
|
550
|
+
> Experimental component islands support with <DtwoIsland> and .island.kdu files.
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
## `configSchema`
|
|
554
|
+
- **Type**: `boolean`
|
|
555
|
+
- **Default**: `false`
|
|
556
|
+
|
|
557
|
+
> Enable experimental config schema support
|
|
558
|
+
|
|
559
|
+
|
|
544
560
|
# `generate`
|
|
545
561
|
|
|
546
562
|
## `routes`
|
|
@@ -551,14 +567,14 @@ You can also pass a function that receives the path of a Kdu component and retur
|
|
|
551
567
|
|
|
552
568
|
|
|
553
569
|
If you are using the crawler, this will be only the starting point for route generation. This is often necessary when using dynamic routes.
|
|
554
|
-
It
|
|
570
|
+
It is preferred to use `hole.prerender.routes`.
|
|
555
571
|
|
|
556
572
|
|
|
557
573
|
## `exclude`
|
|
558
574
|
- **Type**: `array`
|
|
559
575
|
- **Default**: `[]`
|
|
560
576
|
|
|
561
|
-
>
|
|
577
|
+
> This option is no longer used. Instead, use `hole.prerender.ignore`.
|
|
562
578
|
|
|
563
579
|
|
|
564
580
|
# `_majorVersion`
|
|
@@ -656,13 +672,6 @@ Each handler accepts the following options: - handler: The path to the file defi
|
|
|
656
672
|
|
|
657
673
|
# `postcss`
|
|
658
674
|
|
|
659
|
-
## `config`
|
|
660
|
-
- **Type**: `boolean`
|
|
661
|
-
- **Default**: `false`
|
|
662
|
-
|
|
663
|
-
> Path to postcss config file.
|
|
664
|
-
|
|
665
|
-
|
|
666
675
|
## `plugins`
|
|
667
676
|
|
|
668
677
|
### `postcss-import`
|
|
@@ -756,7 +765,7 @@ We recommend instead either enabling [**Take Over Mode**](https://kdu-js.web.app
|
|
|
756
765
|
|
|
757
766
|
## `logLevel`
|
|
758
767
|
- **Type**: `string`
|
|
759
|
-
- **Default**: `"
|
|
768
|
+
- **Default**: `"info"`
|
|
760
769
|
|
|
761
770
|
|
|
762
771
|
## `define`
|
|
@@ -1172,8 +1181,8 @@ Defaults to true when `extractCSS` is enabled.
|
|
|
1172
1181
|
### `postcssOptions`
|
|
1173
1182
|
|
|
1174
1183
|
#### `config`
|
|
1175
|
-
- **Type**: `
|
|
1176
|
-
- **Default**: `
|
|
1184
|
+
- **Type**: `any`
|
|
1185
|
+
- **Default**: `{}`
|
|
1177
1186
|
|
|
1178
1187
|
|
|
1179
1188
|
#### `plugins`
|