Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 0aa7cd9

Browse files
committed
chore: Added coverage with nyc
1 parent 630d5c4 commit 0aa7cd9

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
/node_modules
33
*.js.map
44
/tests/*-test.js
5+
coverage/
6+
.nyc_output/
7+
npm-debug.log

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
language: node_js
22
node_js:
33
- "4.2.0"
4+
after_success: npm run coverage

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"scripts": {
1010
"clean": "rm -f index.js index.js.map tests/*.js tests/*.js.map",
1111
"prebuild": "npm run clean",
12-
"build": "tsc",
13-
"pretest": "npm run build",
14-
"test": "mocha -r babel-register 'tests/**/*-test.js'",
12+
"build": "tsc --sourceMap",
13+
"pretest": "tsc --inlineSourceMap",
14+
"test": "mocha --compilers js:babel-register 'tests/**/*-test.js'",
15+
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
1516
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w",
1617
"preversion": "npm test",
1718
"version": "npm run build && conventional-changelog -p angular -v -r 0 > CHANGELOG.md && git add -A .",
@@ -32,9 +33,11 @@
3233
"babel-preset-es2015": "6.3.13",
3334
"babel-register": "6.3.13",
3435
"chai": "3.4.1",
36+
"coveralls": "2.11.6",
3537
"cz-conventional-changelog": "1.1.5",
3638
"in-publish": "2.0.0",
3739
"mocha": "2.3.4",
40+
"nyc": "5.2.0",
3841
"react": "0.14.5",
3942
"tslint": "3.2.1",
4043
"typescript": "1.7.5"

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "commonjs",
5-
"noImplicitAny": true,
6-
"sourceMap": true
5+
"noImplicitAny": true
76
},
87
"files": [
98
"typings/tsd.d.ts",

0 commit comments

Comments
 (0)