2017-01-26 11:49:39 -08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
// For RN example development
|
|
|
|
"development": {
|
|
|
|
"presets": ["react-native"],
|
|
|
|
"plugins": [
|
2017-04-14 00:19:30 +02:00
|
|
|
"transform-flow-strip-types"
|
|
|
|
]
|
2017-01-26 11:49:39 -08:00
|
|
|
},
|
|
|
|
// For Jest
|
|
|
|
"test": {
|
|
|
|
"presets": ["react-native"],
|
|
|
|
"plugins": [
|
2017-04-14 00:19:30 +02:00
|
|
|
"transform-flow-strip-types"
|
|
|
|
]
|
2017-01-26 11:49:39 -08:00
|
|
|
},
|
|
|
|
// For publishing to NPM for RN
|
|
|
|
"publish-rn": {
|
|
|
|
"presets": ["react-native-syntax"],
|
|
|
|
"plugins": [
|
2017-04-14 00:19:30 +02:00
|
|
|
"flow-react-proptypes",
|
|
|
|
"transform-flow-strip-types"
|
|
|
|
]
|
2017-01-26 11:49:39 -08:00
|
|
|
},
|
2017-02-09 02:30:58 +05:30
|
|
|
// For publishing to NPM for web
|
2017-01-26 11:49:39 -08:00
|
|
|
"publish-web": {
|
|
|
|
"presets": ["es2015", "stage-1", "react"],
|
|
|
|
"plugins": [
|
2017-04-14 00:19:30 +02:00
|
|
|
"flow-react-proptypes",
|
|
|
|
"transform-flow-strip-types"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2017-01-26 11:49:39 -08:00
|
|
|
}
|