We'd love to accept your patches and contributions to this project.
To set up your local development environment for contributing:
-
Clone the repository:
git clone https://github.com/google/adk-js.git cd adk-js -
Install dependencies:
npm install
-
Build and test: Ensure everything is working correctly:
npm run build npm test
To maintain high code quality and consistency:
-
Linting: Use ESLint to check for code quality issues.
npm run lint
To automatically fix some linting issues:
npm run lint:fix
-
Formatting: Use Prettier for consistent code styling.
npm run format
The project uses husky and lint-staged to automatically lint and format
your changes before each commit.
Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.
Visit https://cla.developers.google.com/ to see your current agreements or to sign a new one.
This project follows Google's Open Source Community Guidelines.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
It's ok to generate the first draft using AI but we would like code which has gone through human refinement.
We want our TSDocs to be concise and meaningful. Usually aligned with adk-python.