gulp-surgeon

0.1.2 • Public • Published

Gulp-surgeon

Surgical precision for Gulp

What it does

Surgeon works much like gulp-concat. The difference is, that in addition to concatinating the files, it adds a signature to their source file. This allows it to later modify the destination file without having to read and recompile all of the other files.

Example Usage

var stylPaths = ['lib/**/*.styl'];
gulp.task('styles', function() {
  gulp.src(stylPaths)
    .pipe(stylus)
    .pipe(surgeon.stitch('app.css'))
    .pipe(gulp.dest('public/'));
}
 
gulp.watch(stylPaths), function(event) {
  gulp.src(event.path)
    .pipe(stylus)
    .pipe(surgeon.slice('public/app.css'))
    .pipe(gulp.dest('public/'));
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-surgeon

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • rschmukler