Skip to content

Commit 9f5b433

Browse files
committed
feature(package) add coverage
1 parent 73f4752 commit 9f5b433

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
npm-debug.log*
3+
.nyc_output
34

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node_js:
55

66
script:
77
- npm run codestyle
8-
- npm test
8+
- npm run coverage
99

1010
notifications:
1111
email:

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"jscs": "jscs --esnext lib test",
1313
"jshint": "jshint lib test",
1414
"codestyle": "npm-run-all jshint jscs",
15-
"test": "tape test/*.js"
15+
"test": "tape test/*.js",
16+
"coverage": "nyc npm test"
1617
},
1718
"repository": {
1819
"type": "git",
@@ -30,6 +31,7 @@
3031
"jscs": "^2.7.0",
3132
"jshint": "^2.8.0",
3233
"npm-run-all": "^1.4.0",
34+
"nyc": "~5.0.1",
3335
"tape": "^4.2.2"
3436
}
3537
}

0 commit comments

Comments
 (0)