Thank you 😄 for contributing to huetiful-js!
On this page you'll find information on how to setup the project and navigate the file structure.
The project structure is as follows:
www/
- Where the documentation site liveslib/
- This is where the source code is locatedtests/
This is where the test files for the publicly accessible symbols live.
- Supported version of Node (LTS or higher)
- Git
- Bun (for testing)
To quickly get the development environment ready you can run the following command, you can replace npm
with any package manager :
git clone https://github.com/prjctimg/huetiful && cd huetiful
# Package manager of your choice
npm i -D
The API documentation is written as JSDoc comments and is compiled from the source files using TypeDoc and typedoc-plugin-markdown.
The site is generated using Docusaurus.
You can edit the other pages by going to the www/docs/
directory.
The project uses bun:test
for unit testing. In order to run and create tests you need to have a working version of bun
installed.
bun test
Each module with publicly exported symbols has a corresponding *.test.ts
file. The specs are defined as an object with the following structure:
export type Spec = {
description?: string;
matcher?: string;
callback: any;
params: any[];
result: any;
};
and then iterated using a helper function, run
which takes an array of the Spec
objects as its only parameter.
- Fork the project
- Clone your fork
- Create a pr/feature branch replacing feature with what you're working on.
Not necessarily a requirement but it makes understanding the context of the pull request easier.
git checkout -b pr/feature
-
Commit your changes. Follow the prompts asked to complete your commit.
npx cz
5. And then push your changes
```sh
git push origin pr/feature
- Open a pull request
Happy hacking 🚀!