src/parse/patterns.js
function buildPattern(patternObj, options) {
  const patternFile = { path: patternObj.path };
  return Object.assign(patternObj, {
    name:
      (patternObj.data && patternObj.data.name) ||
      titleCase(resourceKey(patternFile))
  });
}
function buildPattern(patternObj, options) {
  const patternFile = { path: patternObj.path };
  return Object.assign(patternObj, {
    name:
      (patternObj.data && patternObj.data.name) ||
      titleCase(resourceKey(patternFile))
  });
}
function buildPattern ( patternObj , options ) { const patternFile = { path : patternObj . path } ; return Object . assign ( patternObj , { name : ( patternObj . data && patternObj . data . name ) || titleCase ( resourceKey ( patternFile ) ) } ) ; }
Flesh out an individual pattern object.

@param {Object} patternObj
@param {Object} options
@return {Object} built-out pattern
Flesh out an individual pattern object .