Transitioning your Drupal 8 Site to ES6

Lindsey Kopacz, Brian Reese

JavaScript had it’s biggest release since 1996 with ES6 (ECMA2015), and new features are being added with regular releases. Have you begun the process of transitioning your coding style on your Drupal sites?

In this session, we’ll look at several new features available in ES6, including new variable declarations, arrow functions, classes and modules. We will show you how they can drastically improve your code’s readability and speed up overall development with less code. We’ll also look at adapting a Drupal theme to use babel, webpack, and of course how to create Drupal behaviors using the updated JavaScript features.

You’ll leave this session knowing the key differences between ES5 and ES6, the benefits of updating your code to ES6, and ultimately feel more confident transitioning your coding style on your Drupal sites. You will also have a github repository to fork and use on a sandbox.

https://www.drupalgovcon.org/2018/program/sessions/transitioning-your-drupal-8-site-es6

Drupal is a registered trademark of Dries Buytaert.