|
11 | 11 | "clean": "rimraf lib dist coverage", |
12 | 12 | "lint": "eslint src test", |
13 | 13 | "prepublish": "npm run clean && npm run build", |
14 | | - "test": "mocha --compilers js:babel-register --recursive --require ./test/setup.js", |
| 14 | + "test": "cross-env NODE_ENV=test mocha --compilers js:babel-register --recursive --require ./test/setup.js", |
15 | 15 | "test:watch": "npm test -- --watch", |
16 | | - "test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive" |
| 16 | + "test:cov": "cross-env NODE_ENV=test nyc npm test", |
| 17 | + "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov" |
17 | 18 | }, |
18 | 19 | "repository": { |
19 | 20 | "type": "git", |
|
47 | 48 | "babel-eslint": "^6.1.2", |
48 | 49 | "babel-loader": "^6.2.0", |
49 | 50 | "babel-plugin-check-es2015-constants": "^6.3.13", |
| 51 | + "babel-plugin-istanbul": "^2.0.0", |
50 | 52 | "babel-plugin-syntax-jsx": "^6.3.13", |
51 | 53 | "babel-plugin-transform-decorators-legacy": "^1.2.0", |
52 | 54 | "babel-plugin-transform-es2015-arrow-functions": "^6.3.13", |
|
70 | 72 | "babel-plugin-transform-react-display-name": "^6.4.0", |
71 | 73 | "babel-plugin-transform-react-jsx": "^6.4.0", |
72 | 74 | "babel-register": "^6.3.13", |
| 75 | + "codecov": "^1.0.1", |
73 | 76 | "cross-env": "^1.0.7", |
74 | 77 | "es3ify": "^0.2.0", |
75 | 78 | "eslint": "^3.3.1", |
76 | 79 | "eslint-plugin-import": "^1.13.0", |
77 | 80 | "eslint-plugin-react": "^6.1.1", |
78 | 81 | "expect": "^1.8.0", |
79 | 82 | "glob": "^6.0.4", |
80 | | - "isparta": "4.0.0", |
81 | | - "istanbul": "^0.3.17", |
| 83 | + "istanbul": "^0.4.4", |
82 | 84 | "jsdom": "~5.4.3", |
83 | 85 | "mocha": "^2.2.5", |
| 86 | + "nyc": "^8.1.0", |
84 | 87 | "react": "^0.14.0", |
85 | 88 | "react-addons-test-utils": "^0.14.0", |
86 | 89 | "react-dom": "^0.14.0", |
|
102 | 105 | "transform": [ |
103 | 106 | "loose-envify" |
104 | 107 | ] |
| 108 | + }, |
| 109 | + "nyc": { |
| 110 | + "sourceMap": false, |
| 111 | + "instrument": false |
105 | 112 | } |
106 | 113 | } |
0 commit comments