react-native/local-cli/server/util
gabriel 3f16aa5559 added chromium support for devTools on linux
Summary:
<details>
  Thanks for submitting a PR! Please read these instructions carefully:

  - [ ] Explain the **motivation** for making this change.
  - [ ] Provide a **test plan** demonstrating that the code is solid.
  - [ ] Match the **code formatting** of the rest of the codebase.
  - [ ] Target the `master` branch, NOT a "stable" branch.

  Please read the [Contribution Guidelines](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md) to learn more about contributing to React Native.
</details>

_What existing problem does the pull request solve?_

On Linux, the packager caught an "Google Chrome exited with error: { Error: spawn google-chrome ENOENT}" when trying to launch the devTools because google-chrome is not installed but chromium is.
Thus, this pull request maps the platform Linux with chromium for launching the debugger automatically in the packager

_A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website._

- enter on terminal
    > react-native start
- launch the app in dev mode with "Debug JS remotely" enabled
- the packager prints "Launching Dev Tools..." and launch chromium with the debugger
![screenshot](https://user-images.githubusercontent.com/13065528/27481217-ceaf5e58-581b-11e7-976f-75c107596ad3.png)
Closes https://github.com/facebook/react-native/pull/14696

Differential Revision: D5398564

Pulled By: hramos

fbshipit-source-id: 151f83b549492c8716a248eb16f7e24c5658b32e
2017-07-11 12:31:15 -07:00
..
__tests__ remove disableAutomock from jest tests (new default) @bypass-lint 2017-06-13 15:04:09 -07:00
external Make copy button work on android emulator in Linux using xsel 2017-04-04 10:20:19 -07:00
attachHMRServer.js Add https options to RN CLI server 2017-06-12 16:15:37 -07:00
copyToClipBoard.js Update copyToClipBoard.js 2017-07-10 15:22:50 -07:00
debugger.html RN: Improve Audio for Maintaining Priority 2017-06-19 13:30:51 -07:00
debuggerWorker.js Handle fatal errors thrown by the Chrome debugger 2017-06-12 03:38:51 -07:00
getInverseDependencies.js react-native: attachHMRServer: make it generic 2017-06-02 09:31:41 -07:00
jsPackagerClient.js BREAKING: Change the js1 - packager - RN App protocol to version 2 2017-02-16 04:30:00 -08:00
launchChrome.js added chromium support for devTools on linux 2017-07-11 12:31:15 -07:00
launchEditor.js open in editor fix, show tip instead of error 2017-04-28 06:18:30 -07:00
messageSocket.js Extract PackagerConnectionSettings to ensure easier reusability of PackagerConnection module 2017-03-17 10:02:34 -07:00
webSocketProxy.js Improve Chrome debugger 2016-02-05 15:17:33 -08:00