Scaffold Template
The scaffolder generates one small Adobe Target and Preact template: a button component, structured selectors, variation entry points, and package-owned build commands.
Generated UI
The template includes:
src/components/ExperimentButton/- a Preact button component with local Sass CSS Module styles.src/config.js-selectors.primary, orderedselectors.fallbacks, andbuttonText.src/js/vN/index.jsx- variation entry points that mount, render, and attach tracking.src/js/vN/styles.module.scss- mount-wrapper styles passed tomountExperiment().
Extending the template
Add experiment-specific pieces inside the generated project:
- Add
src/helpers.jsfor reusable API calls, price formatting, or market-specific data logic. - Replace or extend
ExperimentButtonwhen the UI needs a different component. - Keep selectors and editable copy in
src/config.jsso variation entry points stay focused.
Older documentation and generated projects may mention minimal, product-card, or template-minimal/. Those were removed from the current scaffold; use the generated button template as the base for new work.