Skip to content

EasyEyes/website

Repository files navigation

EasyEyes Website

Netlify Status

The public website of EasyEyes projects.


Submodule structure.

[website] (this)
  docs
    [experiment] (threshold-scientist, https://github.com/EasyEyes/threshold-scientist)
      [threshold] (https://github.com/EasyEyes/threshold)
        [psychojs] (forked from psychopy/psychojs, https://github.com/EasyEyes/psychojs)

Clone the code to local.

git clone --recurse-submodules https://github.com/EasyEyes/website.git

Install the pre-commit auto formatter before development.

npm install

Setup

npm run setup

Contribute

Always pull from the GitHub before making any changes.

npm run pull

To commit at all levels, use

npm run git "commit message" n

n is the commit level - 0 means only website, 1 means only website and threshold-scientist, 2 means website, threshold-scientist, and threshold.

Threshold Local Development

Scientist Page

cd docs/experiment
npm run start

Participant Page

cd docs/experiment/threshold
npm run build # Only needed once
npm run examples # Needed every time changes made to the experiment tables
npm run start -- --name=nameOfTheExperimentTable

You don't need to build before committing to GitHub, Netlify will do it for you during the deployment. An auto formatter (Prettier) will format your code during the commit (pre-commit hook).