symfony-yoandev-frontend
Installation
SKILL.md
Frontend
Tier: core the moment there is a front end — AssetMapper, Stimulus and the no-bundler rule. Live Components, Mercure and every UX package are on demand — add them when the need appears, as the tables below say.
Twig, Stimulus, Turbo and Symfony UX, served by AssetMapper. No bundler.
symfony console importmap:require chart.js # add a JS dependency
symfony console debug:asset-map # what is actually mapped
symfony console importmap:audit # vulnerable JS dependencies
symfony console asset-map:compile # deploy step — see below
The price of no bundler, stated once
AssetMapper serves your files as ES modules with an import map. There is no compilation step, so there is no JSX, no Vue or Svelte single-file components, no TypeScript, no advanced transpilation, and no tree-shaking of a dependency you only use a corner of.