Yeoman generator for Drupal components
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generators
.gitignore
LICENSE
README.md
package.json

README.md

generator-drupal-component

Yeoman generator for Drupal components. This is NOT for generating standard Drupal modules.

Install Yeoman:

npm install -g yo

Install the drupal-component generator:

npm install -g StoraH/generator-drupal-component

Generate component

yo drupal-component
  • Name
  • js file (yes/no)
  • scss fil (yes/no)
  • twig (yes/no)
  • drupal module? (yes/no)
  • ctools content type? (yes/no)
  • views style plugin? (yes/no)

Generate component parts

yo drupal-component:js

yo drupal-component:scss

yo drupal-component:twig

yo drupal-component:module

yo drupal-component:ctools-content_type

yo drupal-component:views_style_plugin