项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

22 lines
530 B

  1. test:
  2. @npm run test
  3. lib-cov:
  4. @./node_modules/.bin/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib
  5. coverage: lib-cov
  6. @COVERAGE=1 ISTANBUL_REPORTERS=text-summary ./node_modules/.bin/mocha --reporter mocha-istanbul
  7. @rm -rf lib-cov
  8. coveralls: lib-cov
  9. @COVERAGE=1 ISTANBUL_REPORTERS=lcovonly ./node_modules/.bin/mocha --reporter mocha-istanbul
  10. @cat lcov.info | ./node_modules/.bin/coveralls
  11. @rm -rf lib-cov lcov.info
  12. travis: jshint test coveralls
  13. jshint:
  14. @npm run jshint
  15. .PHONY: test