Skip to content

Commit

Permalink
feat: add module options docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jan 17, 2023
1 parent aaa574d commit 407f1ee
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,80 @@ const components: AddComponentOptions[] = [
filePath: '@gits-id/tooltip/src/VTooltip.vue',
},
];

export interface ModuleOptions {
/**
* Determine whether to load the css bundle.
*
* @default false
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* css: true
* })
*/
css?: boolean;
/**
* Determine whether to load the sass bundle.
*
* @default false
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* sass: true
* })
*/
sass?: boolean;
/**
* Determine whether to auto-imports the components.
*
* @default true
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* components: true
* })
*/
components?: boolean;
/**
* Determine whether to transpile dependencies.
*
* @default true
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* transpileDeps: true
* })
*/
transpileDeps?: boolean;
/**
* Determine whether to load floating vue styles.
*
* @default true
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* loadFloatingVueStyles: true
* })
*/
loadFloatingVueStyles?: boolean;
/**
* Determine whether to load default styles.
* Only works when `css` and `scss` is `false`.
*
* @default true
* @example
* // nuxt.config.ts
* export default defineConfig({
* gitsUi: {
* loadDefaultStyles: false
* })
*/
loadDefaultStyles?: boolean;
}

Expand Down

0 comments on commit 407f1ee

Please sign in to comment.