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)

Chapter 3. All about Grunt Plugins

Grunt plugins are core to Grunt functionality and, thus, are an important aspect of Grunt because plugins are what we use in order to design an automated build process. A plugin is a task. I may refer to plugins as tasks as you continue through the book, so consider plugins and tasks to be synonymous. Generally speaking, I may use the term Task when referring to plugins in terms of the specific work that they perform. A task is a unit of work that must be performed in order to accomplish a desired outcome, usually, as a portion of work that must be done in order to complete a larger process; although, a task may be in and of itself a standalone process. We may not know, offhand, exactly what tasks are needed to perform on a project. Grunt is scalable in this way, and it is easy to add tasks as we are working through our project. If you have done a few projects, then you will have a good idea for some tasks that you might like to automate. Perhaps, you...