Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 83bfb3b point at it.

4.12.23Yusuke Wadabefore adoption83bfb3b

lines 1–24why, one step back
1# Contribution Guide
23Contributions 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.24

docs(contribution): simplifyAI Usage Policy (#4972)Yusuke Wadabefore adoption9051d3e

line 25why, one step back
25To 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 back
26
27## Installing dependencies28

chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55

line 29why, one step back
29The `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 back
30
31After that, please install the dependency environment.3233```bash

chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55

line 34why, one step back
34pnpm install --frozen-lockfile

4.12.23Yusuke Wadabefore adoption83bfb3b

lines 35–38why, one step back
35```
3637## PRs38

chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55

line 39why, one step back
39Please ensure your PR passes tests with `pnpm run test`.

4.12.23Yusuke Wadabefore adoption83bfb3b

lines 40–58why, one step back
40
41## 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```bash

chore: migrate the package manager from bun to pnpm (#5433)Yusuke Wadabefore adoption535ae55

line 59why, one step back
59git clone git@github.com:honojs/hono.git && cd hono && pnpm install --frozen-lockfile

4.12.23Yusuke Wadabefore adoption83bfb3b

line 60why, one step back
60```