mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
58c644323f
* 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
54 lines
942 B
Plaintext
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"]
|
|
}
|
|
}
|
|
}
|