All Articles

Why I like GulpJS more than GruntJS

2013 was the year of GruntJS (I have a post about it) but beginning of 2014 a new cool kid on the block show up

This post is just an FYI instead of a tutorial and for those that don’t know GruntJS please take a look here GruntJS post.

When I saw GulpJS at first I said just another task runner.. but then I read the code to see how it works and I got very excited. Why? First because uses Streams (Streams is an very important part of NodeJS) which makes faster than GruntJS.. second because if you have been writing NodeJs applications you can notice that GruntJS isn’t very let’s say “pretty” (but works great) but on the other hand GulpJS is like write an NodeJS application making very very easy to “install” and use. I loved.

Here’s how a GruntJS file looks like GruntJS code example and here how GulpJS code example looks like

Check out the GulpJS website for more information.

// Require modules
var gulp = require('gulp')
    , uglify = require('gulp-uglify')
    , minifyHTML = require('gulp-minify-html')
    , sass = require('gulp-sass');

// Here's the tasks
gulp.task('build', function(){
    var dist = 'dist/'
        , dirPublic = 'public/'
        , distStylesheets = dist + dirPublic + 'stylesheets/'
        , distJavascripts = dist + dirPublic + 'javascripts/';




// Gulp watch for file changes
gulp.task('default', function() {[
    ], function(event) {'build');


Published 6 Jan 2014

Software Engineer focused in Javascript applications
Michael Lancaster on Twitter