Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

getting the name of the collection in the json #22

Open
@newtonianb

Description

@newtonianb

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions