UNPKG

express-hale

Version:

🚀 Interactive Express.js scaffold CLI with comprehensive error handling, TypeScript/JavaScript, database integrations, Git Flow, and development tools

52 lines • 1.32 kB
export interface ProjectConfig { language: 'typescript' | 'javascript'; databases: Array<'mysql' | 'mongodb' | 'redis'>; packageManager: 'npm' | 'yarn' | 'pnpm'; eslint: boolean; prettier: boolean; testing: 'jest' | 'mocha' | 'none'; docker: boolean; gitInit: boolean; gitFlow: boolean; errorHandling?: boolean; } export interface DatabaseConfig { mysql?: { host: string; port: number; database: string; username: string; password: string; }; mongodb?: { uri: string; database: string; }; redis?: { host: string; port: number; password?: string; }; } export interface TemplateData { projectName: string; config: ProjectConfig; dependencies: string[]; devDependencies: string[]; scripts: Record<string, string>; } export interface ErrorHandlingConfig { enableGlobalHandling: boolean; enableCircuitBreaker: boolean; enableRetry: boolean; logLevel: 'error' | 'warn' | 'info' | 'debug'; logFormat: 'json' | 'text'; } export interface ServiceConfig { name: string; version: string; environment: 'development' | 'staging' | 'production'; port: number; errorHandling: ErrorHandlingConfig; } //# sourceMappingURL=types.d.ts.map