Completed gulpfile
Congratulations! You have written your very first gulpfile
. However, this is only scratching the surface. We have a lot more to add in the coming chapters, including using Node.js modules for advanced tasks, as well as some great tips and improvements. Before we move on, let's take a moment to review the completed file that we created in this chapter. This is a great opportunity to compare your file with the code given and ensure that your code matches with what we have written so far. This may save your debugging time later!
The completed gulpfile
should look as follows:
// Modules & Plugins var gulp = require('gulp'); var concat = require('gulp-concat'); var myth = require('gulp-myth'); var uglify = require('gulp-uglify'); var jshint = require('gulp-jshint'); var imagemin = require('gulp-imagemin'); // Styles Task gulp.task('styles', function () { return gulp.src('app/css/*.css') .pipe(concat('all.css')) ...