Thank you for considering a contribution to Triplex! Pull requests, issues and comments are welcome. This is an open core repository meaning only a subset of the Triplex code is available. Currently only the scene renderer and related packages are open source. We will explore open sourcing more code in the future.
If you're looking for an issue to work on have a look for the "Contribution ready" labelled issues or reach out on the Discord Community.
-
Triplex uses Volta and corepack for managing Node.js and package manager versions so you'll need to install them first. They both automatically use the declared version of Node.js / package manager in the root package.json so you don't have to worry about it.
-
Install dependencies by running
yarn
.
$ yarn
yarn install v1.22.19
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
-
Install either Triplex for VS Code or Triplex Standalone.
-
You're now ready to start developing!
With either VS Code or Cursor open, go to the /examples
folder, find a component, and click the "Open in Triplex" Code Lens action.
With Triplex Standalone open, open one of the example packages and then open the component you want to develop against.
You can develop Triplex using your own projects instead of the example packages by updating their .triplex/config.json
file to point to the renderer package in this repository.
Inside your project create or update the Triplex config to add the renderer property. It should point to the index file inside the renderer package in this repository. We recommend passing an absolute path.
// .triplex/config.json
{
"renderer": "/triplex/packages/renderer/src/index.tsx"
}