UNPKG

@ordojs/cli

Version:

Command-line interface for OrdoJS framework

78 lines 2.19 kB
/** * @fileoverview OrdoJS CLI - CI/CD pipeline generator */ import type { DeploymentConfig } from './adapter-interface.js'; export interface CICDConfig { platform: 'github' | 'gitlab' | 'jenkins'; nodeVersion: string; pnpmVersion: string; testCommand: string; buildCommand: string; deployCommand: string; cacheDependencies: boolean; runTests: boolean; runLinting: boolean; runSecurityScan: boolean; autoDeploy: boolean; environments: string[]; secrets: string[]; } export interface PipelineOptions { platform?: 'github' | 'gitlab' | 'jenkins'; nodeVersion?: string; pnpmVersion?: string; testCommand?: string; buildCommand?: string; deployCommand?: string; cacheDependencies?: boolean; runTests?: boolean; runLinting?: boolean; runSecurityScan?: boolean; autoDeploy?: boolean; environments?: string[]; secrets?: string[]; } /** * CI/CD pipeline generator for OrdoJS applications */ export declare class CICDGenerator { private defaultConfig; /** * Generate CI/CD pipeline configuration */ generatePipeline(config: DeploymentConfig, options?: PipelineOptions): string; /** * Generate GitHub Actions workflow */ generateGitHubActions(config: CICDConfig, deploymentConfig: DeploymentConfig): string; /** * Generate GitLab CI configuration */ generateGitLabCI(config: CICDConfig, deploymentConfig: DeploymentConfig): string; /** * Generate Jenkins pipeline */ generateJenkinsPipeline(config: CICDConfig, deploymentConfig: DeploymentConfig): string; /** * Generate deployment job for GitHub Actions */ private generateDeployJob; /** * Generate GitLab deploy stage */ private generateGitLabDeployStage; /** * Generate linting step for GitHub Actions */ private generateLintingStep; /** * Generate test step for GitHub Actions */ private generateTestStep; /** * Generate security scan step for GitHub Actions */ private generateSecurityScanStep; private mergeConfig; } //# sourceMappingURL=cicd-generator.d.ts.map