1.1.2 • Published 4 years ago

gulp-dest-atomic v1.1.2

Weekly downloads
14
License
ISC
Repository
github
Last release
4 years ago

gulp-dest-atomic

drop-in replacement for gulp.dest that writes output atomically

Usage

Just replace your calls to gulp.dest with destAtomic. Each generated file from the Vinyl stream will be written under a temporary name, then moved into place.

destAtomic accepts all the same options as gulp.dest.

var destAtomic = require('gulp-dest-atomic');

gulp.task('build', function() {
  return gulp.src('some/*/glob')
    .pipe(someTransform())
    .pipe(destAtomic('./dest/path'));
});

You could also load it through gulp-load-plugins if you prefer:

var $ = require('gulp-load-plugins')();

gulp.task('build', function() {
  return gulp.src('some/*/glob')
    .pipe(someTransform())
    .pipe($.destAtomic('./dest/path'));
});
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago