Makefile 367 B

123456789101112131415161718192021
  1. all: lint test coverage
  2. clean:
  3. @rm -f coverage.html
  4. @rm -rf lib-cov
  5. lint:
  6. @node_modules/.bin/jshint lib
  7. test:
  8. @node_modules/.bin/mocha
  9. coverage:
  10. @rm -rf lib-cov
  11. @jscoverage lib lib-cov
  12. @SAUCELABS_COV=1 node_modules/.bin/mocha --reporter html-cov > coverage.html
  13. todo:
  14. @fgrep -H -e TODO -e FIXME -r lib test || true
  15. .PHONY: clean lint test coverage todo