gulp-instrument
v0.1.0
Published
Gulp plugin for instrumenting code using jscoverage (or other instrumentation engine).
Downloads
25
Maintainers
Readme
gulp-instrument
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.