You're more than welcome to contribute to this project. Please note: your code may be used as part of a commercial product if merged.
Please don't edit files in the dist
subdirectory as they are generated via NPM Script. You'll find source code in the src
subdirectory!
Regarding code style like indentation and whitespace, follow the conventions you see used in the source already.
First, ensure that you have the latest Node.js and npm installed.
- Fork and clone the repo.
- Run
npm install
to get the project's dependencies - Run
npm run build
to produce minified version of your library.
Pull requests are very welcome. Note that if you are going to propose drastic changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it.
- Create a new branch, please don't work in your
master
branch directly. - Add failing tests for the change you want to make. Run
npm run build
to see the tests fail. - Fix stuff.
- Run
npm run build
to see if the tests pass. Repeat steps 2-4 until done. - Update the documentation to reflect any changes.
- Push to your fork and submit a pull request.