var pick = require('lodash/object/pick');
var dir = require('node-dir');
var components = [];
dir.readFiles('/dev/focus-components/src',
    {match: /package.json/},
    function(err, content, next) {
        if (err) {throw err;}
        components.push(pick(JSON.parse(content), 'name','version','description','keywords','photo'));
        console.log('content:', content);
        next();
    },
    function(err, files){
        if (err) {throw err;}
        console.log('finished reading files:', files);
        console.log('components', components);
});

@@ -87,16 +87,39 @@
 s = %5B%5D;%0A
+var exampleIndex = %7B%7D;%0A
 dir.read
@@ -208,16 +208,26 @@
 content,
+ filename,
  next) %7B
@@ -265,16 +265,20 @@
         
+var 
 componen
@@ -282,20 +282,16 @@
 nent
-s.push(pick(
+Infos = 
 JSON
@@ -309,61 +309,204 @@
 ent)
-, 'name','version','description','keywords','photo'))
+;%0A        //push the components into the list%0A        components.push(pick(componentInfos, 'name','version','description','keywords','photo'));%0A        exampleIndex%5BcomponentInfos.name%5D = filename
 ;%0A  
@@ -726,12 +726,63 @@
 nents);%0A
+        console.log('exampleIndex', exampleIndex);%0A
 %7D);%0A

Add components and filePath.