* 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.
* Fix skipped test for add file to project
* Add ESLint config and fix all the errors
* Use proper lint command
* Function is required here
* This file is unused
* Remove extraneous files and move utils to correct folders
* Add strict mode to global-cli again and use preset for other places
* Revert changes to debugger-ui for browser compatibility
* Revert changes in global-cli, package should run on older Node too