Skip to content

Commit

Permalink
ci: add nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Oct 9, 2020
1 parent 8565418 commit 0bf5185
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ node_modules
.npm

# Optional REPL history
.node_repl_history
.node_repl_history

.nyc_output
3 changes: 3 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"reporter": ["lcov", "text"]
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"lint": "node_modules/.bin/eslint *.js lib/*.js test/",
"pretest": "npm run lint",
"test": "mocha --check-leaks"
"test": "nyc mocha --check-leaks"
},
"keywords": [
"posthtml",
Expand All @@ -19,7 +19,8 @@
"image"
],
"dependencies": {
"image-size": "^0.8.3"
"image-size": "^0.8.3",
"nyc": "^15.1.0"
},
"devDependencies": {
"eslint": "^7.2.0",
Expand Down

0 comments on commit 0bf5185

Please sign in to comment.