0.2.1 • Published 3 years ago
generator-sb-drupal v0.2.1
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 yoInstall this generator as a dev dependency to your project.
npm install -D generator-sb-drupalUsage
This generator should be run from the root of your project.
yo sb-drupal:componentFollow 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)