Allow generation of story .json files into a subdirectory.

Created on 9 May 2024, 8 months ago

Problem/Motivation

Currently *.story.json files are generated into the same SDC directory as the *.story.twig files from which they are derived.

It is common for generated files to be written into a subdirectory where they can easily be ignored by GIT or hidden from IDEs. (For example: `src/*.js` files build or minify to `dist/*.js` etc.)

Proposed resolution

Provide an optional argument to `storybook:generate-all-stories` that is the subdirectory to which story.json files should be written.

Example: `drush storybook:generate-all-stories dist --omit-server-url`

  • /components
    • /button
      • button.story.twig (source file)
      • /dist
        • button.story.json (generated file)
✨ Feature request
Status

Active

Version

1.0

Component

Storybook

Created by

πŸ‡ΊπŸ‡ΈUnited States bradwade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024