PART 1.2.1.1 – Grunt vs. Gulp

Grunt installation

Your next step is grunt installation. Install grunt on your devbox.

To be able to use grunt you need to register you theme inside dev/tools/grunt/configs/themes.js. In many projects we add a version of the theme.js to the theme and then map it inside the composer.json of the theme:

 

“extra”: {

  “vaimo-module-category”: “theme”,

  “map”: [

      [

          “dev/tools/grunt/configs/themes.js”,

          “../../dev/tools/grunt/configs/themes.js”

      ]

  ]

}

If you use grunt this is probably currently the best way of working Increase grunt compile performance to 6 second

Gulp installation

If you would like to work with gulp, please, see documentation – https://bitbucket.org/vaimo/module-frontend-workflow/overview

In the example project gulp is already prepared. Outside of devbox install gulp npm install gulp -g . Then in the project folder run npm install.
 

Exercise 4.0

Please, install grunt or gulp to your project.

Advertisements