O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an alias task

The tasks we configured for our project tend to perform a single function and nothing more. As a project grows, we will probably start to identify groups of tasks that we tend to run together, in a specific order. It is at this point that an alias task can become quite helpful to us as it allows us to group a set of tasks together under a new task name.

Getting ready

In this example, we'll work with the basic project structure we created in the Installing Grunt on a project recipe in Chapter 1, Getting Started with Grunt. Be sure to refer to it if you are not yet familiar with its contents.

This recipe also contains an example that makes use of the Setting up a basic web server and the Watching files for changes recipe of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required