tschaub / gulp-newer

Pass through newer source files only
https://npmjs.org/package/gulp-newer
226 stars 24 forks source link

non existant file is not returned as 'changed' #8

Open airtonix opened 9 years ago

airtonix commented 9 years ago

README says : 'if target file does not exist, it is returned as if it had changed'

in reality this doesn't happen.

gulp.src pipeline.target.root
  .pipe plugins.newer pipeline.target.root
  .pipe plugins.rimraf()
  .pipe plugins.rev()
  .pipe gulp.dest pipeline.target.root
  .pipe plugins.rev.manifest path: 'manifest.json'
  .pipe gulp.dest path.resolve pipeline.target.root, '..'

On running this task, no file gets deleted nor hashed therefore the manifest is never created/updated.