code: function processComponent(component) {
      let name = component.name;
      if (component.variant) {
          name += ` (${component.variant})`;
      }
      const pathName = component.path.slice(0);
      pathName.push(name);
  
      // If the component is invalid
      if (!component.valid) {
          console.log(`${chalk.bold.red('X')} ${pathName.join('/')}`);
          return;
      }
  
      console.log(`${chalk.green('√')} ${pathName.join('/')}`);
      registerComponent(component);
  }
docs: Process a component
  
  @param {Object} component Component