Met behulp van Grunt is het mogelijk om bepaalde taken bij het ontwikkelen van bijvoorbeeld software te automatiseren. Ook bij het ontwikkelen van WordPress plugins kan Grunt handig zijn, zo heb ik vandaag de WordPress plugin “Pronamic iDEAL” uitgebreid met een Gruntfile. Momenteel zorgt Grunt er voor dat de JavaScript bestanden automatisch gecontroleerd worden op kwaliteit met JSLint. Ook worden alle PHP bestanden automatisch gecontroleerd met PHPLint. Aanvullend wordt ook automatisch de PHPUnit tests uitgevoerd.
De Gruntfile voor de “Pronamic iDEAL” plugin is te vinden op de GitHib repository:
https://github.com/pronamic/wp-pronamic-ideal/blob/develop/Gruntfile.js
Handige resources hierbij waren:
- https://github.com/10up/grunt-wp-plugin
- http://wpgear.org/
- https://github.com/SaschaGalley/grunt-phpunit
- http://chrsm.org/post/using-grunt-for-php/
- https://www.npmjs.org/package/grunt-phplint
- https://github.com/jgable/grunt-phplint
- http://mariehogebrandt.se/articles/using-grunt-php-quality-assurance-tools/
- http://archetyped.com/know/grunt-for-wordpress-plugins/
- http://gruntjs.com/sample-gruntfile
- https://github.com/gruntjs/grunt-contrib-uglify
- http://blog.grayghostvisuals.com/grunt/image-optimization/
- https://github.com/gruntjs/grunt-contrib-imagemin
- http://gruntjs.com/getting-started
- https://www.npmjs.org/package/grunt-indent
- https://www.npmjs.org/package/grunt-wp-assets
- http://24ways.org/2013/grunt-is-not-weird-and-hard/
- https://github.com/chriscoyier/My-Grunt-Boilerplate
- http://themergency.com/grunt-for-wordpress-developers/
- http://coding.smashingmagazine.com/2014/02/20/kickstart-your-project-with-init-and-grunt/
- https://github.com/stephenharris/grunt-wp-deploy
- http://mattbanks.me/grunt-wordpress-development-deployments/
- http://code.tutsplus.com/articles/setting-up-grunt-for-your-next-project–wp-35123
- https://github.com/claudiosmweb/wordpress-plugin-boilerplate/blob/master/Gruntfile.js
- https://github.com/woothemes/woocommerce/issues/3972