Перейти к содержимому

Luca Lusso Modernizing Drupal 10 Theme Development [hot] -

On Sunday night, Luca ran the final build. He used Drupal 10’s new auto-setup CLI to spin up a test environment, ran phpunit on his custom theme settings, and pushed the changes.

% include 'components/card' with render, url: url, variant: 'horizontal' only % Clean. Reusable. Predictable. luca lusso modernizing drupal 10 theme development

npm init -y npm install tailwindcss postcss autoprefixer --save-dev Then, he enabled the new, experimental single_directory_components module that had just landed in Drupal 10.3. Instead of scattering template, CSS, and JS across three different folders, he created a new directory: components/ . On Sunday night, Luca ran the final build