Using the Grunt task runner to debug
Grunt is a task runner written in JavaScript that helps us automate tasks and increase productivity. On the official website, you have access to several plugins (http://gruntjs.com/plugins), so you can adjust the use of Grunt according to your needs:
![Using the Grunt task runner to debug](/api/v2/epubs/9781785888229/files/graphics/image_06_003.jpg)
Magento 2 already supports some written tasks in Grunt, but you must install it before you start your application in automation tasks. The Grunt library plugins are managed by npm, which is the Node.js package manager. Therefore, you must install Node.js to run Grunt tasks.
In the following subsections, we will look at how to install Node.js for your OS.
Tip
Learn ...
Get Magento 2 Theme Design - Second Edition 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.