Book Image

Learning Grunt

By : Douglas Reynolds
Book Image

Learning Grunt

By: Douglas Reynolds

Overview of this book

With the increasing focus on task automation, the Grunt task runner is a vast platform that allows you to incorporate automation into your workflows. At the outset, you will learn how to use Node.js and NMP through an example. You will then find out how to build a sample app and the development environment for it. You will further delve into the implementation of Grunt plugins and the configuration of Grunt tasks. Furthermore, you will explore the various methods and packages for workflow automation. The final chapter will cover some advanced concepts, such as configuration variables and how to create a Grunt plugin. By the end of the book, you will have gained the fundamentals of Grunt and progressed through advanced concepts, including building a Grunt plugin.
Table of Contents (15 chapters)

Summary


Rolling your own custom tasks provides you with the means to be as expressive in providing solutions to task automation needs as you wish. Grunt provides the scaffolding to get up and running quickly, allowing you to focus on building your plugin. It is highly likely that another developer has encountered the same type of problem and a solution already exists in the NPM registry. If not, then building your own is definitely within reach. It is a steep, but short, learning curve from entry to publishing your plugin. There is a great deal of information available as well as examples throughout the NPM registry and GitHub. Check out the gruntplugin tool at http://gruntjs.com/creating-plugins. Then, read through the generated concatenation plugin code and documentation to get started.

Have fun!