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

Commit 583f9fc

Browse files
committed
fix(package): merge package template from Kronos-Tools/npm-package-template
1 parent 6ff6cd8 commit 583f9fc

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- 6.9.3
3+
- 6.9.4
44
sudo: false
55
branches:
66
only:
@@ -18,6 +18,7 @@ before_install:
1818
before_script:
1919
- npm prune
2020
- npm install -g codecov
21+
- npm install coveralls
2122
script:
2223
- npm run cover
2324
after_script:

package.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"module": "src/module.js",
66
"main": "dist/module.js",
77
"scripts": {
8-
"cover": "npm run prepublish && istanbul cover node_modules/.bin/_mocha -- -u exports tests/*_test.js",
8+
"cover": "nyc npm test",
99
"test": "mocha tests/*_test.js",
1010
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
1111
"docs": "jsdoc2md -l off -t doc/README.hbs -f src/*.js >README.md",
1212
"prepublish": "rollup --output=dist/module.js -c -- src/module.js",
1313
"pretest": "npm run prepublish",
14-
"posttest": "markdown-doctest"
14+
"posttest": "markdown-doctest",
15+
"precover": "npm run prepublish"
1516
},
1617
"repository": {
1718
"type": "git",
@@ -30,14 +31,14 @@
3031
"chai": "^3.5.0",
3132
"clone-deep": "0.2.4",
3233
"cz-conventional-changelog": "^1.2.0",
33-
"istanbul": "^0.4.5",
3434
"kronos-test-interceptor": "2.1.0",
3535
"mocha": "^3.2.0",
36-
"semantic-release": "^6.3.5",
36+
"semantic-release": "^6.3.6",
3737
"underscore": "1.8.3",
3838
"jsdoc-to-markdown": "^2.0.1",
3939
"markdown-doctest": "^0.9.1",
40-
"rollup": "^0.41.4"
40+
"rollup": "^0.41.4",
41+
"nyc": "^10.0.0"
4142
},
4243
"contributors": [
4344
{
@@ -51,7 +52,7 @@
5152
],
5253
"license": "BSD-2-Clause",
5354
"engines": {
54-
"node": ">=6.9.3"
55+
"node": ">=6.9.4"
5556
},
5657
"keywords": [
5758
"stream",
@@ -63,5 +64,14 @@
6364
"commitizen": {
6465
"path": "./node_modules/cz-conventional-changelog"
6566
}
67+
},
68+
"nyc": {
69+
"include": [
70+
"dist/**/*.js"
71+
],
72+
"reporter": [
73+
"lcov"
74+
],
75+
"report-dir": "./coverage"
6676
}
6777
}

0 commit comments

Comments
 (0)