简体中文 | English
"My code level is not good ." "Will it be despised?" "Will it be bad?" Don't worry. Feel free to contribute.
We welcome any contribution, whether it's a typo correction or a friendly suggestion, whether it's submitted by Issue, a cool pull request, or a DingTalk group discussion, participate in discussions, look forward to seeing your profile picture in Contributor List.
Currently, we are developing based on the master
branch. Please check out a branch based on master,
and Pull Request if you have any modifications. We will review your PR
for the first time and give you feedback.
We are sorry to push bugs. And we would appreciate that if you could report them to us. To save time on the communication, please give details about the bug as much as possible.
-
First select [Bug report]
-
Fill in the relevant information according to the Issue template.
We are sorry that these steps are a bit redundant. Since every user uses S2 in different situations, system environment, software version, specific steps to reproduce the bug could help us solve the issue in time.
- Fork the project and clone it (or use GitHub's Codespace function, which is very convenient).
- Installation dependency:
pnpm bootstrap
orpnpm
. - Commit your changes, and please follow [AngularJS Git Commit Message Conventions] (https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#heading=h.uyo6cb12dt6w).
- If your change is a bug fix, you can add
close #issue number
after the submission information so that after the pr merge, the related issue could be closed automatically. eg:fix: render bug close #123
. - Make sure to add the related unit test.
- After all Lint and Test checks are passed, and the review is passed, we will merge your pr.
We use pnpm@v8
as package management.
npm i -g pnpm
pnpm bootstrap
: Installation dependency.pnpm site:bootstrap
: Install site related dependencies.pnpm site:start
: Starts the localS2
website.pnpm core:start
: Debug and test local@antv/s2
(Based on jest-electron).pnpm react:start
Debug and test local@antv/s2-react
(Based on jest-electron).pnpm vue:start
Debug and test local@antv/s2-vue
(Based on jest-electron).pnpm react:playground
Starts the local@antv/s2-react
playground (Based on vite).pnpm vue:playground
Starts the local@antv/s2-vue
playground (Based on vite).pnpm build
: Builds@antv/s2
and@antv/s2-react
and@antv/s2-vue
, outputs areumd
,esm
andlib
directories.pnpm test
: Run unit tests.