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 a plugin task

The functionality of Grunt plugins are mostly contained inside the tasks they provide. The plugin project scaffolding provided by the Yeoman tool creates one such task for us to work from or use as a reference when creating our own.

Getting started

In this recipe, we'll work with the basic project structure we created in the Setting up a basic plugin project recipe earlier in this chapter. Be sure to refer to it if you are not yet familiar with its contents.

This recipe also contains concepts that are introduced in the Creating a multi task, Using options in a task and Using files in a task recipes that can be found at the end of Chapter 8, Creating Custom Tasks. Be sure to refer to these recipes if you'd like to gain a deeper ...

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