setup-next-project
Version:
CLI to quickly create a pre-configured Next.js project with modular components and features
32 lines • 961 B
TypeScript
export interface Template {
id: string;
name: string;
description: string;
source: string;
type: "github" | "local" | "url" | "builtin";
}
export interface TemplateConfig {
name: string;
description: string;
version?: string;
author?: string;
tags?: string[];
dependencies?: Record<string, string>;
}
/**
* Récupère un template depuis sa source
*/
export declare function fetchTemplate(source: string, tempDir: string): Promise<TemplateConfig | null>;
/**
* Obtient tous les templates disponibles (built-in + personnalisés)
*/
export declare function getAvailableTemplates(): Promise<Template[]>;
/**
* Trouve un template par son ID
*/
export declare function getTemplate(templateId: string): Promise<Template | null>;
/**
* Ajoute un nouveau template personnalisé
*/
export declare function addCustomTemplate(template: Omit<Template, "type">): Promise<void>;
//# sourceMappingURL=remoteTemplates.d.ts.map