Contributing

Development happens on GitHub. Include test(s) and documentation updates in your pull requests.

File bugs and feature requests in the GitHub issue tracker. When filing bugs, include:

Building

To compile wu.js and its tests to ES5 using the Babel compiler, run:

$ npm run build

This command regenerates:

Tests

Running the Test Suite
$ npm test
Creating New Tests

To add a new test, find or create the appropriate file in test/test-X.js. Mocha is the test runner. Chai's assert module is used for assertions.

Documentation

This documentation is created with the static site generator Jekyll. To set up jekyll, run:

$ gem install jekyll bundler
$ cd path/to/wu.js
$ bundle install

Once Jekyll is set up, to serve the docs locally and automatically recompile them on change, run:

$ npm run docs

The documentation will be served at http://0.0.0.0:4000.

The sources for this documentation live in index.html and markdown files in the _posts directory. Each wu method has its own markdown file in the _posts directory, and the table of contents for thewu methods is generated automatically. The CSS styles live in index.css.