Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.65 KB

DEVELOPMENT.md

File metadata and controls

66 lines (41 loc) · 1.65 KB

Development

This repository is structured as a monorepo. That means each package is published independently on npm.

Links

Tutorials

Setup

  1. Install NodeJS >= 10.x:

    # On macOS
    brew install node
  2. Install lerna cli:

    npm i -g lerna
  3. Install all dependencies:

    yarn
  4. Build the projects

    yarn build && yarn build:example
  5. Run in Dev (Watch) Mode

    yarn dev

Useful Commands

Add package to workspace

 yarn add <pkg> -W

Otherwise just go in each pacakge folder and use yarn normally.

Releasing

Releases, versioning and Changelogs are handled by changesets.

Whenever you fix something or add a feature or open a PR, add a changeset file by running yarn changeset and answer the prompts.

When these are merged to main branch, the changeset/action in version workflow will open a new PR with all the changes related to releasing done.

Merge that PR with a merge commit and version number as the commit message and create a Github Release with the version number as the tag, and it will trigger the release workflow that will publish these to npm.