Chapter 2. Setting Up Grunt

In this chapter, we will go over the steps required to get Grunt up and running. We begin with an introduction into Node.js and npm, as they are the key technologies used to build the foundations upon which Grunt stands. We review Node.js modules and how they relate to Grunt, then cover the basics of a Grunt environment, including package.json and Gruntfile.js files. Once we are set up, we'll move onto configuring Grunt. We will look into the various methods and strategies that make Grunt best convey our build.

Installation

In this section, we cover how to install and use Grunt's key components, Node.js and npm. We will review a brief introduction into each, as well as their core concepts. Subsequently, we will cover ...

Get Getting Started with Grunt: The JavaScript Task Runner now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.