Thank you for your interest in contributing to JS Utils Kit. Whether you're fixing bugs, proposing new utilities, refining documentation, or improving tests, your contributions are valuable and appreciated.
Before getting started, ensure you have the following installed:
Fork the repository on GitHub.
Clone your fork:
git clone https://github.com/your-username/js-utils-kit.git
cd js-utils-kit
Install dependencies:
yarn install
Run tests:
yarn test
Directory | Purpose |
---|---|
src/ |
Source code organized by category |
bin/ |
CLI entry points |
tests/ |
Unit tests using Jest |
scripts/ |
Development tools (e.g. index builder) |
docs/ |
Generated TypeDoc documentation |
Command | Description |
---|---|
yarn test |
Run all Jest tests |
yarn gen:indexes |
Generate export indexes for all categories |
yarn build |
Compile project to CJS, ESM, and type files |
yarn docs |
Generate TypeScript documentation via TypeDoc |
prebuild |
Automatically runs gen:indexes before build |
postbuild |
Automatically generates documentation after build |
Create a new branch:
git checkout -b feat/your-feature-name
Make changes and commit with a clear message:
git commit -m "feat: add clamp utility"
Test and build before opening a PR:
yarn test
yarn build
Push and open a Pull Request on GitHub.
Follow Conventional Commits for commit messages:
feat:
for new featuresfix:
for bug fixesdocs:
for documentation changesrefactor:
for code refactoring (no feature or fix)test:
for adding or updating testschore:
for tooling, CI, or build changesAll tests are located in the tests/
directory and use Jest.
To run the test suite:
yarn test
Ensure new utilities are covered with appropriate test cases.
The CLI entry point is in bin/index.ts
, powered by Commander.
To test it locally:
node dist/cli/index.js --help
Before opening a pull request, make sure:
index.ts
If you have questions or need clarification, feel free to open an issue or start a discussion. Thank you for helping improve JS Utils Kit.