Skip to content

Latest commit

 

History

History

task-runners

Differences between Grunt and Gulp

  • The way you configure your tasks. Grunt is configuration-based. Gulp is stream-based.
  • The way they run your tasks. Grunt runs the processes you want to execute in a sequential manner. Gulp tries to run them with maximum concurrency, meaning it will try to execute processes in parallel if possible.

Using stream, Gulp saves a lot time on disk I/O.

Looking at the workflows:

Gulp

Grunt

In the End

So, Grunt or Gulp?

Honestly, it depends on the situation and it’s up to you.

One isn’t better than the other. They’re the same type of tool that can do the same job. So it will come down to personal preferences.

However, Grunt config format is a mess. As for me, I choose Gulp!

References

TODOS

What I learned is just build the code based on src directory, however, Gulp can do more, linting, uploading, continuous integration, etc.