Using Grunt
to Manage Drupal Build and Testing Tools
DrupalCon Los Angeles 2015 5/13/2015
Using Grunt to Manage Drupal Build and Testing Tools DrupalCon Los - - PowerPoint PPT Presentation
Using Grunt to Manage Drupal Build and Testing Tools DrupalCon Los Angeles 2015 5/13/2015 Joe Turgeon Director of Engineering Email: jturgeon@phase2technology.com GitHub: @arithmetric Twitter: @arithmetric Does Drupal Need a Build Tool?
to Manage Drupal Build and Testing Tools
DrupalCon Los Angeles 2015 5/13/2015
Director of Engineering
Email: jturgeon@phase2technology.com
GitHub: @arithmetric Twitter: @arithmetric
Install and run approach:
Download from d.o Add custom code Rsync to server Drush make Add custom code git commit/ deploy Run code checks Compile Sass Behat tests
Build and test approach:
custom code
around”
integration
tools in the same way?
dependencies and build output?
JSON
JavaScript using the “uglify” tool: http://gruntjs.com/getting-started
testing tasks
Tasks
npm install -g generator-gadget grunt-cli yo
Grunt Drupal Tasks:
yo gadget
GDT project script and config
Defines GDT and project dependencies
GDT dependencies
Custom Drupal code and Drush make file
Test cases and config
Drupal core and contrib code, site settings files, and supporting tools
grunt
* = if applicable/needed
src/modules
src/profiles/mysite
src/sites/default src/sites/…
src/themes
portable
backlog
needed) whenever file changes are detected:
grunt watch
custom source and a make file
code quality
coding standards) with:
grunt validate
standards
certain thresholds
common Drupal practice
approach
Grunt-powered themes
any configured themes
dependencies
site accessible by URL
grunt test
testing
integration envs
ShipIt)
files
better
links: https://events.drupal.org/node/641
PHASE2TECHNOLOGY.COM