react-styleguidist
Version:
React components style guide generator
13 lines (11 loc) • 349 B
JavaScript
const processComponent = require('./processComponent');
/**
* Process each component in a list.
*
* @param {Array} components File names of components.
* @param {object} config
* @returns {object|null}
*/
module.exports = function getComponents(components, config) {
return components.map(filepath => processComponent(filepath, config));
};