node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

gulp-instrument

gulp-instrument

Build Status NPM version Dependency Status

Gulp plugin for instrumenting code using jscoverage (or other instrumentation engine).

Install

npm install --save gulp-instrument

Usage

In your gulpfile.js:

var gulp = require('gulp')
  , instrument = require('gulp-instrument');
 
gulp.task('instrument', function() {
  return gulp.src('lib/**.js')
    .pipe(instrument())
    .pipe(gulp.dest('lib-cov'));
});

Instrumentation engine

Currently only jscoverage is supported, but support for other engines could be added easily if somebody would like to contribute.

BSD Licensed