Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Latest commit

 

History

History
89 lines (57 loc) · 1.87 KB

CONTRIBUTING.md

File metadata and controls

89 lines (57 loc) · 1.87 KB

React InstantSearch

Requirements

To run this project, you will need:

Development

We use the Storybook as the main way to develop React InstantSearch.

yarn
yarn start

Go to http://localhost:6006.

The applications won't reload on code change. To enable the watch mode, run the following command in another tab.

yarn watch

Code

The code for React InstantSearch is located in packages.

Test

We have unit tests written with Jest:

Single run:

yarn test

Watch mode:

yarn test:watch

Lint

yarn lint

Files are automatically formatted with Prettier.

Release

You need to have GITHUB_TOKEN added to your .env file. You can create a personal access token.

yarn release

It will create a pull request for the next release. When it's reviewed, approved and merged, then CircleCI will automatically publish it to npm.

Beta release

yarn release

The script will ask you a question about the next version. If it's wrong, you can say "No" and specify the version (e.g. "7.0.0-beta.0"). Then, it will open a pull request for that release. When the pull request is merged, CircleCI will publish it to npm with a --tag beta argument.

Update docs

yarn docs:deploy-production

Deploy a preview of docs

yarn docs:deploy-preview

This uses netlify.