@abcnews/story-lab-component-library
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Story Lab component library

A collection of reusable React components for use in Story Lab ... stories.

Usage

npm install @abcnews/story-lab-component-library

This library is in its infancy and is barely documented or even useful.

You can see all available components in the storybook

Development

Get started:

git clone https://github.com/abcnews/story-lab-component-library.git
cd story-lab-component-library
npm i

This repository uses TSDX with Storybook.

The recommended workflow is to run TSDX in one terminal and Storybook in another:

npm start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

Storybook

Run inside another terminal:

npm run storybook

This loads the stories from ./stories.

NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.

Build & release

Releases are built and deployed using np.

npm run release

If you're deploying a new production release, you should also update the Storybook. The following command will freshly build and deploy it to GitHub pages.

npm run deploy-storybook

/@abcnews/story-lab-component-library/

    Package Sidebar

    Install

    npm i @abcnews/story-lab-component-library

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    27.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • ashkyd
    • jtfell
    • phocks
    • andrewkesper
    • drzax