grunt-filerev
                                
                                 grunt-filerev copied to clipboard
                                
                                    grunt-filerev copied to clipboard
                            
                            
                            
                        getting the name of the collection in the json
We are looking for the best way to get the name of the actual collection/grunt task in the json output so what we are looking for in the json is something like this.
{
  collection_one: [
    "source " : "destination"
  ]
}
instead of
{
    "source " : "destination"
}
We found a way to accomplish this by editing the filerev source but we don't like this idea. Would there happen to be a trick or different library we could use to accomplish this?
if (filerev.summary[el.collection] === undefined) {filerev.summary[el.collection] = {};}
filerev.summary[el.collection][path.normalize(file)] = path.join(dirname, newName);
can you explain that a bit? or what you are trying to accomplish with this?
@newtonianb ^^ Could you maybe do a PR with that change with accompanying tests?
Ok reopening this because I can see value in it. Closed it initially due to lack of feedback.
{
  collection_one: {
    "source " : "destination",
    "config: : { options from the grunt config for this task
  }
}