code: function getComponentData(data) {
      const component = findComponent(data.id);
      component.template = pathTrimStart(path.join(data.path, `${data.id}.html`));
      return component;
  }
docs: data format: { label: 'Foo', id: 'foo', path: '/components/foo' }