makelabs
Version:
Component tagging toolkit for visual editing
50 lines (48 loc) • 1.16 kB
TypeScript
interface MakeLabsConfig {
/**
* File extensions to process
* @default ['.jsx', '.tsx']
*/
include?: string[];
/**
* Elements to exclude from tagging
* @default ['Fragment', 'React.Fragment']
*/
excludeElements?: string[];
/**
* Whether to exclude Three.js Fiber elements
* @default true
*/
excludeThreeFiber?: boolean;
/**
* Whether to exclude Drei elements
* @default true
*/
excludeDrei?: boolean;
/**
* Custom element names to exclude
* @default []
*/
customExcludes?: string[];
/**
* Whether to generate Tailwind config JSON
* @default false
*/
generateTailwindConfig?: boolean;
/**
* Path to Tailwind config file
* @default './tailwind.config.ts'
*/
tailwindConfigPath?: string;
/**
* Output path for Tailwind JSON config
* @default './src/tailwind.config.ml.json'
*/
tailwindOutputPath?: string;
}
interface ComponentStats {
totalFiles: number;
processedFiles: number;
totalElements: number;
}
export type { ComponentStats as C, MakeLabsConfig as M };