Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.24 KB

DEV_ENVIRONMENT.md

File metadata and controls

23 lines (17 loc) · 1.24 KB

Developer guide: getting your environment set up

  1. Make sure you have node installed with a version at least 10.0.0 and yarn with a version of at least 1.10.0. We recommend using nvm to manage your node versions.
  2. Fork the dreamonkey/responsive-image-loader repo on GitHub.
  3. Clone your fork to your machine with git clone. Recommendation: name your git remotes upstream for this repository and origin or <your-username> for your fork.
  4. From the root of the project, run yarn.

To run unit tests, run yarn test. NOTE: Currently some Thumbor-related tests will fail randomly due to possible race conditions or time-outs. Run them 2-3 times and they should disappear.

When using "thumbor" transformer, you can run this command from the root directory of the project using the loader, to start the thumbor container with needed configuration:

docker run -p 8888:80 --name ril-thumbor --env-file ./node_modules/@dreamonkey/responsive-image-loader/dist/src/transformers/thumbor/.thumbor-env --mount type=bind,source="$(pwd)",target=/data/loader,readonly --rm minimalcompact/thumbor

Then you can access the container running docker exec -it ril-thumbor bash from another terminal instance.

To run lint, run yarn lint.