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 5. Task Setup in the sample_project Application

In the previous chapter, we covered the configuration of Grunt tasks and learned about the configuration files that are required by Grunt and the Grunt Application Programming Interface (API). In this chapter, we will configure the tasks that will be used in the sample_project application. Taking what has been learned about package.json, Gruntfile.js, and the Grunt API, we will build our own Gruntfile.js configuration and look into the details of running automated builds. As we configure and build the project, we will inspect the results to ensure that our automated tasks are doing the work that is expected:

  • Defining the requirements of sample_project

  • Discussing the wrapper and configuration