0.2.1 • Published 2 years ago

generator-sb-drupal v0.2.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

generator-sb-drupal

This package provides a Yeoman generator for Twig-based Storybook components to be used within projects based on the mel-miller/sb-drupal approach to creating a Drupal/Twig Storybook instance.

Install

Install Yeoman globally.

npm install -g yo

Install this generator as a dev dependency to your project.

npm install -D generator-sb-drupal

Usage

This generator should be run from the root of your project.

yo sb-drupal:component

Follow the prompts and a new directory will be created within the proper category directory in src. The new directory will contain the following starter files:

  • {component-name}.stories.js
  • {component-name}.twig
  • _{component-name}.scss
  • {component-name}.docs.mdx
  • {component-name}.behaviors.js (if selected)
0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago