Skip to content

Add reporter for user defined tasks only #13

Closed
wants to merge 4 commits into from

2 participants

@iwarren
iwarren commented Mar 4, 2014

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.

Ian Warren added some commits Feb 10, 2014
Ian Warren 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)
f159a4a
Ian Warren Fix to reversed logic d4cdf44
Ian Warren Merge remote-tracking branch 'upstream/master' a6aaaf7
Ian Warren Update readme to include project reporter 0f207f2
@ben-eb
Owner
ben-eb commented Mar 5, 2014

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?

availabletasks: {
    tasks: {
        options: {
            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.

@iwarren
@ben-eb
Owner
ben-eb commented Mar 5, 2014

Yeah I think having an array of task types to include would work.

@ben-eb
Owner
ben-eb commented Apr 20, 2014

Fixed in 0.5.0.

@ben-eb ben-eb closed this Apr 20, 2014
@iwarren
iwarren commented Jun 2, 2014

Sorry for disappearing, got pulled off onto some high priority work and forgot about this. Thank you for fixing this.

@ben-eb
Owner
ben-eb commented Jun 2, 2014

No problem. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.