Task calling:
gulp.task('dev:build', () => { gulp.parallel('dev:html', 'dev:css', 'dev:js'); }); Tasks performed by:
gulp.task('dev:html', () => { gulp.src(`${PATHS.source}/**/*.html`, { since: gulp.lastRun('dev:html') }) .pipe(newer(PATHS.build)) .pipe(htmlhint()) .pipe(htmlhint.reporter()) .pipe(htmlhint.failOnError()) .pipe(debug({ title: 'HTML Built' })) .pipe(gulp.dest(PATHS.build)); }); gulp.task('dev:css', () => { gulp.src(`${PATHS.source}/scss/*.*`, { since: gulp.lastRun('dev:css') }) .pipe(newer(PATHS.build)) .pipe(sourcemaps.init()) .pipe(sass().on('error', notifier.onError({ message: '<%= error.message %>', title: 'SASS Error', sound: 'frog', }))) .pipe(debug({ title: 'CSS Compiled' })) .pipe(sourcemaps.write()) .pipe(gulp.dest(`${PATHS.build}/css`)); }); gulp.task('dev:js', () => { gulp.src(`${PATHS.source}/js/*.js`) .pipe(jsEslint()) .pipe(jsEslint.format()) .pipe(jsEslint.failAfterError()) .on('error', notifier.onError({ title: 'JS Linting Fail', message: '<%= error.message %>', })) .pipe(jsPolyfills('polyfills.js', { browsers: '> 1%', })) .pipe(gulp.dest(`${PATHS.build}/js`)); }); The result of the implementation:
[12:25:54] The following tasks did not complete: dev:build [12:25:54] Did you forget to signal async completion? What can be done with this? How to fix?
return gulp.src...- Blesergulp.task('dev:build', gulp:series( gulp.parallel('dev:html', 'dev:css', 'dev:js') ));- Albert Akmukhametow