Skip to content

Commit

Permalink
Simplified the "coverage" script by adding a .nycrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Mar 5, 2020
1 parent 033cbd0 commit f7027ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .nycrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# NYC config
# https://github.com/istanbuljs/nyc#configuration-files

extension:
- .js
- .ts

reporter:
- text
- lcov
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "tsc",
"watch": "tsc --watch",
"test": "mocha && npm run lint",
"coverage": "nyc --reporter=text --reporter=lcov node_modules/mocha/bin/mocha",
"coverage": "nyc node_modules/mocha/bin/mocha",
"upgrade": "npm-check -u && npm audit fix",
"bump": "bump --tag --push --all",
"release": "npm run upgrade && npm run clean && npm run build && npm test && npm run bump"
Expand Down

0 comments on commit f7027ce

Please sign in to comment.