an example of theme developments base on modern frontend tooling
- install drupal cms with the Drupal CMS installer.
ddev start
ddev composer install
ddev launch- install the vite module (for more about the integration with ddev check Example usage using DDEV)
ddev drush pm:install vite- install theme (or not)
ddev drush theme:enable dmc_2025_quest_for_modern_frontend_tooling- compile the assets
cd web/themes/custom/dmc_2025_quest_for_modern_frontend_tooling
ddev npm install
ddev npm run build
ddev drush cr- eventually go here and make
dmc_2025_quest_for_modern_frontend_toolingthe default theme
- start storybook
cd web/themes/custom/dmc_2025_quest_for_modern_frontend_tooling
npm run storybook- Create stories in
/storiesand develop components outside of drupal - Enjoy HMR and an out-of-my-way DX
- launch vite dev server
cd web/themes/custom/dmc_2025_quest_for_modern_frontend_tooling
ddev npm run dev
ddev drush cr- Integrate with HMR on CSS and automatic refresh on templates