Socket
Book a DemoInstallSign in
Socket

generator-sb-drupal

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-sb-drupal

Generates components for a Drupal-based Storybook project.

0.2.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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)

Keywords

yeoman-generator

FAQs

Package last updated on 04 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.