* [platform-ios] Describe native_modules.rb input
* [package] Add native_modules.rb to jest suite
* [platform-ios/native_modules] Use CP API in tests
* [platform-ios/native_modules] Port tests to JS
* [platform-ios/native_modules] Add platform specificity
Only include pods in targets that target platforms the pod supports.
* [platform-ios/native_modules] Disable tests in unssuported envs
* [platform-ios/native_modules] Clean-up test
* [platform-ios/native_modules] Improve output
* Moved disabling logger at the top when user used config command
* Added e2e tests for config command
* Added config command output snapshot
* Updated config test snapshot
* Added project root replacement helper
* Removed default terminal program from snapshots
* Moved tests to jest folder and removed additional snapshot
* less snapshots; use raw serializer
* strip unnecessary parts of the snapshot
* Added tmp directory to regex which replaces project root before snapshot
* Added slash before passing testFolder for project root replacing helper
* Fixed problem with windows paths replacing
* CR fixes
Co-authored-by: Michał Pierzchała <[email protected]>
* fix: script to link all packages
Fix#978
* chore: ignore `global-cli` in lerna config
* adjust glob so it works on mac...
Co-authored-by: Michał Pierzchała <[email protected]>
Use `chokidar` to track file system changes as soon it will throw an
error if the platform does not support `{ recursive: true }`.
Fix also an error where the built file was not being deleted when the
source was removed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fix#989
Ref: https://github.com/nodejs/node/pull/29947
* Added link to CONTRIBUTING from main README + added yarn link way to test changes
* Update CONTRIBUTING.md
Co-Authored-By: Michał Pierzchała <[email protected]>
* Update CONTRIBUTING.md
Co-Authored-By: Michał Pierzchała <[email protected]>
* adjust wording
* chore: move shared types to root; moar link styles; bye promiseWaterfall
* fix test
* add alias for global types
* bump Flow to 0.97
* add lint annotation to bin
* enable babel module resolver plugin
* import inquirer prompt type
* wip
* Finish it up
* Clean up packages
* Move files around
* Simplify regex
* Remove unused type
* Move packages around
* Fix type
* Update snapshot
* Make snapshot even smaller
* Throw unlink error
Summary:
---------
Historically, Android and iOS platform were hardcoded inside CLI and provided by default. Then, other packages could export additional platforms on top of it.
React Native as a platform was hardcoded in Metro configuration (default platforms, default extensions) and inside link. That means all new features were always developed with these platforms in mind, leaving others behind. We often used private APIs, which made things more complicated for 3rd party platform developers.
From this PR on, there's no longer concept of an out-of-tree platform inside of the CLI. In a follow up PR to React Native, I am going to configure iOS and Android platforms inside React Native, just like React Native Windows exposes Windows platform.
This will open room for improvements and should make it even easier for the CLI to welcome other platforms.
Summary:
---------
While working on #241 we discovered some flaky tests. This diff aims to fix those. It also updates Jest to 24.6 which comes with pretty nice perf improvements.
Test Plan:
----------
Green CI
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
Summary:
---------
I changed @callstack/eslint-config to @react-native-community/eslint-config and fixed all lint issues.
Test Plan:
----------
Green CI
Summary:
---------
After #150 (thanks @sidferreira and @Trancever) we're finally able to use lazy module evaluation for additional perf!
Before:
```
0.70 real 0.64 user 0.12 sys
```
After:
```
0.19 real 0.16 user 0.03 sys
```
Which gives us roughly 0.5s (~72%) improvement in startup time. With 0.2s startup time most commands feel instant now.
Test Plan:
----------
No new tests added.