taichi/grunt-istanbul — pull request #4 by morkai (2013-02-10 16:07:59+00:00)
Title: Added support for multiple reporters to the `makeReport` task.

Hello!

I've added another option to the `makeReport` task: `reporters`. It takes the following form:
```
options: {
reporters: {
'':
}
}
```
where:
- `` is a reporter type supported by Istanbul (lcov, text, text-summary...)
- `` is an options object for the specified reporter type or a truthy value if that reporter does not have any options or a falsy value if that reporter should be skipped.

If the `options.reporters` option is not specified, it will be created from `options` for backwards compatibility:
```js
reporters[options.type] = options;
```

For example, to recreate a result of `istanbul cover --report lcov --print both ...` one can configure the gruntfile like this:
```js
makeReport: {
src: lcovReportDir + '/*.json',
options : {
reporters: {
'lcov': {dir: lcovReportDir},
'text': true,
'text-summary': true
}
}
}
```