creativelive / hapi-ratelimit

Hapi rate limiting module
MIT License
33 stars 15 forks source link

add code quality harness #5

Closed matthewhadley closed 10 years ago

matthewhadley commented 10 years ago

add gulp tasks for eslint:

gulp eslint

and jsbeautify

gulp js-beautify

Both are run by npm test

Note there are a few eslint fixes still to be made around error handling (I fixed the other errors).

How are the tests inside of /tests actually run? They should be added to the npm test command after the linting:

./node_modules/gulp/bin/gulp.js lint && cmd

This should also be hooked up to travis.