Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local React Native Cli support #1093

Merged
merged 56 commits into from
Oct 25, 2019

Conversation

RedMickey
Copy link
Contributor

@RedMickey RedMickey commented Sep 3, 2019

Added React Native local CLI support for the extension.
Changed function of getting React Native version.
Added unit tests for a new getting React Native version function.
Added a new error ReactNativePackageIsNotInstalled with code 606. This error will be thrown if there isn't react-native package in project's node modules.
Resolves #1101

The following table represents telemetry events changes:

New React Native local CLI approach Old React Native global CLI approach
Added a new step getReactNativeVersion to launch sequence. Screen Shot 2019-10-22 at 13 25 15
This step and other steps in launch sequence can contain an error number 606: image
getReactNativeVersion step doesn't exist.
The rest of the steps don't contain error number 606 field.
The following telemetry events can contain error number 606:
  • commandPalette.runAndroidSimulator
  • commandPalette.runAndroidDevice
  • commandPalette.startPackager
  • commandPalette.restartPackager
  • commandPalette.runIosDevice
  • commandPalette.runIosSimulator
  • commandPalette.runExponent
  • RNCommand
  • commandPalette.publishToExpHost
For example commandPalette.startPackager event could be as following: image
These events don't contain error number 606 field.

@SounD120 SounD120 self-requested a review September 3, 2019 08:20
src/common/commandExecutor.ts Outdated Show resolved Hide resolved
src/common/commandExecutor.ts Outdated Show resolved Hide resolved
src/common/commandExecutor.ts Outdated Show resolved Hide resolved
src/common/commandExecutor.ts Outdated Show resolved Hide resolved
src/extension/rn-extension.ts Outdated Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
src/extension/commandPaletteHandler.ts Outdated Show resolved Hide resolved
src/common/commandExecutor.ts Outdated Show resolved Hide resolved
src/extension/settingsHelper.ts Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Outdated Show resolved Hide resolved
test/smoke/resources/settings.json Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Outdated Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
src/extension/extensionServer.ts Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
src/common/reactNativeProjectHelper.ts Outdated Show resolved Hide resolved
test/common/reactNativeProjectHelper.test.ts Outdated Show resolved Hide resolved
test/common/reactNativeProjectHelper.test.ts Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Outdated Show resolved Hide resolved
test/extension/commandExecutor.test.ts Outdated Show resolved Hide resolved
test/common/reactNativeProjectHelper.test.ts Outdated Show resolved Hide resolved
test/common/reactNativeProjectHelper.test.ts Outdated Show resolved Hide resolved
Co-Authored-By: Yuri Skorokhodov <[email protected]>
Copy link
Member

@dhanvikapila dhanvikapila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Got some small questions in my review.

@RedMickey RedMickey merged commit af1474a into microsoft:master Oct 25, 2019
@RedMickey RedMickey deleted the local-react-native-cli branch October 25, 2019 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add local React Native CLI support
3 participants