code: function (config, component, componentConfigFile) {
      var filePaths = [];
      var file;
  
      console.log(component, componentConfigFile);
      console.log(componentConfigFile.main);
  
      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 {
          file = path.join(config.get('bower-directory'), component, componentConfigFile.name + '.js');
          if (fs.existsSync(file)) {
              filePaths = [componentConfigFile.name + '.js'];
          }
      }
  
      return filePaths.map(function (file) {
          return path.join(config.get('bower-directory'), component, file);
      });
  }
docs: Find the main file the component refers to. It's not always main :(
  
  @param  {object} config        the global configuration object
  @param  {string} component     the name of the component to dig for
  @param  {componentConfigFile}  the component's config file
  @return {array} the array of paths to the component's primary file(s)