I felt this type of reporter may be useful for others. I wanted to share it with others by adding it to the available reporters versus just keeping it a function within our project.
This reporter is identical to the default reporter except that it will only print out user defined tasks only.
Add reporter to print user defined tasks only
Create a new reporter, 'project', that is a slight modification to the default reporter to only include user defined
grunt tasks. DRY'ed the two console reporters (probably unnecessarily
so, but out of principle)
Fix to reversed logic
Merge remote-tracking branch 'upstream/master'
Update readme to include project reporter
Interesting approach. I'm wondering if it would be better to have this as an option within the task itself, rather than a reporter; of course the filter option is already being used so the name would have to be different. Perhaps something like this?
showTasks: ['single', 'multi', 'user'] // default options
Then to get this behaviour you'd do showTasks: ['user']. That way the behaviour is shared across the Markdown reporter too.
Yeah I think having an array of task types to include would work.
Fixed in 0.5.0.
Sorry for disappearing, got pulled off onto some high priority work and forgot about this. Thank you for fixing this.
No problem. 😃