Please don't edit files in the dist
subdirectory as they are generated via Gulp. 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, and refer to .editorconfig
and .jshintrc
for specific options.
First, ensure that you have the latest Node.js and npm installed. The code has currently been tested with Node 8.
- Fork and clone the repo.
- Run
npm install
to install all build dependencies (including Gulp). - Build the minified source
npm run build
- Run the browser tests
npm run test:browser
- Run the node tests
npm test
(currently there are errors in the JSDOM integration since we switched from Node 4 to Node 8.)
Assuming that you don't see any failures, you're ready to go. Just be sure to run npm run lint
and run the tests after making any changes, to ensure that nothing is broken.
- Open
test/SpecRunner.html
unit test file(s) in actual browser - Add failing tests for the change you want to make.
- Run the tests
- Fix stuff
- Run the tests 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.