@lcap/builder
Version:
lcap builder utils
11 lines (10 loc) • 587 B
TypeScript
import prompts from 'prompts';
import { ProjectMetaInfo } from '../utils/project';
export interface CreateLogicOptions {
name: string;
title: string;
type: 'pc' | 'h5' | 'both';
}
export declare function getCreateLogicOptions(rootPath: string, metaInfo: ProjectMetaInfo): Promise<prompts.Answers<"title" | "name" | "type"> | null>;
export declare function createLogic(rootPath: string, metaInfo: ProjectMetaInfo, options: CreateLogicOptions): Promise<void>;
export declare function executeCreateLogic(rootPath: string, metaInfo: ProjectMetaInfo, prompt: any): Promise<void>;