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

Sync fork #1

Merged
merged 234 commits into from
Jul 12, 2019
Merged

Sync fork #1

merged 234 commits into from
Jul 12, 2019

Conversation

dratwas
Copy link
Owner

@dratwas dratwas commented Jul 12, 2019

Summary:

Test Plan:

dratwas and others added 30 commits March 5, 2019 20:52
Summary:
---------

I changed @callstack/eslint-config to @react-native-community/eslint-config and fixed all lint issues.


Test Plan:
----------

Green CI
* fix: change diff links for upgrade command

* use prettier without @Format pragma
Summary:
---------

`eject` had wrong paths (pointing to old RN directories), so this PR fixes that.

Fixes #207 	

Test Plan:
----------

1. Init new project RN 0.59+
2. Remove `android` and/or `ios`
3. Use the `eject` command to generate ios/android projects
* chore: simplify commander/minimist usage

* feedback

* remove extra parse

* add options back

* rephrase comment

* remove excess whitespace
`noHelp` doesn't work because we override `printHelpInformation` and we need to handle `description` (that can be undefined) manually
Summary:
---------

Fix incorrect path to cli index.js in Contributing documentation.
Summary:
---------

Fix path to React Native `InitializeCore` module in default metro config.
For some reason, this path was modified when moving the `loadMetroConfig.js` file in new `tools` directory.
In current released version (v1.3.2) of the cli, the path is the correct one, as seen in the [loadMetroConfig.js](https://github.com/react-native-community/react-native-cli/blob/%40react-native-community/cli%401.3.2/packages/cli/src/util/loadMetroConfig.js#L52) of v1.3.2.

Test Plan:
----------

Was trying out `react-native run-ios` / `run-android` commands, after a fresh `react-native init` with current master branch of the cli, and was facing following metro bundler error:

```
error: bundling failed: Error: Cannot find module '/Users/blemair/Code/foo/node_modules/react-native/Libraries/tools/InitializeCore'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.resolve (internal/modules/cjs/helpers.js:30:19)
    at Object.getModulesRunBeforeMainModule (/Users/blemair/Code/foo/node_modules/@react-native-community/cli/build/tools/loadMetroConfig.js:80:53)
[...]
```

After fixing the path, bundling error was gone.
* Fix Android unlink regression

* Update regex to accept extra whitespaces

* Extract dependency regex string to own function

With this approach we have one source of truth for both the regex and
the dependency types.

* Rename dependency types to dependency configs

The Gradle documentation calls "configurations" what we have been
referring to as "types".
Summary:
---------

Missed this one while moving files around in #201.
Fixes #225


Test Plan:
----------

Verified locally on a clean project.
* fix: refine upgrade error handling

* moar refinements to the output
 - @react-native-community/cli@1.4.3
 - @react-native-community/cli@1.4.4
)

* fix: reactNativePath and projectRoot not being parsed by commander

* add minimist
Summary:
---------

Now that we prepare 2.0 release, we can remove it. Also added `build-clean` to `postinstall` hook to avoid publishing extras when not using lerna.


Test Plan:
----------

@grabbou
thecodrr and others added 29 commits July 6, 2019 15:10
* chore: add updating guide & improve about

* update readme

* fix typo
* Fixed cli --simulator not working with latest Xcode simulator name with brackets

* Updated test case

* Fixed findMatchingSimulator unit test
* fix: fix project directory name in run instructions

* fix: pass the right project directory to printRunInstructions
* fix: run `pod repo update` after installing CocoaPods (#487)

Added `pod repo update` command call after CocoaPods installation to
avoid issues with pod command being unable to find specification for
dependency.
Added loader to CocoaPods installation step for consistency with other
steps of init and better DX, removed logger info after 30s timeout
because of redundancy with loader.
Changed loader method before prompt for CocoaPods installation from
`stop` to `info` for better prompt visibility.

* always show installing pods step

* add notice back

* minor loader refactor

* fix false positive for pod command being available

* use pod --version for smaller output
@dratwas dratwas merged commit cabaa93 into dratwas:master Jul 12, 2019
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.