UNPKG

@vladimirdukelic/revolutionary-ui-factory

Version:

Revolutionary UI Factory System v2 - Generate ANY UI component for ANY framework with 60-95% code reduction

62 lines (61 loc) 1.52 kB
/** * Revolutionary UI Factory - Package Installer * Handles package installation, updates, and configuration */ import { WizardResult } from './setup-wizard'; export interface InstallOptions { dryRun: boolean; verbose: boolean; force: boolean; skipConfigFiles: boolean; packageManager: 'npm' | 'yarn' | 'pnpm' | 'bun'; } export interface InstallResult { success: boolean; installedPackages: string[]; failedPackages: string[]; configFilesCreated: string[]; errors: string[]; warnings: string[]; } export declare class PackageInstaller { private options; private projectPath; private spinner; constructor(projectPath: string, options: InstallOptions); /** * Install packages based on wizard results */ install(wizardResult: WizardResult): Promise<InstallResult>; /** * Run a single install command */ private runInstallCommand; /** * Run command with real-time output */ private runCommandWithOutput; /** * Create configuration files */ private createConfigFiles; /** * Run post-install tasks */ private runPostInstallTasks; /** * Update package.json scripts */ private updatePackageJsonScripts; /** * Create example components */ private createExampleComponents; /** * Set up git hooks */ private setupGitHooks; private fileExists; private isPackageInstalled; private extractPackagesFromCommand; }