build/component-docs-archive.js
function globSearch(searchRegex) {
  const search = path.join(__dirname, '..', `${searchRegex}`)
  return glob(`${search}`, {ignore: ['**/node_modules/**']})
  .then(files => {
    return new Promise((resolve, reject) => {
      resolve(archiveComps(files))
    })
  })
  .catch(globErr)
}
function globSearch(searchRegex) {
  const search = path.join(__dirname, '..', `${searchRegex}`)
  return glob(`${search}`, {ignore: ['**/node_modules/**']})
  .then(files => {
    return new Promise((resolve, reject) => {
      resolve(archiveComps(files))
    })
  })
  .catch(globErr)
}
function globSearch ( searchRegex ) { const search = path . join ( __dirname , '..' , ` ${ searchRegex } ` ) return glob ( ` ${ search } ` , { ignore : [ '**/node_modules/**' ] } ) . then ( files => { return new Promise ( ( resolve , reject ) => { resolve ( archiveComps ( files ) ) } ) } ) . catch ( globErr ) }
Search for data objects associated with each Cedar component|composition
@param {String} searchRegex -- Regex used to search for component|composition data objects
@returns {Promise} -- Promisified version of glob search
Search for data objects associated with each Cedar component|composition