Skip to content

Add ability to easily run the pattern library (Storybook) #47

@lb-

Description

@lb-

It would be great to have a single command to set up and run the pattern library (Storybook).

Development instructions are here https://docs.wagtail.org/en/stable/contributing/developing.html#using-the-pattern-library

This would need to run two servers, the Wagtail / Django server against the test database and also the Storybook local development server.

e.g. make pattern-library - which would run the following...

export DJANGO_SETTINGS_MODULE=wagtail.test.settings_ui
# Assumes the current environment contains a valid installation of Wagtail for local development.
./wagtail/test/manage.py migrate
./wagtail/test/manage.py createcachetable
./wagtail/test/manage.py runserver 0:8000
# In a separate terminal: - serves by default at :6006
npm run storybook

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions