Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 660 Bytes

File metadata and controls

28 lines (22 loc) · 660 Bytes

Storybook Drupal Example

An example Drupal install with Storybook to previews of Single Directory Components.

Set Up

Add the following rules to the web/sites/development.services.yml file.

parameters:
  storybook.development: true
  cors.config:
    enabled: true
    allowedHeaders: [ '*' ]
    allowedMethods: [ '*' ]
    allowedOrigins: [ '*' ]
    exposedHeaders: false
    maxAge: false
    supportsCredentials: true

Make Commands

  • drupal-install - Install Drupal using built in config.
  • generate-stories - Generate all stories.
  • storybook-build - Build storybook from inside DDEV.
  • storybook - Run storybook from inside DDEV