Component Libraries: Generator
Security covered
Scaffold your Single Directory Components.
Use the CLI to give you a starting point for your component. This includes:
- The
my-thing.component.ymlfile. - 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 Use1.x
Use 2.x
Use 2.x
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 3.x-dev | Dev | Jun 8, 2023 | ||
| 2.0.0-beta1 | Pre-release | May 1, 2023 | ||
| 2.0.0-alpha2 | Pre-release | Apr 22, 2023 | ||
| 2.0.0-alpha1 | Pre-release | Feb 3, 2023 | ||
| 2.x-dev | Dev | Feb 3, 2023 |