Thanks for jumping in to contribute at getjustd.com—we’re thrilled to have you on board!
Quick ask: take a moment to review this doc before submitting your first pull request. Also, check out the open issues and pull requests to avoid doubling up on any efforts.
- Fork the repository.
- Clone the forked repository.
- Create a file
.env
and make sure it has the following content:NEXT_PUBLIC_APP_V1_URL=https://1x.getjustd.com
- Install the dependencies with
bun run first-time
. - Create a new branch:
git checkout -b my-branch-name
. - Make your changes.
- Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin my-branch-name
. - Submit a pull request.
This project and everyone participating in it is governed by the Justd Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to team@justd.com.
Before creating bug reports, please check the existing issues as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible.
Enhancement suggestions are tracked as GitHub issues. When you are creating an enhancement suggestion, please include as many details as possible.
Please follow these guidelines when submitting pull requests:
- Fork the repository and create your branch from
main
. - Run
bun run lint
to check your code for linting errors. - If you've added code that should be tested, add tests.
- Format your code with
bun run format
. - Ensure everything is working as expected by running
bun run b
which will build the registry and generate the sidebar. - Make sure your code lints.
- Make sure your commit messages are clear.
The folder structure is as follows:
The components folder is the core of this project, it contains ui
, docs
and blocks
folders.
components
├── blocks
├── code
├── docs
│ ├── anatomies
│ ├── buttons ...
│ ├── charts ...
│ ├── collections ...
│ ├── colors ...
│ ├── controls ...
│ ├── date-and-time ...
│ ├── drag-and-drop ...
│ ├── forms ...
│ ├── media ...
│ ├── navigation ...
│ ├── outside ...
│ ├── overlays ...
│ ├── pickers ...
│ ├── statuses ...
│ └── surfaces ...
├── experimental
└── ui
The core ui is inside components/ui
, and the demo you see on the docs is inside components/docs
.
The registry is a file that contains all the components and their files. It is used to generate the demo
, ui
, blocks
and anatomies
on the docs.
public/registry
├── anatomies
├── blocks
│ ├── navbar ...
│ └── sidebar ...
├── demo
│ ├── buttons ...
│ ├── charts ...
│ ├── collections ...
│ ├── colors ...
│ ├── controls ...
│ ├── date-and-time ...
│ ├── drag-and-drop
│ ├── forms ...
│ ├── media
│ ├── navigation ...
│ ├── outside
│ ├── overlays ...
│ ├── pickers ...
│ ├── statuses ...
│ └── surfaces ...
├── docs
│ └── installation
└── ui
All of this is generated by the resources/scripts/build-registry.ts
script by running bun run b
.
The Justd code of conduct is inspired by the Laravel and Ruby code of conduct. Any violations of this code may be reported to Irsyad (irsyad@parsinta.com):
- Participants will respect and be tolerant of differing views and opinions.
- Participants must ensure that their language and actions remain professional and free of personal attacks or disparaging remarks.
- When interpreting the words and actions of others, participants should always assume good intentions.
- Behavior that can reasonably be considered harassment or discrimination will not be tolerated.
By contributing to Justd, you agree that your contributions will be licensed under its MIT license.