The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Angular Automation: Copy Assets with Gulp

Angular Automation: Copy Assets with Gulp

5:13
In this lesson, we are going to learn how to copy assets from one place to another using Gulp. This is important as you start to prepare your source files to be deployed into production. We will learn how to implement `gulp.src`, `gulp.pipe` and `gulp.dest` as well as the **del** plugin as we copy our files from the source directory into a build directory.
Watch this lesson now
Avatar
egghead.io

In this lesson, we are going to learn how to copy assets from one place to another using Gulp. This is important as you start to prepare your source files to be deployed into production. We will learn how to implement gulp.src, gulp.pipe and gulp.dest as well as the del plugin as we copy our files from the source directory into a build directory.

Avatar
Craig

The del module now returns a promise so the clean task should now return the promise instead of taking a callback as follows:

gulp.task('clean', function () {
return del(['./build'], {force: true});
});

returning a callback as the original screencast shows will simply now pause the build process after the clean task.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?