Using Grunt to Manage Drupal Build and Testing Tools

Drupal development is getting more sophisticated. You may use a Drush make file to build a Drupal site instead of checking core code into your repo. You may use Behat to run automated behavioral tests against your site. You may use Compass to compile your Sass files into CSS.

As we add tools to the development process, we need something to make them work together. Enter Grunt Drupal Tasks!

Grunt is a well-supported and flexible JavaScript-based task runner. In the Node.js and front-end worlds, Grunt is widely adopted for automating build and processing tasks (think, linting and minifying JavaScript). In this talk, I'll demonstrate the free and open-source Grunt Drupal Tasks project, which provides a set of common tasks related to building and testing Drupal sites.

By the end of the session, you should:

  • Understand the solutions offered by Grunt Drupal Tasks for common Drupal development problems,
  • Know the tools provided by Grunt Drupal Tasks for building and testing a Drupal site, and
  • Be able to start a new Drupal project using Grunt Drupal Tasks.

This will build on the talk given at BADCamp 2014.

Resources

Grunt Drupal Tasks on GitHub: http://github.com/phase2/grunt-drupal-tasks

Gadget on GitHub: https://github.com/phase2/generator-gadget

 

Session Track

DevOps

Experience level

Intermediate

Drupal Version

Drupal 7.x

Session Time Slot(s)

Time: 
05/13/2015 - 14:15-05/13/2015 - 15:15
Room: 
515A - Phase 2