template-syncer
Version:
智能模板同步工具 - 让你的项目与模板仓库保持同步,支持智能合并、差异对比和交互式更新
54 lines • 1.32 kB
TypeScript
export interface FileConfig {
path: string;
fullPath?: string;
type: FileType;
category: string;
description?: string;
selected: boolean;
exists?: boolean;
isNew?: boolean;
status?: 'new' | 'modified' | 'unchanged';
templatePath?: string;
currentPath?: string;
icon?: string;
}
export type FileType = 'js' | 'json' | 'yaml' | 'text' | 'vue' | 'react' | 'angular' | 'svelte' | 'css' | 'image' | 'config';
export interface TemplateSyncerOptions {
tempDir?: string;
templateRepo?: string;
branch?: string;
verbose?: boolean;
filesToProcess?: FileConfig[];
}
export interface FileTypeConfig {
type: FileType;
category: string;
icon: string;
}
export interface ProcessResult {
applied: boolean;
message: string;
}
export interface BatchResults {
success: string[];
skipped: string[];
failed: Array<{
path: string;
error: string;
}>;
}
export interface Recommendation {
priority: 'high' | 'medium' | 'low';
title: string;
description: string;
impact: string;
files: FileConfig[];
}
export interface SyncConfig {
templateRepo?: string;
branch?: string;
filesToProcess?: FileConfig[];
ignorePatterns?: string[];
[key: string]: any;
}
//# sourceMappingURL=types.d.ts.map