S
S
siza2021-09-08 15:50:16
gulp.js
siza, 2021-09-08 15:50:16

Why could gulp stop running?

Why could gulp stop running? Yesterday everything worked, today it does not start
6138b0f0a4ead215974995.jpeg

const gulp = require('gulp');

const path = require('./gulp/path');

const { clear } = require('./gulp/tasks/clear');
const { html } = require('./gulp/tasks/html');
const { cssDev, cssBuild } = require('./gulp/tasks/css');
const { jsDev, jsBuild } = require('./gulp/tasks/js');
const { imgDev, imgBuild, svg } = require('./gulp/tasks/img');
const { fontsDev, fontsBuild } = require('./gulp/tasks/fonts');
const { video } = require('./gulp/tasks/video');
const { json } = require('./gulp/tasks/json');
const { serve } = require('./gulp/tasks/serve');
const { watch } = require('./gulp/tasks/watch');

function dev() {
  return new Promise(gulp.series(
    clear,
    gulp.parallel(
      html,
      cssDev,
      jsDev,
      imgDev,
      svg,
      fontsDev,
      video,
      json
    )
  ));
}

function build() {
  return new Promise(gulp.series(
    clear,
    gulp.parallel(
      html,
      cssBuild,
      jsBuild,
      fontsBuild,
      imgBuild,
      svg,
      video,
      json
    )
  ));
}

exports.clear = clear;
exports.html = html;
exports.cssDev = cssDev;
exports.cssBuild = cssBuild;
exports.jsDev = jsDev;
exports.jsBuild = jsBuild;
exports.imgDev = imgDev;
exports.imgBuild = imgBuild;
exports.svg = svg;
exports.fontsDev = fontsDev;
exports.fontsBuild = fontsBuild;
exports.video = video;
exports.json = json;
exports.serve = serve;
exports.watch = watch;

exports.dev = dev;
exports.build = build;

exports.default = gulp.series(
  dev,
  gulp.parallel(serve, watch)
);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question