gulp-todo
Generate a TODO.md file from your javascript todos and fixmes
Parse all your javascript files through Esprima, and generate a todo.md
Install with npm
$ npm install --save-dev gulp-todo
var gulp = require('gulp');
var todo = require('gulp-todo');
gulp.task('default', function() {
gulp.src('js/**/*.js')
.pipe(todo())
.pipe(gulp.dest('./'));
});
Options can be passed along as an object containing the following fields:
Type: String
Default: todo.md
Specify the output filename.
Type: String
Default: \n
How to separate lines in the output file. Defaults to your OS's default line separator.
Type: Boolean
Default: false
Output comments to console as well.
//...
.pipe(todo({
fileName: 'todo.md',
newLine: '\n',
verbose: false
}))
//...
MIT ©2014 Gilad Peleg