Commit Graph
29 Commits
Author SHA1 Message Date
Kacper WiszczukandMichał Pierzchała b03f7413cc chore: migrate tools to TypeScript (#296)
* Migrate tools package to Typescript

* Prebuild ts

* Improve yarn build-clean

* Remove unnecessary statements

* Fix linting

* Fix eslint

* Update packages/tools/src/isPackagerRunning.ts

Co-Authored-By: Michał Pierzchała <[email protected]>

* adjust package.json

* add vscode helper settings

* remove dead node-fetch references
2019-05-17 22:32:54 +02:00
Michał Pierzchała 287fecfed8 chore: bump lerna to latest 2019-05-15 17:13:51 +02:00
Eloy Durán 76f079ee8a feat: autolink on iOS 2019-04-16 22:54:46 +02:00
Michał Pierzchała 708211a645 chore: move shared types to root; moar link styles; bye promiseWaterfall (#312)
* 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
2019-04-16 14:53:50 +02:00
Mike Grabowski 6343e2a892 feat: extract commands out to platform packages (#302)
* 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
2019-04-10 14:24:20 +02:00
Michał Pierzchała fa08711ae6 chore: bump Jest and Flow to latest (#304) 2019-04-09 23:18:56 +02:00
Michał Pierzchała 62b8b7c2b5 remove clean on postinstall 2019-04-05 22:10:22 +02:00
Mike Grabowski 5f7dba3d6e feat: extract iOS and Android specific linking files out of the core (#290)
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.
2019-04-05 22:02:26 +02:00
Michał Pierzchała ecbafd6350 fix: flaky tests; upgrade Jest to 24.6 (#282)
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
2019-04-02 16:51:28 +02:00
Michał Pierzchała 43e37dd946 chore: update deps to avoid security warnings (#270)
Summary:
---------

Upgrading deps.


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

Green CI
2019-03-28 17:18:23 +01:00
Michał Pierzchała 75ccf8e56d chore: setup e2e tests (#264)
* chore: setup e2e tests

* add flowfixmes

* use test.each

* add docs to install/uninstall

* remove dead code
2019-03-28 14:06:30 +01:00
Michał Pierzchała de88920d85 chore: remove legacy core/findPlugins (#235)
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
2019-03-15 14:27:43 +01:00
Michał Pierzchała 82087ef2a9 fix: change diff links for upgrade command (#206)
* fix: change diff links for upgrade command

* use prettier without @format pragma
2019-03-05 21:17:34 +01:00
Drapich Piotr 885f2c28d4 chore: use @react-native-community/eslint-config (#205)
Summary:
---------

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


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

Green CI
2019-03-05 20:52:51 +01:00
Michał Pierzchała 041b7d789e chore: bump flow to 0.94 (#200)
Summary:
---------

It's usually better to be on the latest available :D 

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

Green CI
2019-03-04 18:11:24 +01:00
Mike Grabowski 5ed021eb0b Temporarily remove commit lint 2019-02-13 14:59:45 +01:00
Michał Pierzchała 9a45766463 feat(perf): use lazy module evaluation (#152)
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.
2019-02-06 09:17:33 +01:00
Michał Pierzchała fa3ae496c5 chore: upgrade Jest to v24 (#127)
Summary:
---------

Jest 24 is out at last!


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

Green
2019-01-25 17:04:10 +01:00
K. P. Sroka 1c181095c2 feat: Removes calls to process.pwd() in favor of using context.root (#116)
* feat: use ctx.root instead of process.cwd() in several commands

* test: upgrading patch version of jest to avoid worker system bug
2019-01-23 19:59:16 +01:00
Michał Pierzchała 61bc2882f5 chore: setup monorepo with Lerna (#109)
* chore: setup monorepo with lerna

* chore: move flow to root

* fix: lint

* chore: add watch command
2019-01-23 18:04:01 +01:00
Michał Pierzchała abc00a372b chore: ease work with monorepo with jest packages and global Flow 2019-01-11 17:37:25 +01:00
Kacper Wiszczuk c0780b8cab docs: Add CONTIBUTING.md (#69)
This PR includes:
- [x] - Adding `CONTRIBUTING.md`
- [x] - Setting up `husky` with `commitlint` to force meaningul commit messages

Fixes #62
2019-01-11 13:28:18 +01:00
Ferran Negre c5e37435e5 fix: no need from cd - on package.json so we can pass custom arguments. (#72) 2019-01-10 15:15:53 +01:00
Mike Grabowski 08962ecfc9 Add ESLint (#52)
* 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
2018-12-19 17:49:48 +01:00
Michał Pierzchała 40a073a758 simplify cd 2018-11-09 11:24:39 +01:00
Michał Pierzchała f5cb71ffde go back to root after test/typecheck 2018-11-09 11:20:38 +01:00
Michał Pierzchała b4b9d077ea chore: setup CircleCI 2018-11-09 11:17:06 +01:00
Mike Grabowski 9e6d069677 Make Jest tests run 2018-11-07 14:46:26 +01:00
Kacper Wiszczuk b02fb8232e Make local-cli run 2018-11-06 12:13:01 +01:00