docs: function findMainFiles(config, component, componentConfigFile) {
    var filePaths = [];
    var file = {};
    var self = config.get('include-self') && component === config.get('bower.json').name;
    var cwd = self ? config.get('cwd') : $.path.join(config.get('bower-directory'), component);
  
    if ($._.isString(componentConfigFile.main)) {
      // start by looking for what every component should have: config.main
      filePaths = [componentConfigFile.main];
    } else if ($._.isArray(componentConfigFile.main)) {
      filePaths = componentConfigFile.main;
    } else if ($._.isArray(componentConfigFile.scripts)) {
      // still haven't found it. is it stored in config.scripts, then?
      filePaths = componentConfigFile.scripts;
    } else {
      ['js', 'css']
        .forEach(function (type) {
          file[type] = $.path.join(config.get('bower-directory'), component, componentConfigFile.name + '.' + type);
  
          if ($.fs.existsSync(file[type])) {
            filePaths.push(componentConfigFile.name + '.' + type);
          }
        });
    }
  
    return $._.uniq(filePaths.reduce(function (acc, filePath) {
      acc = acc.concat(
        $.glob.sync(filePath, { cwd: cwd, root: '/' })
          .map(function (path) {
            return $.path.join(cwd, path);
          })
      );
      return acc;
    }, []));
  }