import { Plugin } from '../types.js'; /** * EJS Discovery/Preprocessor Plugin (Default Plugin) * This plugin processes EJS templates in files before they are parsed during discovery * This allows dynamic config files with templating like <%= framework %> in include paths * * This plugin is automatically included in all Combino instances, so users don't need to * explicitly specify it in their plugin list. * * The plugin automatically targets the config file name being used (e.g., 'combino.json', 'template.json') * based on the configFileName provided in the context. * * Example usage: * ```javascript * // No need to explicitly include this plugin - it's automatic! * const combino = new Combino(); * await combino.build({ * outputDir: './output', * include: ['./templates'], * data: { framework: 'react' } * }); * * // Config files with EJS syntax are automatically processed: * // combino.json: * // { * // "include": ["frameworks/<%= framework %>"] * // } * ``` */ export default function plugin(options?: any): Plugin;