Thanks for that you are interested in contributing to Farrow.
To develop locally:
-
Fork this repository to your own GitHub account and then clone it to your local.
-
Create a new branch:
git checkout -b MY_BRANCH_NAME
-
Install pnpm:
npm install -g pnpm
-
Install the dependencies with:
pnpm install
-
Go into package which you want to contribute.
cd ./packages/*
-
Start developing.
You can build single package, with:
cd ./packages/*
pnpm run build
build all packages, with:
pnpm run build
If you need to clean all node_modules/*
the project for any reason, with
pnpm run clean:deps
Clean build outputs with
pnpm run clean:build
Clean all of them
pnpm run clean
You need write th new tests for new feature or modify exist tests for changes.
We wish you write unit tests at PACKAGE_DIR/__tests__
.
pnpm run test
To check the formatting of your code:
pnpm run lint
To format your code:
pnpm run format
We use pnpm and changeset to manage version and changelog.
Repository maintainers can publish a new version of all packages to npm.
-
Fetch newest code at branch
main
. -
Install
pnpm install
-
Build
pnpm run build
-
Add changeset
pnpm run change
-
Release
pnpm run release
-
Push commit and tag
git push git push --tag