Yarn is a package manager for your code, similar to npm. While you can use npm to use Prism in your own project, we use yarn for development of Prism.
- If you don't already have the yarn package manager on your machine, install yarn.
- Fork the https://github.com/stoplightio/prism repo.
- Git clone your fork (i.e.
git clone https://github.com/<your-username>/prism.git
) to your machine. - Run
yarn
to install dependencies and setup the project. - Because during the development we run the software directly on top of TypeScript sources, we advise you to use our script:
cd packages/cli && yarn cli mock openapi.yaml
. - Run
git che