react-native/local-cli/server
Janic Duplessis f8f9362c05 Reverted commit D3242754
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

Differential Revision: D3242754

Pulled By: eczarny

fb-gh-sync-id: 6cd349e284b7d92a1b2cc8b5c0e26adbfb0d9a2f
fbshipit-source-id: 6cd349e284b7d92a1b2cc8b5c0e26adbfb0d9a2f
2016-04-30 16:54:31 -07:00
..
middleware Added support for JavaScript third-party debuggers 2016-04-07 13:15:58 -07:00
util Pass transformOptions to getShallowDependencies. 2016-04-06 11:38:27 -07:00
checkNodeVersion.js Reverted commit D3242754 2016-04-30 16:54:31 -07:00
formatBanner.js Replace underscore by lodash 2016-03-09 03:09:44 -08:00
runServer.js Upgrade to node-haste@2.10.0 and allow to specify extra node modules 2016-04-28 06:33:27 -07:00
server.js Reverted commit D3242754 2016-04-30 16:54:31 -07:00