| 1. |
What Is Code Over Configuration? |
|
Answer» Gulp prefers code over configuration, which keeps things simple and makes complex TASKS manageable. If you have worked with GRUNT, or seen gruntfile.js then you will find that you do configuration using JSON, and in case of gulp there is plain JavaScript code to do the magic. Here is how a grunt file will look like.
Here, we are CONFIGURING the grunt plugins via JSON. You can see the complete sample file here. And below is a sample gulp file,
As you can see, there is all code no configuration. The file looks much clean and manageable. This is an advantage of gulp over grunt. Gulp prefers code over configuration, which keeps things simple and makes complex tasks manageable. If you have worked with grunt, or seen gruntfile.js then you will find that you do configuration using JSON, and in case of gulp there is plain JavaScript code to do the magic. Here is how a grunt file will look like. Here, we are configuring the grunt plugins via JSON. You can see the complete sample file here. And below is a sample gulp file, As you can see, there is all code no configuration. The file looks much clean and manageable. This is an advantage of gulp over grunt. |
|