copy task is completed, the files in the proDir will be manipulated later. However, subsequent operations often fail because the copy of the file has not been completed.
how should I monitor the status of the completion of the dest copy?
gulp.task("copy",["clear"],function(cb){
const dirs = getFolders(srcDir)
dirs.map( (dir,index) =>{
const commons = gulp.src([devDir,`!${path.join(__dirname, "../dev/config.js")}`,`!${path.join(__dirname, "../dev/project.config.json")}`])
const configs = gulp.src(path.join(srcDir,dir,"/**"))
return merge(commons,configs).pipe(gulp.dest(path.join(proDir,dir)))
})
})