-
Book Overview & Buying
-
Table Of Contents
Node.js Blueprints
By :
Gulp is a build system that has become quite popular. It's almost the same concept as Grunt. We are able to create tasks that do something for us. Of course, there are a lot of plugins. In fact, most of the main Grunt plugins have equivalent plugins in Gulp. However, there are some differences, which are mentioned in the following points:
There is a configuration file, but it is called gulpfile.js
Gulp uses streams to process the files, which means that it doesn't create any temporary file or folder. This may lead to the better performance of the task runner.
Gulp follows the code-over-configuration principle, that is, while we set up the Gulp tasks, the process is like coding rather than writing the configurations. This makes Gulp friendly for the developers.
Like Grunt, Gulp is available in the Node.js' package manager.
npm install -g gulp
The preceding command line will set up the task runner globally. Once the installation is complete...
Change the font size
Change margin width
Change background colour