mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
6961fd23ba
Summary: This separates the babel config of the local-cli and the packager from the one used by the transforms of the packager since it doesn't run in the same environment and the local-cli/packager doesn't require react specific transforms and runs in node 4 so we can also avoid some es2015 transforms that node already supports. I had to move the code in cli.js so it can still run in node 0.12 that doesn't support `const` since it is no longer transformed. **Test plan** Run the local-cli on node 0.12 and there should be a message saying that it requires at least node 4. Run the local-cli on node 4 and 5 and everything should work the same as before. I was also hoping for some perf gains but there was nothing noticeable. I did benchmark the babel-register call and it stayed pretty much the same. As for runtime performance it can help if there are optimisations for es2015 features in node. Closes https://github.com/facebook/react-native/pull/6155 Reviewed By: bestander Differential Revision: D3301008 Pulled By: davidaurelio fbshipit-source-id: 504180d158a1e50bc03e28fb0d1e53d0731ce32f
37 lines
743 B
JSON
37 lines
743 B
JSON
{
|
|
"version": "0.4.0",
|
|
"name": "react-native-packager",
|
|
"description": "Build native apps with React!",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/react-native.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=4"
|
|
},
|
|
"jest": {
|
|
"setupEnvScriptFile": "jestSupport/env.js",
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/"
|
|
],
|
|
"testFileExtensions": [
|
|
"js"
|
|
],
|
|
"unmockedModulePathPatterns": [
|
|
"source-map"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"test": "jest",
|
|
"lint": "node linter.js Examples/",
|
|
"start": "./packager.sh"
|
|
},
|
|
"dependencies": {
|
|
"wordwrap": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"jest-cli": "git://github.com/facebook/jest#0.5.x",
|
|
"eslint": "0.9.2"
|
|
}
|
|
}
|