@insite/create-sdc
v1.0.3
Published
Create Drupal SDC components
Downloads
2
Readme
@insite/create-sdc
Generate basics Drupal Single Directory Components using Plop.
Installation
yarn add -D @insite/create-sdc
npm install --save-dev @insite/create-sdc
Basics
The generator provides basic markup and support for Drupal variables, as well as optionnal files like .js, .stories.twig and .scss.
Supported Templates
- 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.