UNPKG

sfcc-dev-mcp

Version:

MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools

57 lines 1.73 kB
/** * SFCC Cartridge Generation Client * * This client handles the generation of SFCC cartridge directory structures * with all necessary files and configurations, replacing the outdated sgmf-scripts * with a modern, integrated approach. */ import { IFileSystemService, IPathService } from '../services/index.js'; interface CartridgeGenerationOptions { cartridgeName: string; targetPath?: string; fullProjectSetup?: boolean; } export declare class CartridgeGenerationClient { private logger; private templates; private fileSystem; private pathService; constructor(fileSystem: IFileSystemService, pathService: IPathService); /** * Normalize the target path by removing /cartridges or /cartridges/ from the end * The cartridge creation always happens from the root folder */ private normalizeTargetPath; /** * Generate a complete cartridge structure */ generateCartridgeStructure(options: CartridgeGenerationOptions): Promise<{ success: boolean; message: string; createdFiles: string[]; createdDirectories: string[]; skippedFiles: string[]; }>; /** * Create root project files (package.json, webpack, etc.) */ private createRootFiles; /** * Create the cartridge directory structure */ private createCartridgeStructure; /** * Ensure a directory exists, create if it doesn't */ private ensureDirectory; /** * Safely write a file, skipping if it already exists */ private safeWriteFile; /** * Initialize all file templates */ private initializeTemplates; } export {}; //# sourceMappingURL=cartridge-generation-client.d.ts.map