react-native/local-cli
Adam Miskiewicz 757ab0b936 Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js`
Summary:
Currently we just try to resolve a rn-cli.config.js file by walking up the tree from node_modules/react-native. In non-standard uses of RN, when your copy of RN may not live within node_modules, it's impossible to use rn-cli.config.js. This PR adds a "config" flag to the cli that let's you pass in a path to rn-cli.config.js.

cc ide
Closes https://github.com/facebook/react-native/pull/7883

Differential Revision: D3382823

Pulled By: bestander

fbshipit-source-id: b946f3bb355050fc2fe99273d0e99e441dbed111
2016-08-12 11:58:33 -07:00
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__
bundle Fix building without writing a source map 2016-08-09 09:43:26 -07:00
dependencies Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Mention double tapping R to reload in the app template 2016-06-23 06:43:27 -07:00
generator-android Add missing character into BUCK android template 2016-06-24 17:28:30 -07:00
generator-ios Fix tabs in project.pbxproj of iOS template 2016-08-09 13:28:19 -07:00
init Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
library Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
logAndroid Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
logIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
rnpm Should be R.string, not R.strings 2016-08-06 07:28:28 -07:00
runAndroid Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
runIOS Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
server Fixes to jscProfilerMiddleware 2016-08-10 06:43:51 -07:00
upgrade Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
util Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js` 2016-08-12 11:58:33 -07:00
cli.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
cliEntry.js Add `--config` option to CLI to allow passing a path to an `rn-cli.config.js` 2016-08-12 11:58:33 -07:00
commands.js Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
default.config.js Add support for passing in additional assetExts to packager 2016-08-02 10:27:25 -07:00
generate-android.js
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00