Salesforce B2C SDK Module Developer

•
4
•

Standardizes the process of adding new modules, API clients, and exports to the Salesforce B2C Tooling SDK.

This skill provides specialized guidance for extending the @salesforce/b2c-tooling-sdk, ensuring developers follow strict architectural patterns for Salesforce Commerce Cloud DX tools. It covers the implementation of barrel files, factory-based HTTP clients via openapi-fetch, and dual ESM/CommonJS build configurations. By automating the boilerplate for module structure, OpenAPI type generation, and package exports, it helps maintain a consistent API surface and high-quality documentation for the entire developer tooling ecosystem.

主要功能

014 GitHub stars
02Standardized barrel file and JSDoc module generation
03OpenAPI-to-TypeScript client factory implementation
04Dual-module build configuration (ESM and CJS)
05Structured operations module patterns for business logic
06Automated package.json export mapping with development conditions

使用场景

01Implementing high-level business operations like code or site deployments
02Configuring automated TypeScript type generation from OpenAPI specifications
03Integrating a new Salesforce B2C Commerce API into the tooling SDK