UNPKG

@re-shell/cli

Version:

Full-stack development platform uniting microservices and microfrontends. Build complete applications with .NET (ASP.NET Core Web API, Minimal API), Java (Spring Boot, Quarkus, Micronaut, Vert.x), Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Dja

32 lines (31 loc) 977 B
import { FrameworkConfig } from '../utils/framework'; export interface TemplateContext { name: string; normalizedName: string; framework: string; hasTypeScript: boolean; port: string; route?: string; org: string; team?: string; description: string; packageManager: string; } export interface TemplateFile { path: string; content: string; executable?: boolean; } export declare abstract class BaseTemplate { protected framework: FrameworkConfig; protected context: TemplateContext; constructor(framework: FrameworkConfig, context: TemplateContext); abstract generateFiles(): Promise<TemplateFile[]>; protected generatePackageJson(): any; protected generateViteConfig(): string; protected getExternalDependencies(): string[]; protected getGlobalMappings(): string; protected generateTsConfig(): string; protected generateEslintConfig(): string; protected generateReadme(): string; }