• Drupal 8 Migration with Multiple Paragraph References

    Joel Steidl

    Recently, I ran into an issue migrating Paragraph Entities (Entity Reference Revisions) that had a few open core bugs and it ended up being really simple to solve within prepareRow in the source plugin. It will be nice when the migration_lookup plugin can properly handle this use case, but it’s a good thing to understand how prepareRow can provide flexibility.

  • Managing Dev and Production Builds with Webpack

    Peter Weber

    If you’ve done any javascript application development recently, you’ve probably come across Webpack. It’s a powerful javascript bundler that compiles all of your assets into small, production ready files. One feature I really like is the ability to easily configure separate builds based on environment variables. Webpack makes it easy to deploy multiple environments i.e. development, test and production with only the code and data specifically needed for each.

  • Using BrowserSync with Drupal 8

    John Ferris

    TL;DR: Just here for Browsersync setup? Skip to the steps.

    I’m always looking for ways to reduce the time between saving a file and seeing changes on the screen.

    When I first started working with Drupal, back in the day, I would ftp changes to a server and refresh the page. Once I found Transmit, I could mount a remote directory locally and automatically save files to the server. At the time, my mind was blown by the efficiency of it. In hindsight, it seems so archaic.

  • Javascript Testing with AVA

    Peter Weber

    Testing is a part of every developer’s job. Good tests ensure code we write does what we expect. In Javascript, we have many tools at our disposal, such as the excellent developer panels in Chrome and Firefox.

    Filed under:
     CodeJavaScript
  • Refactorability

    Rob Ballou

    As a programmer, I spend almost all my time hanging out with code. This code may be my own, other co-workers’, or code from an open source project. And I may be contributing this code at different points in that project's lifecycle: starting out, initial development, maintenance, debugging, adding new features, etc. Given the amount of time I have been working on various projects as a programmer, I spend more time – and place more value on – considerations around the ability for anyone to step into this code and maintain it, debug it, or refactor it.

    Filed under:
     CodeDrupalJavaScript
  • Easy Browser Support with Polyfill.io

    John Ferris

    Finding and installing polyfills can often be a tedious task. Not too long ago, I was searching for a good list of polyfills to reference while working on browser compatibility issues. I ended up coming across Polyfill.io, a service that has since proven very useful.

    Polyfill.io makes polyfilling support for newer JS features in older browsers super easy. It works via User-Agent sniffing to determine the browser being used, then loads the required polyfills.

    Here’s how you use it

    Filed under:
     CodeJavaScript

Pages