CONTRIBUTING.md
This file
Path
docs/CONTRIBUTING.md
60 lines · 2.2 KiB · Markdown
Last changed by
chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55
History of this fileTake it
The walk stopped after 200 commits: lines older than 83bfb3b point at it.
4.12.23Yusuke Wadabefore adoption83bfb3b
lines 1–24why, one step back1# Contribution Guide23Contributions Welcome! We will be glad for your help.4You can contribute in the following ways.56- Create an Issue - Propose a new feature. Report a bug.7- Pull Request - Fix a bug or typo. Refactor the code.8- Create third-party middleware - See instructions below.9- Share - Share your thoughts on the Blog, X, and others.10- Make your application - Please try to use Hono.1112Note:13This project is started by Yusuke Wada ([@yusukebe](https://github.com/yusukebe)) for the hobby proposal.14It was just for fun. For now, this stance has not been changed basically.15I want to write the code as I like.16So, if you propose great ideas, but I do not appropriate them, the idea may not be accepted.1718Although, don't worry!19Hono is tested well, polished by the contributors, and used by many developers. And I'll try my best to make Hono cool and hot, beautiful, and ultrafast.2021## AI Usage Policy2223You may use AI to contribute, but it must never waste a maintainer's time or make their work unpleasant.24docs(contribution): simplifyAI Usage Policy (#4972)Yusuke Wadabefore adoption9051d3e
line 25why, one step back25To enforce this, and regardless of whether AI was actually used, a maintainer may close your PR without notice and block your account.4.12.23Yusuke Wadabefore adoption83bfb3b
lines 26–28why, one step back2627## Installing dependencies28chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55
line 29why, one step back29The `honojs/hono` project uses [pnpm](https://pnpm.io/) as its package manager, and [Bun](https://bun.sh/) to run the build and some of the tests. Developers should install both.4.12.23Yusuke Wadabefore adoption83bfb3b
lines 30–33why, one step back3031After that, please install the dependency environment.3233```bashchore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55
line 34why, one step back34pnpm install --frozen-lockfile4.12.23Yusuke Wadabefore adoption83bfb3b
lines 35–38why, one step back35```3637## PRs38chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55
line 39why, one step back39Please ensure your PR passes tests with `pnpm run test`.4.12.23Yusuke Wadabefore adoption83bfb3b
lines 40–58why, one step back4041## Third-party middleware4243Third-party middleware is not in the core.44It is allowed to depend on other libraries or work only in specific environments, such as Cloudflare Workers. For example:4546- GraphQL Server middleware47- Firebase Auth middleware48- Sentry middleware4950You can make a third-party middleware by yourself.51It may be under the "honojs organization" and distributed in the `@honojs` namespace.5253The monorepo "[honojs/middleware](https://github.com/honojs/middleware)" manages these middleware.54If you want to do it, create an issue about your middleware.5556## Local Development5758```bashchore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55
line 59why, one step back59git clone git@github.com:honojs/hono.git && cd hono && pnpm install --frozen-lockfile4.12.23Yusuke Wadabefore adoption83bfb3b
line 60why, one step back60```