code: function buildPattern(patternObj, options) {
    const patternFile = { path: patternObj.path };
    return Object.assign(patternObj, {
      name:
        (patternObj.data && patternObj.data.name) ||
        titleCase(resourceKey(patternFile))
    });
  }
docs: Flesh out an individual pattern object.
  
  @param {Object} patternObj
  @param {Object} options
  @return {Object} built-out pattern