build/component-docs-archive.js
function archiveComps(compFiles) {
  return compFiles.reduce((compObjCollection, file) => {
    const compObj = require(`${file}`)
    if (compObj !== null) {
      compObjCollection.push(compObj)
      console.log(`Added object for ${compObj.name} to Cedar Data Object`)
    }
    return compObjCollection
  }, [])
}
function archiveComps(compFiles) {
  return compFiles.reduce((compObjCollection, file) => {
    const compObj = require(`${file}`)
    if (compObj !== null) {
      compObjCollection.push(compObj)
      console.log(`Added object for ${compObj.name} to Cedar Data Object`)
    }
    return compObjCollection
  }, [])
}
function archiveComps ( compFiles ) { return compFiles . reduce ( ( compObjCollection , file ) => { const compObj = require ( ` ${ file } ` ) if ( compObj !== null ) { compObjCollection . push ( compObj ) console . log ( ` ${ compObj . name } ` ) } return compObjCollection } , [ ] ) }
Collect the data objects representing each Cedar component|composition
@param {Array} compFiles -- File paths of the JSON data object for each Cedar component
@returns {Array} -- Array of JSON data objects for all Cedar componnents|compositions
Collect the data objects representing each Cedar component|composition