Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 742 Bytes

HACKING.md

File metadata and controls

16 lines (13 loc) · 742 Bytes

Hacking on Legalize.js

Legalize.js is fairly well documented so you should be able to just start hacking. Please check all changes using grunt, which has thresholds defined for code coverage and checks the format of your files.

Worth mentioning:

  • legalize.js in the root directory is a generated source but committed to the repository (this is to distribute the browser version via bower).
  • src/legalize.js contains the main library.
  • src/legalize-browser.js only contains browser specific tweaks such as shims needed to make it compatible with various browsers out there.
  • The release artifact is assembled via preprocess, so check out the documentation: https://github.com/jsoverson/preprocess