Skip to main content
Start of main content.

Video: How we modernised our frontend tooling using Vite and Storybook

by jack.taranto /

Share this post on social media

Jack Taranto DS25 presentation

What do you get when you add Vite + Storybook + Pinto together to theme Drupal sites? Modern tooling that’s easy to work with!

Summary

We’ve been using this combination for our last few major projects with great results, so we decided to share, piece by piece, how we conducted the overhaul that led us to move away from old guard tools such as Rollup, Webpack, Gulp, and Babel.

In the video, Jack covers the usage and setup of all the frontend linting, testing, prototyping and build tools required. In this scenario, Vite becomes the single source of truth to build frontend assets, Storybook documents them, and Vitest tests them - with one config file to rule them all. 

You will learn about:

  1. Implementing Vite library mode for Drupal websites, as well as Twig and React integration.

  2. Setting up Storybook using Vite, Twig and React. Plus tips for structuring and maintaining a component library.

  3. Storybook test runner for automated interactivity, snapshot and accessibility testing.

  4. Vitest for everything else.

  5. Eslint and Stylelint for linting with minimal configuration.

  6. Integrating Pinto and Storybook.

Watch the video

Related Articles