Add sourcemaps for code coverage
This commit is contained in:
parent
149a339932
commit
0b62ecee21
7
.babelrc
7
.babelrc
@ -1,4 +1,9 @@
|
|||||||
{
|
{
|
||||||
"presets": ["es2015", "react", "stage-0"],
|
"presets": ["es2015", "react", "stage-0"],
|
||||||
"plugins": ["transform-runtime"]
|
"plugins": ["transform-runtime"],
|
||||||
|
"env": {
|
||||||
|
"test": {
|
||||||
|
"sourceMaps": "inline"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,9 +16,7 @@ script:
|
|||||||
- npm run test_cov
|
- npm run test_cov
|
||||||
- make test-babel
|
- make test-babel
|
||||||
|
|
||||||
after_success:
|
after_success: npm run coverage
|
||||||
- ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov
|
|
||||||
- ./node_modules/.bin/codecov
|
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack: babeljs:5Wy4QX13KVkGy9CnU0rmvgeK
|
slack: babeljs:5Wy4QX13KVkGy9CnU0rmvgeK
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
"babel-preset-react": "^6.0.0",
|
"babel-preset-react": "^6.0.0",
|
||||||
"babel-preset-stage-0": "^6.5.0",
|
"babel-preset-stage-0": "^6.5.0",
|
||||||
"codecov": "^1.0.1",
|
"codecov": "^1.0.1",
|
||||||
|
"cross-env": "^1.0.8",
|
||||||
"kcheck": "^2.0.1",
|
"kcheck": "^2.0.1",
|
||||||
"lodash": "^4.6.1",
|
"lodash": "^4.6.1",
|
||||||
"nyc": "^7.0.0",
|
"nyc": "^7.0.0",
|
||||||
@ -33,8 +34,9 @@
|
|||||||
"babylon": "./bin/babylon.js"
|
"babylon": "./bin/babylon.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
||||||
"test": "npm run build && npm run lint && ava test/",
|
"test": "npm run build && npm run lint && ava test/",
|
||||||
"test_cov": "npm run build && npm run lint && nyc ava test/",
|
"test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test/",
|
||||||
"lint": "kcheck",
|
"lint": "kcheck",
|
||||||
"build": "babel src --out-dir lib",
|
"build": "babel src --out-dir lib",
|
||||||
"preversion": "npm run test",
|
"preversion": "npm run test",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user