// NOTE: This file is generated by the templates/template.rb script and should not // be modified manually. See /home/runner/work/herb/herb/templates/javascript/packages/core/src/config.ts.erb export type Framework = "ruby" | "actionview" | "hanami" | "sinatra" export type TemplateEngine = "erubi" | "erb" | "herb" export const VALID_FRAMEWORKS: readonly Framework[] = ["ruby", "actionview", "hanami", "sinatra"] as const export const VALID_TEMPLATE_ENGINES: readonly TemplateEngine[] = ["erubi", "erb", "herb"] as const export const DEFAULT_FRAMEWORK: Framework = "ruby" export const DEFAULT_TEMPLATE_ENGINE: TemplateEngine = "erubi" export interface HerbConfig { framework: Framework templateEngine: TemplateEngine } export const DEFAULT_CONFIG: HerbConfig = { framework: DEFAULT_FRAMEWORK, templateEngine: DEFAULT_TEMPLATE_ENGINE, } export function isValidFramework(value: string): value is Framework { return (VALID_FRAMEWORKS as readonly string[]).includes(value) } export function isValidTemplateEngine(value: string): value is TemplateEngine { return (VALID_TEMPLATE_ENGINES as readonly string[]).includes(value) }