Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Component Libraries: Generator

Security covered Under active development 1 sites

This project helps developers quickly create the necessary files for Single Directory Components in Drupal. It generates configuration, documentation, Twig templates, JavaScript, CSS, and essential metadata to provide a solid starting point for new components.

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

Ask your assistant about Component Libraries: Generator

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
5
Tracked since
Feb 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.x-dev Dev 9–10 PHP >=8.1 Jun 8, 2023
2.0.0-beta1 Pre-release 9–10 PHP >=8.1 May 1, 2023
2.0.0-alpha2 Pre-release 9–10 PHP >=8.1 Apr 22, 2023
2.0.0-alpha1 Pre-release 8–10 PHP >=8.1 Feb 3, 2023
2.x-dev Dev 9–10 PHP >=8.1 Feb 3, 2023