Open suederade opened 8 years ago
Missed a .*
Need it to clean out the entire folder, so that doesn't work and I have to run gulp-clean
twice to make it work.
events.js:141 throw er; // Unhandled 'error' event ^
Error: ENOENT: no such file or directory, lstat '/root/.jenkins/jobs/sdist/workspace/build_act-online_1464000756822/img/4/40762a726aa1e118.png' at Error (native)
If a file not found, it will throw a js Error
this might help
`var fs = require('fs');
var clean = require('gulp-clean');
function checkDirectorySync(directory) {
try {
fs.statSync(directory);
} catch(e) {
fs.mkdirSync(directory);
}
}
gulp.task('cleanProduction', function () { checkDirectorySync('./production/'); return gulp.src('production') .pipe(clean({force: true})) });`
I also found this problem.
The problem seems to be with using glob patterns on clean. If you remove the glob extension:
var delConfig = [].concat(config.build, config.temp);
return gulp.src(delConfig, {read: false})
.pipe($.clean());
it should work.
config.build
=./build/
config.temp
=./src/client/.tmp/
Before I changed
config.build + '**/*
fromconfig.build
it just kept hitting my html views and giving me a no such file error and now it just does it on random files.