upgrading pattern lab to twig 2 0 for d9 about
play

Upgrading Pattern Lab to Twig 2.0 for D9 About Mediacurrent Who We - PowerPoint PPT Presentation

Upgrading Pattern Lab to Twig 2.0 for D9 About Mediacurrent Who We Are Our people our impelled to constantly improve technology for our clients. Our Mission To bring together the most talented team members to provide world-class solutions


  1. Upgrading Pattern Lab to Twig 2.0 for D9

  2. About Mediacurrent

  3. Who We Are Our people our impelled to constantly improve technology for our clients.

  4. Our Mission To bring together the most talented team members to provide world-class solutions for the web.

  5. ● ● ● Mario Hernandez Head of Learning

  6. 1. Drupal 9 Requirements Today’s 2. Pattern Lab Updates Agenda 3. Demo 4. Q & A

  7. Adam Juran

  8. Drupal 9 Requirements

  9. From a Theming Point of View yourtheme.info.yml version: 8.0 core_version_requirement: ^8.9 || ^9 Working with Components? .drupal.org/project/ components (2.x)

  10. Pattern Lab Updates

  11. @basalt/twig-renderer @basalt/twig-renderer twig renderer Pattern Lab’s engine-twig-php. Twig PHP Twig 1.x

  12. @basalt/twig-renderer v2.0.0 Upgrading a dependency of a dependency: package.json "resolutions": { "@basalt/twig-renderer": "2.0.0" } "scripts": { "preinstall": "npx npm-force-resolutions" } npm install

  13. @basalt/twig-renderer v2.0.0 Confirm updates worked npm ls @basalt/twig-render $ npm ls @basalt/twig-renderer xxxx@10.5.0 /Users/xxxx/Sites/Docker/training/d9_site/web/themes/custom/xxx └─┬ @pattern-lab/engine-twig-php@5.13.0 └── @basalt/twig-renderer@2.0.0 invalid npm ERR! invalid: @basalt/twig-renderer@2.0.0 .../web/themes/custom/xxxx/node_modules/@pattern-lab/engine-twig-php/node_modul es/@basalt/twig-renderer

  14. Resources ● Pattern Lab and Drupal 9: Prepare your theme for Twig 2 ● Preparing for use of Twig 2.0 in Drupal 9 Twig Deprecated features ● Understanding NPM Resolutions ● ● Using NPM Pre and Post Hooks | 14

  15. Demo

  16. Questions Does something resonate with you today? Get in touch with us. mediacurrent.com/contact-us mediacurrent.com/resources

  17. Thank You! Let’s continue the conversation imariohernandez Mario Hernandez mario.hernandez@mediacurrent.com Head of Learning mediacurrent.com/training

Recommend


More recommend