O'Reilly logo

Magento 2 Theme Design - Second Edition by Richard Carter, Fernando J Miguel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required