Files
alfresco-ng2-components/docs/storybook/using-storybook.md

1.1 KiB

Using Storybook

This guide explains how to run and build Storybook for the entire repository and for individual libraries within the Alfresco Angular Components project.

Introduction

Storybook is used in this repository to develop and showcase components in isolation. It provides a sandbox environment where you can interact with components and view their different states.

Running All Stories

To run the aggregated Storybook that includes stories from all libraries (Core, Content Services, Process Services Cloud, etc.), use the following command:

npm run storybook

Once started, you can access the Storybook interface at: http://localhost:4400/

Building Storybook

To build the static Storybook application (e.g., for deployment), use the following command:

npm run build-storybook

The build artifacts will be output to dist/storybook/stories.