Guide for contributing to examma-ray
.
Ensure you have node
and npm
installed:
On Linux or WSL:
$ sudo apt update
$ sudo apt install nodejs
Or if you're on a Mac, you can use homebrew:
brew install nodejs
Make sure you have Node 11 or greater:
node --version
Create a local development clone of this repository.
From the base directory of the repo, install dependencies using npm
:
npm install
Then, create a global symlink so that you can use your development version of examma-ray
as a package in other projects.
npm link
To compile everything (initially and any time you make contributions), run:
npm run prepublish
You'll want some sample exams to test things out. Clone the sample exam repository at https://github.com/jamesjuett/examma-ray-sample. This should exist separately from your original examma-ray
repo.
From the base directory of that repository, install dependencies and then link your development version of examma-ray
.
npm install
npm link examma-ray
Now the sample exams will use your local development version of examma-ray
.
See the README.md in the sample exams repo if you're new to using examma-ray
, or the general documentation at https://jamesjuett.github.io/examma-ray/.
Make sure you've got an editor with decent typescript support. I use VS Code.