Generate basics Drupal Single Directory Components using Plop.
yarn add -D @insite/create-sdc
npm install --save-dev @insite/create-sdc
The generator provides basic markup and support for Drupal variables, as well as optionnal files like .js, .stories.twig and .scss.
- Base: Basic component with a content slot.
- Block: Block component supporting default Drupal variables, with a content slot.
- Card: Card component, with header/content/footer slots or a global content slot.
- Field: Field component supporting default Drupal variables.
- View: View component supporting default Drupal variables.