#MidCamp
Grunt All the Things!! Even Drupal! /
http://betterweekdays.com
Drush make
http://www.drush.org/en/master/make/
Keep contrib out of version control
Use external libraries
Declarative builds
Easily reproduce
Log output
Test. Test. Test.
Development standards
Track metrics
http://gruntjs.com/
A Javascript Task Runner
Automation
Simple Node.js requirement
Lots of plugins
npm install -g grunt-cli
Gruntfile.js, Gruntconfig.json
https://github.com/phase2/grunt-drupal-tasks
Make, PHPCS, Behat
src/modules
src/themes
src/sites
src/profiles
src/PROJECT.make
Make sure srcPaths > make points to right make file
Core version
Contrib module, release number, patches
External libraries
Makes our site portable, shareable
Reviewing VCS history is 'easier'
Connect it to other processes
// Patternlab, Pantheon shell commands
grunt.extendConfig({
shell: {
bower_install: {
command: "bower install"
},
patternlab_build: {
command: "cd patternlab; grunt build; php core/builder.php -g"
},
patternlab_watch: {
command: "php patternlab/core/builder.php -gp"
},
pantheon_clean: {
command: [
'cd <%= config.buildPaths.pantheon %>',
'rm -Rf sites/all/',
'rm -Rf profiles/mskcfs'
].join('&&')
},
pantheon: {
command: [
'cd <%= config.buildPaths.pantheon %>',
'git add -A *',
'git commit -m "<%= grunt.option("message") %>"',
'git push origin master'
].join('&&')
}
}
});
Static Prototyping and KDS: http://bit.ly/p2-kds
KDS Make: https://github.com/fmitchell/KDS-make
http://2015.midcamp.org/schedule
Learn through contribution
Contributors of all skill sets and levels are welcome and encouraged.
http://bit.ly/grunt-dp-things
https://joind.in/talk/view/13792