Thanks for your interest in contributing to Greenfield Toolkit! Please take a moment to review this document before submitting a pull request.
This project relies on nodejs
, and uses pnpm
as a package manager, make sure you have them installed:
Then simply clone the repository and enter the directory:
git clone https://github.com/node-real/greenfield-toolkit.git
git cd greenfield-toolkit
Install the dependencies and start the local development environment:
pnpm install
pnpm dev
In default, this will run a vite example, you can use this example for development and debugging. Any changes in packages/uploadkit
will trigger a refresh.
We use eslint
and our code formatting rules are defined in .eslintrc.cjs, you can check your code by running:
pnpm lint
Besides, before committing, git hook will automatically run eslint to check and fix errors.
Any changes need a test, please make sure all your changes are tested before committing.
Just submit an issue though github issue page.
A complete development workflow like following:
- Create a new branch out of
main
branch - Make some changes, fix bugs or add new features
- Run
pnpm changeset
to create a new changeset - Commit the code, code review is required, after code review, we can merge the code to
main
branch - Then github action will automatically execute and create a new release PR, merge this PR, a new version will be released