Thanks for your interest in contributing to @antv/layout! Issues and pull requests are welcome.
Install dependencies:
npm installBuild the library:
npm run buildStart the dev server:
npm run devThe docs live in site/ and are built with Rspress.
npm --prefix site install
npm --prefix site run devRun unit tests with Jest:
npm testTo collect coverage:
npm run test:coverage- Check existing issues before creating a new one.
- Provide a clear title, reproduction steps, and environment details.
If you have write access, create a branch and open a PR. Otherwise, fork the repo and open a PR from your fork.
git checkout -b branch-name
npm test
git add .
git commit -m "fix(layout): describe your change"
git push origin branch-namePlease include:
- The problem or feature request (link an issue if possible).
- Why the change is needed.
- Test coverage or verification steps.
- Any compatibility notes or migration hints.
Follow the Angular commit message format:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
Types:
- feat: new feature
- fix: bug fix
- docs: documentation
- style: formatting only
- refactor: refactor without behavior change
- perf: performance improvement
- test: tests
- chore: tooling or maintenance
- deps: dependency updates
Breaking changes must be described in the footer with BREAKING CHANGE:.