@lcap/builder
Version:
lcap builder utils
16 lines (15 loc) • 784 B
TypeScript
import { type ProjectMetaInfo } from '../utils/project';
export interface CreateComponentOptions {
name: string;
title: string;
type: 'pc' | 'h5' | 'both';
overload: boolean;
baseComponentName?: string;
fork?: boolean;
prefix?: string;
}
export declare const COMPONENTS_FOLDER = "src/components";
export declare function getCreateComponentOptions(rootPath: string, metaInfo: ProjectMetaInfo): Promise<CreateComponentOptions | null>;
export declare function getTagName(framework: string, name: string): string;
export declare function createComponent(rootPath: string, metaInfo: ProjectMetaInfo, options: CreateComponentOptions): void;
export declare function executeCreateComponent(rootPath: string, metaInfo: ProjectMetaInfo, prompt: any): Promise<void>;