UNPKG

create-vhs

Version:

Create a VHS monorepo with one command.

53 lines (52 loc) 1.26 kB
export interface ProjectOptions { projectName: string; template: TemplateType; packageManager: PackageManagerType; skipInstall: boolean; useNpm?: boolean; useYarn?: boolean; usePnpm?: boolean; } export type TemplateType = "basic" | "mini-app"; export type PackageManagerType = "bun" | "npm" | "yarn" | "pnpm"; export interface TemplateVariable { [key: string]: string | boolean | number; } export interface TemplateConfig { name: string; description: string; source: string; } export interface CLIOptions { template?: TemplateType; skipInstall?: boolean; useNpm?: boolean; useYarn?: boolean; usePnpm?: boolean; } export interface PackageJson { name: string; version: string; description?: string; scripts?: Record<string, string>; dependencies?: Record<string, string>; devDependencies?: Record<string, string>; workspaces?: string[] | { packages: string[]; }; repository?: { type: string; url: string; }; bugs?: { url: string; }; homepage?: string; [key: string]: unknown; } export interface SpinnerStep { text: string; action: () => Promise<void>; successText?: string; failText?: string; }