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 building bundles)
- deno (for tests)
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
bun install
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 which gets its markdown source from Typedoc using the typedoc-plugin-markdown
You can edit the other pages by going to the www/docs/
directory.
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;
callback: any;
params: any[];
};
Note that none of the field is optional
- Fork the project
- Clone your fork
- Create a pr/feature branch replacing feature with what you're working on.
Happy hacking 🚀!