Start contributing to UnRTEL
Hello! Thank you for your interest in contributing to this project. This guide will help you get started.
Windows setup
-
Open PowerShell
-
Install
scoopSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
-
Install
git,nodethroughscoopscoop install git nodejs
-
Install
pnpmthroughcorepackcorepack enable corepack prepare pnpm@latest --activate
macOS setup
-
Open Terminal, (or iTerm2, Ghostty, Kitty, etc.)
-
Install
git,nodethroughbrewbrew install git node
-
Install
pnpmthroughcorepackcorepack enable corepack prepare pnpm@latest --activate
Linux setup
-
Open Terminal
-
Follow nodesource/distributions: NodeSource Node.js Binary Distributions to install
node -
Follow Git to install
git -
Install
pnpmthroughcorepackcorepack enable corepack prepare pnpm@latest --activate
Warning
If you haven't clone this repository, skip this section.
Make sure your local repository is up to date with the upstream repository:
git fetch -all
git checkout main
git pull upstream main --rebaseIf you have a working branch, to make your branch up to date with the upstream repository:
git checkout <your-branch-name>
git rebase mainClick on the Fork button on the top right corner of the unrteljs/unrtel page.
git clone https://github.com/<your-github-username>/unrtel.git
cd unrtelgit checkout -b <your-branch-name>corepack enable
pnpm installNote
We would recommend to install @antfu/ni to make your script simpler.
corepack enable
npm i -g @antfu/niOnce installed, you can
- use
niforpnpm install,npm installandyarn install. - use
nrforpnpm run,npm runandyarn run.
You don't need to care about the package manager, ni will help you choose the right one.
pnpm -F @unrteljs/playground devCaution
Please make sure lint (static checkers) and TypeScript compilers are satisfied:
pnpm packages:stub && pnpm lint && pnpm typecheckNote
If you have @antfu/ni installed, you can use nr to run the commands:
nr packages:stub && nr lint && nr typecheckgit add .
git commit -m "<your-commit-message>"git push origin <your-branch-name> -uYou should be able to browse the branch on your fork repository.
Note
If this is your first time contributing with this project, you need to add the upstream repository too:
git remote add upstream https://github.com/proj-airi/webai-realtime-voice-chat.gitNavigate to unrteljs/unrtel page, click on the Pull requests tab, and click on the New pull request button, click on the Compare across forks link, and select your fork repository.
Review the changes, and click on the Create pull request button.
Congratulations! You made your first contribution to this project. You can now wait for the maintainers to review your pull request.