Skip to content

Compare destination path with gulp.src files and remove missing.

License

Notifications You must be signed in to change notification settings

ellukesmith/gulp-deleted

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-deleted

The gulp plugin gulp-deleted allows you to remove files from the destination folder which do no exist in the source stream (with exclusions);

Best used in conjunction with gulp-collate and gulp-changed

var srcPaths = [ "src/**/assets/**/*" ]
var destPath = "dest/"
gulp.src( srcPaths )
	.pipe( collate("assets") )
	.pipe( deleted( destPath , [
			"**/*",
			"!index.html"
		]))
	.pipe( changed(destPath) )
	.pipe( gulp.dest( destPath ) );

About

Compare destination path with gulp.src files and remove missing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%