react-native-macos/local-cli/link
Ville Immonen 6f4025e322 Make the CLI recognize CRNA projects
Summary:
1. Make running `react-native run-ios` or `react-native run-android`
inside a project created with Create React Native App run the
corresponding react-native-scripts command instead of failing.

    **Before**:
    <img width="762" alt="screen shot 2017-07-21 at 16 55 32" src="https://user-images.githubusercontent.com/497214/28467425-86b309c8-6e38-11e7-8946-139bda927d93.png"><img width="762" alt="screen shot 2017-07-21 at 16 55 52" src="https://user-images.githubusercontent.com/497214/28467436-8df02482-6e38-11e7-8a03-3fa664944cac.png">
    **After**:
    <img width="762" alt="screen shot 2017-07-21 at 16 52 15" src="https://user-images.githubusercontent.com/497214/28467522-e4bb6cae-6e38-11e7-97bb-9cfa9cb4dc67.png">

2. Make running `react-native link` inside a CRNA project display a
helpful error message.

    **Before**:
    <img width="762" alt="screen shot 2017-07-21 at 16 55 10" src="https://user-images.githubusercontent.com/497214/28467608-1d1781fa-6e39-11e7-9620-cc16c8b1b40f.png">
    **After**:
    <img width="762" alt="screen shot 2017-07-21 at 16 53 10" src="https://user-images.githubusercontent.com/497214/28467637-2cd6ed1a-6e39-11e7-8947-6df69b3f321e.png">

Fixes #14828.

* Run `react-native run-ios`, `react-native run-android` and `react-native link` in:
  * A CRNA project (screenshot above)
  * A traditional RN project (existing behaviour)
  * A folder that contains neither (existing behaviour)
Closes https://github.com/facebook/react-native/pull/15139

Differential Revision: D5498914

Pulled By: hramos

fbshipit-source-id: 94b6196e3451857bbaa45335a01643c89bed19a0
2017-08-03 12:10:47 -07:00
..
__fixtures__ Support additional dependency declaration format 2017-07-11 11:18:56 -07:00
__tests__ Support additional dependency declaration format 2017-07-11 11:18:56 -07:00
android Support additional dependency declaration format 2017-07-11 11:18:56 -07:00
ios match plist indentation with xcode format 2017-03-31 03:03:10 -07:00
windows react-native link (aka rnpm) support for Windows 2016-12-10 16:58:28 -08:00
commandStub.js Add pre/postunlink 2016-08-24 10:58:46 -07:00
getDependencyConfig.js Further RNPM integration 2016-08-22 08:58:37 -07:00
getProjectDependencies.js Further RNPM integration 2016-08-22 08:58:37 -07:00
groupFilesByType.js Further RNPM integration 2016-08-22 08:58:37 -07:00
link.js Make the CLI recognize CRNA projects 2017-08-03 12:10:47 -07:00
pollParams.js Updating the usage of inquirer API 2017-07-06 14:34:45 -07:00
promiseWaterfall.js Further RNPM integration 2016-08-22 08:58:37 -07:00
promisify.js Add pre/postunlink 2016-08-24 10:58:46 -07:00
unlink.js Improve `unlink` on rnpm 2017-01-12 13:58:34 -08:00