Makefile 639 B

1234567891011121314151617181920212223242526272829
  1. REPORTER = spec
  2. MOCHA = node_modules/.bin/mocha
  3. test:
  4. @NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER)
  5. test-colors:
  6. @NODE_ENV=test $(MOCHA) --require should --reporter $(REPORTER) --colors
  7. test-cov: test/coverage.html
  8. test/coverage.html: lib-cov
  9. @FLUENTFFMPEG_COV=1 NODE_ENV=test $(MOCHA) --require should --reporter html-cov > test/coverage.html
  10. lib-cov:
  11. @rm -fr ./$@
  12. @jscoverage lib $@
  13. publish:
  14. @npm version patch -m "version bump"
  15. @npm publish
  16. JSDOC = node_modules/.bin/jsdoc
  17. JSDOC_CONF = tools/jsdoc-conf.json
  18. doc:
  19. $(JSDOC) --configure $(JSDOC_CONF)
  20. .PHONY: test test-cov lib-cov test-colors publish doc