Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 716 Bytes

File metadata and controls

44 lines (31 loc) · 716 Bytes

@acme/storybook-config

A collection of configurations:

  • @acme/storybook-config/main
  • @acme/storybook-config/preview

Installation:

Install the package into the consuming app/lib configuration.

If in a turborepo:

// package.json
{
  "devDependencies": {
    "@acme/storybook-config": "*"
    // ...
  }
}

If NOT in a Turborepo:

yarn add -D @acme/storybook-config

Usage

Use the package withing the consuming app/lib configuration.

// .storybook/main.js
module.exports = require('@acme/storybook-config/main');
// .storybook/preview.js
import * as sharedConfig from '@acme/storybook-config/preview';

export const parameters = sharedConfig.parameters;