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.
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 understanding of the concepts they introduced.