function getExampleFilesByPath()

in packages/docpack-examples-compiler/lib/plugin.js [91:105]


function getExampleFilesByPath(sources) {
  var filesByPath = {};

  sources.forEach(function (source) {
    filesByPath[source.absolutePath] = [];

    source.blocks.forEach(function (block) {
      block.examples.forEach(function (example) {
        filesByPath[source.absolutePath] = filesByPath[source.absolutePath].concat(example.files);
      });
    });
  });

  return filesByPath;
}