piral-cli
Version:
The standard CLI for creating and building a Piral instance or a Pilet.
19 lines (18 loc) • 1.09 kB
TypeScript
import { ForceOverwrite } from './enums';
import { Framework, SourceLanguage } from '../types';
export declare function getPiralScaffoldData(language: SourceLanguage, root: string, app: string, packageName: Framework, variables: Record<string, string>): {
readonly root: string;
readonly src: string;
readonly language: SourceLanguage;
readonly packageName: Framework;
readonly reactVersion: number;
readonly reactRouterVersion: number;
};
export declare function scaffoldPiralSourceFiles(template: string, registry: string, data: ReturnType<typeof getPiralScaffoldData>, forceOverwrite: ForceOverwrite): Promise<void>;
export declare function getPiletScaffoldData(language: SourceLanguage, root: string, sourceName: string, variables: Record<string, string>): {
readonly root: string;
readonly src: string;
readonly language: SourceLanguage;
readonly sourceName: string;
};
export declare function scaffoldPiletSourceFiles(template: string, registry: string, data: ReturnType<typeof getPiletScaffoldData>, forceOverwrite: ForceOverwrite): Promise<void>;