|
| 1 | +# Contribute to Hive Astro Loader |
| 2 | + |
| 3 | +`@onhive.io/astro-loader` is an open-source project, and we welcome contributions of all kinds. |
| 4 | +It is build with TypeScript and bundled with [Bun]((https://bun.sh/). |
| 5 | + |
| 6 | +## Project Structure |
| 7 | + |
| 8 | +- `src/index.ts`: The main entry point for the package. |
| 9 | +- `src/adapters/`: Adapters between data from the Hive API and the export types of the package. |
| 10 | +- `src/api/`: API callers for the Hive API. |
| 11 | +- `src/loaders/`: Hive Loaders implementation. This is what is exposed to the Astro user. |
| 12 | +- `src/schema/`: Types and Zod schemas. |
| 13 | + |
| 14 | +## Development |
| 15 | + |
| 16 | +Fork and clone the repository, install dependencies with `bun install` and run dev mode with `bun dev`. |
| 17 | +You can write automated tests and run them with `bun test`. Optionally, use `npm link` to locally test your changes. |
| 18 | + |
| 19 | +We've got some tools aiming to improve the development experience: |
| 20 | + |
| 21 | +- [eslint](https://eslint.org/) for linting and code formatting. |
| 22 | +- [prettier](https://prettier.io/) for code formatting. |
| 23 | +- [husky](https://typicode.github.io/husky/#/) for pre-commit hooks. |
| 24 | +- [lint-staged](https://github.com/okonet/lint-staged) for running linters and formatters on staged files. |
| 25 | + |
| 26 | +## Submitting a Pull Request |
| 27 | + |
| 28 | +- When you're ready to submit a pull request, create a new branch with a descriptive name (e.g., `feat/add-new-feature`). |
| 29 | +- Make your changes and commit them with clear and descriptive commit messages. |
| 30 | +- Write tests to cover your changes if applicable. |
| 31 | +- Create a pull request to the `main` branch of the repository. |
| 32 | +- Provide a clear and concise description of your changes in the pull request. |
| 33 | +- If your changes are related to an open issue, reference it in the pull request. |
| 34 | +- Wait for the project maintainers to review and merge your pull request. |
0 commit comments