react-native/local-cli
Eric Rozell 1673c570f9 Uses a single code path to link and unlink all platforms
Summary:
This commit removes special cases for linking iOS and Android platforms.

A previous commit opened up link and other commands for other platforms to provide their own behaviors. It left special cases in tact for iOS and Android. This PR removes the special case.

- Added jest tests related to the link command.
- Ran the `link` and `unlink` commands for iOS and Android and confirmed no changes.

https://github.com/facebook/react-native/pull/17745

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAL  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->

[CLI][FEATURE][local-cli/link/link.js] - Removes special cases for linking in iOS and Android.
Closes https://github.com/facebook/react-native/pull/17961

Differential Revision: D6975951

Pulled By: hramos

fbshipit-source-id: 8dd5da35619e2124ce4b3b18db8b694757792363
2018-02-13 05:06:42 -08:00
..
__mocks__ Do not use Node 8.x specific Stream.final 2017-12-20 16:48:25 -08:00
__tests__ Fixing eslint-comments warnings 2018-01-08 17:04:29 -08:00
bundle Pass hasteImplModulePath to JestHasteMap and everywhere else 2018-01-30 11:30:54 -08:00
core Uses a single code path to link and unlink all platforms 2018-02-13 05:06:42 -08:00
dependencies Pass hasteImplModulePath to JestHasteMap and everywhere else 2018-01-30 11:30:54 -08:00
eject Run eslint --fix 2017-10-09 17:46:44 -07:00
generator Typos in comments and log messages 2018-01-12 22:18:45 -08:00
info added info CLI command 2017-07-18 11:45:47 -07:00
init Change indentation of package.json including Jest to 2 spaces 2017-10-15 10:50:20 -07:00
install Use Yarn for Install/Uninstall CLI if available 2017-02-02 05:13:33 -08:00
library Reject local-cli promises with Error objects 2017-08-08 09:38:21 -07:00
link Uses a single code path to link and unlink all platforms 2018-02-13 05:06:42 -08:00
logAndroid
logIOS
runAndroid adds --port option to `react-native run-ios` as well as patches port … 2018-01-04 20:11:10 -08:00
runIOS fixed issue with runIOS not being able to launch tvOS app 2018-01-29 13:48:13 -08:00
server Pass hasteImplModulePath to JestHasteMap and everywhere else 2018-01-30 11:30:54 -08:00
templates Ran rename-unsafe-lifecycles codemod on xplat/js 2018-02-08 10:58:31 -08:00
upgrade New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
util Uses findMetroConfig and fetchMetroConfig in the internal RN cli 2018-02-02 05:05:36 -08:00
.eslintrc Namespace custom ESLint rules through eslint-plugin-lint 2018-02-09 11:16:47 -08:00
cli.js packager: centralize babelRegisterOnly callsites 2017-01-06 06:13:54 -08:00
cliEntry.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
commands.js added info CLI command 2017-07-18 11:45:47 -07:00
setup_env.bat
setup_env.sh CLI: Adding shebang to setup_env.sh script 2017-05-31 02:46:23 -07:00
wrong-react-native.js Fix local-cli's installedGlobally check to work on Windows platforms 2017-12-04 11:17:10 -08:00