After forking and cloning the repo, run yarn
to install the dependencies.
The dependencies have to be managed with Yarn, because we need it's
resolutions
feature.
We use Storybook for local development of the package. You can start your local Storybook development environment by running
yarn storybook
A browser window should be opened with Storybook already open, if not, open http://localhost:6006/.
We write the main documentation directly within Storybook. The docs live right inside the code, via JSDoc comments.
The deployment of the documentation is fully automated. Just push to the
main
-branch and a new version of the documentation will be published
automatically.
A GitHub is set up to publish a new version to NPM after creating a GitHub Release.
So to publish a new version,
- Create a tag using
npm version patch|minor|major
. Refer to the semantic versioning specification. - Push the tag to GitHub.
- Create a GitHub release for that tag.
A GitHub Action will pick up the fresh release and build and publish the new version to NPM.