Book Image

Grunt Cookbook

By : Jurie-Jan Botha
Book Image

Grunt Cookbook

By: Jurie-Jan Botha

Overview of this book

<p>A web application can quickly turn into a complex orchestration of many smaller components, each one requiring its own bit of maintenance. Grunt allows you to automate all the repetitive tasks required to get everything working together by using JavaScript, the most popular programming language.</p> <p>Grunt Cookbook offers a host of easy-to-follow recipes for automating repetitive tasks in your web application's development, management, and deployment processes. This book will introduce you to methods that can be used to automate basic processes and your favorite tools. By following the recipes, you will soon be comfortable using Grunt to perform a wide array of advanced tasks in a range of different scenarios.</p>
Table of Contents (17 chapters)
Grunt Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


To truly begin appreciating the power and flexibility of Grunt, we have to delve into the creation of our own tasks.

On top of the vast array of plugins at our disposal, each of the tasks provided by them can be configured in a variety of ways that should cover most of our requirements. If, however, we do encounter a problem we cannot solve using an existing task and configuration combination, we can easily create a new task to fill in the gap.

We should also view the creation of tasks as the first stepping stone to creating plugins of our own. The methods of creating tasks discussed in this chapter will provide us with a simple laboratory, where we can build tasks that can eventually be transferred directly to a plugin.

Tip

The following two URLs provide a wealth of information on creating tasks and the tools Grunt makes available to build them. It is highly recommended that you go through these links if you are serious about creating tasks:

http://gruntjs.com/creating-tasks

http...