Update gulpfile.js

adding callback to copy-assets task to make it run with Gulp4
This commit is contained in:
Holger Koenemann 2019-04-14 06:39:29 +02:00
parent 317c136a60
commit 401bcc9c6f
1 changed files with 4 additions and 2 deletions

View File

@ -160,7 +160,7 @@ gulp.task( 'watch-bs', gulp.series('browser-sync', 'watch', 'scripts'));
// Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update // Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update
////////////////// All Bootstrap SASS Assets ///////////////////////// ////////////////// All Bootstrap SASS Assets /////////////////////////
gulp.task( 'copy-assets', function() { gulp.task( 'copy-assets', function(done) {
////////////////// All Bootstrap 4 Assets ///////////////////////// ////////////////// All Bootstrap 4 Assets /////////////////////////
// Copy all JS files // Copy all JS files
@ -188,6 +188,8 @@ gulp.task( 'copy-assets', function() {
// _s JS files into /src/js // _s JS files into /src/js
gulp.src( `${paths.node}undescores-for-npm/js/skip-link-focus-fix.js` ) gulp.src( `${paths.node}undescores-for-npm/js/skip-link-focus-fix.js` )
.pipe( gulp.dest( `${paths.dev}/js` ) ); .pipe( gulp.dest( `${paths.dev}/js` ) );
done();
}); });
// Deleting the files distributed by the copy-assets task // Deleting the files distributed by the copy-assets task
@ -232,4 +234,4 @@ gulp.task( 'compile', gulp.series( 'styles', 'scripts', 'dist' ));
// Run: // Run:
// gulp // gulp
// Starts watcher (default task) // Starts watcher (default task)
gulp.task('default', gulp.series('watch')); gulp.task('default', gulp.series('watch'));