Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.46 KB

CONTRIBUTING.md

File metadata and controls

57 lines (38 loc) · 1.46 KB

Contributing storybook-addons-abstract

We're very grateful for outside contributions, as they both improve the robustness of the addon and help inform how the addon is being used in real-world applications. Whether the contribution is a minor documentation fix or major feature enhancement, we're always happy to accept changes that adhere to the expectations in this document.

Setup

Fork and clone the repository:

$ git clone https://github.com/<username>/storybook-addons-abstract

Installation

Install dependencies from the project root using Yarn:

$ cd storybook-addons-abstract && yarn install

Building

Transpile the src directory into a dist directory using Babel:

$ yarn build

Linting

Lint and format all code using Prettier via ESLint:

$ yarn lint --fix

Testing

Run unit tests using Jest:

$ yarn test

Cutting releases

New package versions of storybook-addons-abstract are automatically published to the public NPM registry whenever new tags are pushed to the repository. This repository uses standard-version as a convention to automate versioning, tagging, and changelog generation:

  1. Bump the version and submit a pull request.
    $ yarn release
    $ git push origin <new_tag_version>
  2. Once the PR lands, push the new tag to the repository.
    $ git push origin <new_tag_version>