0.0.3 • Published 8 years ago

gulp-deleted2 v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-deleted

The gulp plugin gulp-deleted allows you to remove files from the destination folder which do not 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 ) );