Gulp: the modern frontend factory

Plugins

So it's in the pipes that lives all the logic of your factory. Each simple and single step is supposed to be realised by a gulp plugin. A list of plugins can be browsed at gulpjs.com/plugins.

They're basically doing a compilation step, like minifying javascripts:

uglify = require('gulp-uglify');

gulp.task('minify', function() {
    gulp.src('src/*.js')
        .pipe(uglify())
        .pipe(gulp.dest('dist'));
});

See gulp-uglify repo.

You can install them using npm install.