1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 13:18:29 +01:00
slate/.babelrc
Jinxuan Zhu 58c644323f Add coverage test with mocha and codecov (#2037)
* Run mocha test with module alias

* Running test with babel module alias

* Fix model alias

* Fix model alias

* Resolve module alias

* Running test with babel module alias

* Connect to codecov

* add codecov to travis

* stop if yarn test has errors

* Still cannot collect data from slate modules

* Try to check whether it works with codecov

* Move config to nycrc

* Remove nyc require

* Update nyc to use src

* better before_script
2018-08-06 10:31:42 -07:00

54 lines
942 B
Plaintext

{
"presets": [
["env", {
"modules": false
}],
"react",
"stage-0"
],
"plugins": ["external-helpers"],
"env": {
"webpack": {
"presets": [
["env", {
"modules": false
}],
"react",
"stage-0"
],
"plugins": [
"transform-runtime",
"react-hot-loader/babel"
]
},
"test": {
"presets": [
["env", {
"exclude": ["transform-regenerator"]
}],
"react",
"stage-0"
],
"plugins": [
"transform-runtime",
["module-resolver", {
"alias" : {
"^(slate.*)": "./packages/\\1/src"
}
}],
"istanbul"
]
},
"benchmark": {
"presets": [
["env", {
"exclude": ["transform-regenerator"]
}],
"react",
"stage-0"
],
"plugins": ["transform-runtime"]
}
}
}