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 6. Building the Sample Project

In this chapter we will discuss the process of final build configuration and then actually running automated builds of the sample_project. We will learn:

  • Loading tasks: We will have a look at loading tasks to be run, adding them incrementally so we can check the configuration and ensure the expected results are being generated

  • Defining custom and default tasks: The custom tasks will provide the means to configure custom task functionality for specific situations. The default task will allow us to create a launch configuration. This will require only a single command from the terminal to start up our automated build.

  • Functional testing: Functional testing will provide examples of how to run and check the specific outcomes of each of the tasks included in our automated build