Grunt: Introduction

Grunt is a JavaScript task runner which runs on Node.js.


Grunt is useful in web development for automating repetitive tasks like

  • file minification
  • compilation
  • concatenation
  • image optimization
  • unit testing
  • linting

To install Grunt, we first need to install Node.js. Detailed instructions on installing Node.js via the package manager can be found following the link below

After installing Node.js, you can check the version in the terminal with the command

				node -v

or in Ubuntu systems, with the command

				nodejs -v

If installed correctly, it will give the version number, something like v10.15.3.