UNPKG

@fewer/cli

Version:

The CLI to scaffold and perform operations for Fewer.

16 lines (15 loc) 922 B
export declare function ensureProject(warn: (message: string) => void, error: (message: string, config: object) => void): Promise<void>; export declare function hasDependency(dep: string): boolean; export declare function installPackages(warn: Function, ...packages: string[]): Promise<void>; export declare function prompt(options: { type: string; message: string; choices?: string[]; default?: string | boolean; }): Promise<any>; export declare function createDirectory(directory: string): Promise<void>; export declare function createFileWithContents(fileName: string, contents: string): Promise<void>; export declare function createFile(template: string, fileName: string, data: object, cjs?: boolean): Promise<void>; export declare function getMigrations(): Promise<string[]>; export declare function resolve(from: string, to: string): string; export declare function toCJS(contents: string): string;