- Node.js 18+ (LTS/Hydrogen recommended)
- pnpm 9.12.0
- Rush 5.14.0
- Install Node.js 18+
nvm install lts/hydrogen
nvm alias default lts/hydrogen # set default node version
nvm use lts/hydrogen
- Clone the repository
git clone [email protected]:coze-dev/coze-js.git
- Install required global dependencies
npm i -g [email protected] @microsoft/[email protected]
- Install project dependencies
rush update
After that, you can start to develop projects inside this repository.
-
Create a new branch from
main
using the format:feat/description
for featuresfix/description
for bug fixesdocs/description
for documentationchore/description
for maintenance
-
Write code and tests
- Follow our coding standards
- Add/update tests for changes
- Update documentation if needed
-
Ensure quality
- Run
cd path/to/packageName && npm test
for all tests - Run
rush lint
for code style - Run
rush build
to verify build
- Run
-
Create Pull Request
- Use the PR template
- Link related issues
- Provide clear description of changes
-
Review Process
- Maintainers will review your PR
- Address review feedback if any
- Changes must pass CI checks
-
Commit Message Format
type(scope): subject body
Types: feat, fix, docs, style, refactor, test, chore
Report bugs via GitHub Issues. Please include:
- Issue description
- Steps to reproduce
- Expected behavior
- Actual behavior
- Code examples (if applicable)
- Update API documentation for interface changes
- Update README.md if usage is affected
This project is under the MIT License. By submitting code, you agree to these terms.