When I write gulpfile I don't like a lot of pipe
calls especially when I have a lot of tasks to do. Thats why I use small function to create pipeline from array.
var toPipe = require('gulp-pipe');
gulp.task('js', function(){
return toPipe([
gulp.src('some/src'),
jshint(),
complexity(),
karmaTests(),
coverage(),
uglify(),
gulp.dest('some/dest')
]);
});
This function works with streams, so you can use it anywhere you want.