create a lunr.js index from vinyl file streams using gulp
Note: this plugin is still under development.
var gulp = require('gulp');
var lunr = require('gulp-lunr');
gulp.task('lunr', function() {
return gulp.src('docs/*')
.pipe(lunr('index.json'))
.pipe(gulp.dest('./'));
});