|
6 | 6 | "node": ">=4" |
7 | 7 | }, |
8 | 8 | "scripts": { |
9 | | - "test": "gulp", |
| 9 | + "test": "nyc gulp", |
10 | 10 | "prepublish": "gulp prepublish", |
11 | 11 | "deploy": "gulp deploy", |
12 | 12 | "release": "semantic-release pre && npm publish && semantic-release post" |
|
39 | 39 | "@semantic-release/last-release-npm": "https://github.com/vrtxf/last-release-npm/tarball/da5a0f2411e2add6f5b0b990b4a12fad3245cfac", |
40 | 40 | "babel-core": "^6.11.4", |
41 | 41 | "babel-plugin-add-module-exports": "^0.2.1", |
| 42 | + "babel-plugin-istanbul": "^1.0.3", |
42 | 43 | "babel-plugin-transform-es2015-block-scoping": "^6.10.1", |
43 | 44 | "babel-preset-es2015": "^6.9.0", |
44 | 45 | "babel-register": "^6.11.6", |
45 | 46 | "bithound": "1.7.0", |
46 | | - "commitizen": "^2.8.2", |
| 47 | + "chai": "^3.5.0", |
| 48 | + "chai-as-promised": "^5.3.0", |
| 49 | + "commitizen": "^2.8.4", |
47 | 50 | "cz-conventional-changelog": "^1.1.6", |
48 | 51 | "del": "^2.2.1", |
49 | 52 | "esdoc": "^0.4.7", |
50 | 53 | "esdoc-hacker-vision": "^1.1.0", |
51 | 54 | "esdoc-node": "^1.0.0", |
52 | | - "eslint": "^3.2.0", |
| 55 | + "eslint": "^3.2.2", |
53 | 56 | "gulp": "^3.9.1", |
54 | 57 | "gulp-babel": "^6.1.2", |
55 | | - "gulp-codecov": "^2.0.2", |
56 | 58 | "gulp-esdoc": "^0.2.0", |
57 | 59 | "gulp-eslint": "^3.0.1", |
58 | 60 | "gulp-exclude-gitignore": "^1.0.0", |
59 | 61 | "gulp-gh-pages": "^0.5.4", |
60 | | - "gulp-istanbul": "^1.0.0", |
61 | 62 | "gulp-load-plugins": "^1.2.4", |
62 | | - "gulp-mocha": "^2.2.0", |
63 | 63 | "gulp-nsp": "^2.4.2", |
64 | | - "gulp-plumber": "^1.1.0", |
| 64 | + "gulp-spawn-mocha": "^3.0.0", |
65 | 65 | "mkdirp": "^0.5.1", |
66 | | - "mocha": "^2.5.3", |
| 66 | + "mocha": "^3.0.1", |
67 | 67 | "nsp": "^2.6.1", |
| 68 | + "nyc": "^7.1.0", |
68 | 69 | "read-package-json": "^2.0.4", |
69 | 70 | "semantic-release": "^6.3.0", |
| 71 | + "sinon": "^1.17.5", |
70 | 72 | "snyk": "^1.17.5", |
71 | 73 | "standard-changelog": "0.0.1" |
72 | 74 | }, |
|
87 | 89 | "plugins": [ |
88 | 90 | "add-module-exports", |
89 | 91 | "transform-es2015-block-scoping" |
90 | | - ] |
| 92 | + ], |
| 93 | + "env": { |
| 94 | + "test": { |
| 95 | + "plugins": [ |
| 96 | + "istanbul" |
| 97 | + ] |
| 98 | + } |
| 99 | + } |
| 100 | + }, |
| 101 | + "nyc": { |
| 102 | + "lines": 95, |
| 103 | + "statements": 95, |
| 104 | + "functions": 95, |
| 105 | + "branches": 95, |
| 106 | + "include": [ |
| 107 | + "src/**/*.js" |
| 108 | + ], |
| 109 | + "reporter": [ |
| 110 | + "lcov", |
| 111 | + "text-summary" |
| 112 | + ], |
| 113 | + "require": [ |
| 114 | + "babel-register" |
| 115 | + ], |
| 116 | + "sourceMap": false, |
| 117 | + "instrument": false, |
| 118 | + "check-coverage": true |
91 | 119 | } |
92 | 120 | } |
0 commit comments