Scaffold your Single Directory Components.
Use the CLI to give you a starting point for your component. This includes:
- The
my-thing.component.yml
file. - The
README.md
- The
thumbnail.png
- The component's Twig templates, including the ones for variants
- The JS file.
- The CSS file.
The most significant part is the generation of metadata.json
, which contains critical metadata information.
See it in action (1m 26s):
Usage
drush pm:enable --yes cl_generator
drush generate theme:sdc:component
Then answer the questions in the prompt. Done.
What version should I use?
Select the version of this module based on the component solution that you are using.
IMPORTANT: You don't need this module if your project runs Drush 12 or later. It is included in Drush 12+.
CL Components | SDC | SDC from core |
---|---|---|
Use 1.x |
Use 2.x |
Use 2.x |
Supporting organizations:
Development and maintenance
Project information
- Ecosystem: Component Libraries: Components
- 104 sites report using this module
- Created by e0ipso on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
2.0.0-beta1
released 1 May 2023
Works with Drupal: ^9 || ^10
✓ Recommended by the project’s maintainer.
Install:
Development version: 2.x-dev updated 1 May 2023 at 20:36 UTC