Please don't edit files in the dist
subdirectory as they are generated via npm-scripts. 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.
Ensure that you have Node.js and npm installed. The best way to do it is through NVM.
- Fork and clone the repo.
- Run
npm install
to install all dependencies (including grunt). - Run
npm run serve
to develop while watching changes - Run
npm run dist
to ensure files are linted/tested and that the project builds properly
Assuming that you don't see any red, you're ready to go.
- Create a new branch, please don't work in your
master
branch directly. - Fix stuff.
- Add examples if you are adding a new feature.
- Run
npm run dist
to see if there are warnings/errors. - Push to your fork and submit a pull request.