Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

119
Visualizações
Task does not stop in Gulp

I can't figure out why a task in Gulp starts but doesn't end automatically
The task code is as follows:

import del from 'del';
import { projectFolder } from '../config';

const cleanRoot = () => {
  return del(projectFolder);
};

export default cleanRoot;

I run the command and like this it is written in the console:

C:\Users\sy\Desktop\temp>npm run clean
> project-name@1.0.0 clean
> gulp cleanRoot
[16:07:34] Requiring external module @babel/register
[16:07:39] Using gulpfile ~\Desktop\temp\gulpfile.babel.js
[16:07:39] Starting 'cleanRoot'...
[16:07:39] Finished 'cleanRoot' after 60 ms

And everything after Finished hangs the cursor on the next line and nothing happens :)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

When you're creating gulp tasks, gulp injects callback as a first argument of your task function that will notify gulp that your task has ended.

const cleanRoot = (cb) => {
  del(projectFolder);
  cb();
};

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda