2022-08-26 15:47:29 +00:00
|
|
|
import { defineUntypedSchema } from 'untyped'
|
|
|
|
|
|
|
|
export default defineUntypedSchema({
|
2021-11-19 12:22:27 +00:00
|
|
|
/**
|
|
|
|
* Configure Nuxt component auto-registration.
|
|
|
|
*
|
|
|
|
* Any components in the directories configured here can be used throughout your
|
|
|
|
* pages, layouts (and other components) without needing to explicitly import them.
|
|
|
|
*
|
2022-12-19 11:50:01 +00:00
|
|
|
* @see https://nuxt.com/docs/guide/directory-structure/components
|
2021-11-19 12:22:27 +00:00
|
|
|
* @type {boolean | typeof import('../src/types/components').ComponentsOptions | typeof import('../src/types/components').ComponentsOptions['dirs']}
|
|
|
|
*/
|
|
|
|
components: {
|
2022-09-12 18:22:41 +00:00
|
|
|
$resolve: (val) => {
|
2022-02-07 20:48:25 +00:00
|
|
|
if (Array.isArray(val)) {
|
|
|
|
return { dirs: val }
|
2021-11-19 12:22:27 +00:00
|
|
|
}
|
|
|
|
if (val === undefined || val === true) {
|
2022-07-27 13:05:34 +00:00
|
|
|
return { dirs: [{ path: '~/components/global', global: true }, '~/components'] }
|
2021-11-19 12:22:27 +00:00
|
|
|
}
|
|
|
|
return val
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configure how Nuxt auto-imports composables into your application.
|
|
|
|
*
|
2022-12-19 11:50:01 +00:00
|
|
|
* @see [Nuxt 3 documentation](https://nuxt.com/docs/guide/directory-structure/composables)
|
2022-08-23 14:22:11 +00:00
|
|
|
* @type {typeof import('../src/types/imports').ImportsOptions}
|
2021-11-19 12:22:27 +00:00
|
|
|
*/
|
2022-08-23 14:22:11 +00:00
|
|
|
imports: {
|
2021-11-19 12:22:27 +00:00
|
|
|
global: false,
|
2022-11-28 11:00:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An array of custom directories that will be auto-imported.
|
|
|
|
* Note that this option will not override the default directories (~/composables, ~/utils).
|
|
|
|
* @example
|
|
|
|
* ```js
|
|
|
|
* imports: {
|
|
|
|
* // Auto-import pinia stores defined in `~/stores`
|
|
|
|
* dirs: ['stores']
|
|
|
|
* }
|
|
|
|
* ```
|
|
|
|
*/
|
2021-11-19 12:22:27 +00:00
|
|
|
dirs: []
|
|
|
|
},
|
2022-04-13 17:18:51 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether to use the vue-router integration in Nuxt 3. If you do not provide a value it will be
|
|
|
|
* enabled if you have a `pages/` directory in your source folder.
|
|
|
|
*
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
2022-04-20 18:25:09 +00:00
|
|
|
pages: undefined,
|
|
|
|
|
|
|
|
/**
|
2022-08-07 09:02:31 +00:00
|
|
|
* Manually disable nuxt telemetry.
|
2022-04-20 18:25:09 +00:00
|
|
|
*
|
|
|
|
* @see [Nuxt Telemetry](https://github.com/nuxt/telemetry) for more information.
|
|
|
|
*
|
|
|
|
* @type {boolean}
|
|
|
|
*/
|
|
|
|
telemetry: undefined
|
2022-08-26 15:47:29 +00:00
|
|
|
})
|