Hi! We're really excited that you're interested in contributing to RemixKit! Before submitting your contribution, please read through the following guide.
The RemixKit repo is a monorepo using pnpm workspaces. The package manager used to install and link dependencies must be pnpm.
To contribute to RemixKit, you need to set up a local environment.
-
Fork the remix-kit repository to your own GitHub account and then clone it to your local device.
-
Run
pnpm install
to install the dependencies.
- If you are adding a dependency, please use pnpm add. The pnpm-lock.yaml file is the source of truth for all RemixKit dependencies.
-
Run
pnpm build:stub
to activate the passive development system. This uses jiti to execute your Typescript without the need for a build step or file watcher. Stubbing needs to be done just once. More details here. -
Check out a branch where you can work and commit your changes:
git checkout -b my-new-branch
-
Use the existing
playground/react-app
or setup your own website in the playground folder and execute CLI commands such aspnpm run dev
orpnpm run build
from there.
TIP: Visiting the /playground/react-app
's url at http://localhost:3005/__inspect/
is useful when testing plugin changes as it will show you the vite plugin inspector's output.
To use breakpoints and explore code execution, you can use the "Run and Debug" feature from VS Code.
-
Add a
debugger
statement where you want to stop the code execution. -
Click the "Run and Debug" icon in the activity bar of the editor, which opens the Run and Debug view.
-
Click the "JavaScript Debug Terminal" button in the Run and Debug view, which opens a terminal in VS Code.
-
From that terminal, go to
playground/xxx
, and runpnpm run dev
. -
The execution will stop at the
debugger
statement, and you can use the Debug toolbar to continue, step over, and restart the process...