Does Claude Code know Alpine.js patterns specific to Hyvä?
Categories:
Claude Code + Hyvä
Yes — we encode Hyvä’s Alpine conventions in CLAUDE.md: use x-data with a function returning a typed object, prefer $dispatch/$nextTick over jQuery, hydrate from hyva.getCookie() not localStorage, use Hyvä’s built-in event bus (document.addEventListener('reload-customer-section-data', ...)) instead of inventing new events. Claude Code reads vendor/hyva-themes/magento2-default-theme/app/design/frontend/Hyva/default/Magento_Theme/templates/page/js/init.phtml as the source of truth for Hyvä Alpine helpers.
Was this helpful?