Thanks for showing interest to contribute to Blocto JavaScript SDK, you rock!
When it comes to open source, there are different ways you can contribute, all of which are valuable. Here's a few guidelines that should help you as you prepare your contribution.
The following steps will get you up and running to contribute to Chakra UI:
-
Fork the repo (click the Fork button at the top right of this page)
-
Clone your fork locally
git clone https://github.com/<your_github_username>/blocto-sdk.git
cd blocto-sdk
- Setup all the dependencies and packages by running
yarn
. This command will install dependencies.
To improve our development process, we've set up tooling and systems. Blocto JavaScript SDK is a monorepo built with turbo and follows its file structure convention. The repo has 2 workspaces adapters
and packages
.
Before you create a Pull Request, please check whether your commits comply with the commit conventions used in this repository.
When you create a commit we kindly ask you to follow the convention
category(scope or module): message
in your commit message while using one of
the following categories:
feat
: all changes that introduce completely new code or new featuresfix
: changes that fix a bug (ideally you will additionally reference an issue if present)refactor
: any code related change that is not a fix nor a featuredocs
: changing existing or creating new documentation (i.e. README, docs for usage of a lib or cli usage)build
: all changes regarding the build of the software, changes to dependencies or the addition of new dependenciestest
: all changes regarding tests (adding new tests or changing existing ones)ci
: all changes regarding the configuration of continuous integration (i.e. github actions, ci system)chore
: all changes to the repository that do not fit into any of the above categories
If you are interested in the detailed specification you can visit https://www.conventionalcommits.org/ or check out the Angular Commit Message Guidelines.
You are welcome to create a pull reuqest against the develop
branch. The beta release channel goes here. When it's stable, we will pack it all and release in stable channel.
Before creating a PR
- Make sure your branch is up to date with the
develop
branch - On the
root
folder, runyarn
- On the
root
folder, runyarn build
- If a pull request created needs to bump a package version, please see Changesets part and add a changesets.
If everything passes, you should be able to create a PR.
We use changesets to handle any changes in the changelog
.
If a pull request created needs to bump a package version, please follow those steps to create a changelog
- On the
root
folder, runyarn changeset
and follow the prompt instructions (we follow SemVer)Tips: Skip Major and Minor in prompt means a Patch update
- Under
.changeset/
you will notice a new markdown file (its name is randomly generated), with the change-type and summary. - Push the file along with the rest of the changes
Once your PR will be merged, our Github action will create a new PR with that generated changelog for us to merge, once the generated PR is merged a new version will be published to npm.