Spree Commerce Extensions & Decorators
Streamlines the development of Spree Commerce extensions using modern Rails engine patterns, decorators, and swappable service dependencies.
This skill provides specialized guidance for developing Spree Commerce extensions, allowing developers to extend core functionality without compromising upgrade paths. It covers the modern Module#prepend decorator pattern, dependency injection via Spree::Dependencies, event-driven subscribers, and Rails engine scaffolding. By following the recommended hierarchy of customization surfaces—prioritizing Events and Dependencies over fragile Decorators—this skill ensures that your e-commerce customizations remain maintainable and compatible with future Spree versions.
主要功能
01Scaffolding for Spree extensions as isolated Rails engines
02Guidance on migrating from deprecated Deface overrides to partial slots
03Service object swapping via the Spree::Dependencies registry
04Implementation of the modern Module#prepend decorator pattern
0532 GitHub stars
06Event-driven architecture using Spree::Subscriber and Webhooks
使用场景
01Adding custom fields and validations to Spree models without modifying core source code
02Building reusable gems for Spree features like custom payment gateways or marketing integrations
03Implementing complex business logic by replacing core services like shipping calculators