Commit Graph
57 Commits
Author SHA1 Message Date
Eloy Durán 0a93be1a42 feat(cli-platform-ios): add macOS auto-linking support (#1126)
* [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
2020-05-27 12:04:45 +02:00
TMaszkoandMichał Pierzchała 9e44835025 fix: invalid output from config command (#1131)
* 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]>
2020-04-29 10:26:30 +02:00
Michał Pierzchała 1ef8be8257 chore: bump Jest to 25 (#1071) 2020-03-31 20:11:49 +02:00
Scott WilliamsandScott Williams e711fe6668 Force min version update to mkdirp which in turn updates minimist to prototype pollution vulnerability (#1058)
Co-authored-by: Scott Williams <[email protected]>
2020-03-18 12:40:26 +01:00
Michał Pierzchała ba91e87008 chore: regenerate lock file (#1021)
* chore: regenerate lock file

* add resolutions for mkdirp

* pin @types/node to 8, use corejs 2 explicitly
2020-02-26 09:48:31 +01:00
Antón Molleda ad49a0a4eb Fix: add missing dependencies (#1020)
* fix: missing dependencies

Fix #1017

* chore: make `build-clean(-all)` work cross-platform
2020-02-26 08:17:41 +01:00
Michał Pierzchała 9560d0d530 chore: upgrade chalk to v3 (#1003) 2020-02-23 21:17:55 +01:00
Michał Pierzchała 84240298d0 fix: building TS definitions broken by include package.json (#1005) 2020-02-23 21:08:36 +01:00
Michał Pierzchała ce778f3b96 chore: upgrade TS to 3.8 (#997) 2020-02-22 11:31:41 +01:00
Michał Pierzchała 0f553e78f5 chore: use script to link packages because lerna is buggy (#1000) 2020-02-21 18:40:40 +01:00
Antón MolledaandMichał Pierzchała 1c93b9b46e fix: script to link all packages (#988)
* 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]>
2020-02-20 22:12:13 +01:00
Antón Molleda de880293ad chore: make "watch" script work on all platforms (#991)
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
2020-02-20 10:56:27 +01:00
tad3jandMichał Pierzchała 9d1df97b3e feat: bumping metro packages to v0.57.0, which fixes a Windows CLI bug (#864)
* *bumping metro packages to v0.57.0, which fixes a Windows CLI bug: https://github.com/facebook/metro/commit/7c6f30b592b2fb23cee55b54f1aa4b7a522dec18

* get rid of removed createBlacklist

Co-authored-by: Michał Pierzchała <[email protected]>
2020-02-05 17:20:38 +01:00
grabbou c94b57ce04 chore: setup next release process 2020-01-29 17:50:54 +01:00
Michał Pierzchała e7784d58a6 chore: bump lerna to 3.18 2019-11-15 11:32:53 +01:00
Michał Pierzchała 0b818775db fix: debugger-ui name and reload button (#844) 2019-11-14 18:21:25 +01:00
Kacper Wiszczuk 7ead62ae0c imp: Extract debugger-ui (#832)
* imp: Extract debugger-ui

* Extract styles, images and audio file

* Typescript reference

* Remove IIFE and add copyright comment
2019-11-14 15:30:30 +01:00
Michał Pierzchała c32bccea7a chore: bump TS to 3.7 (#836) 2019-11-05 19:02:14 +01:00
Adrien ThieryandMichał Pierzchała 0d77e98cea docs: update linking setup in contributing guide (#806)
* 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
2019-10-24 22:09:35 +02:00
Mike Grabowski 78bfbfbdd6 chore: finish migration to TypeScript (#788)
* Remove remaining pieces of Flow

* Update CircleCI configuration

* I lied, fix config one more time

* Remove flow-typed and console-log
2019-10-14 21:47:24 +02:00
Michał Pierzchała 6e68862fcb chore: migrate upgrade command to TS and remove legacy implementation (#684)
* chore: migrate upgrade command to TS

* fixup semver.coerce
2019-09-09 23:47:11 +02:00
Michał Pierzchała 16065aab86 chore: bump Flow to 0.107 (#682) 2019-09-09 19:20:10 +02:00
Christoph Nakazawa 21640beccb chore: **BREAKING** upgrade to Metro 0.56 (#630) 2019-08-12 16:14:26 +02:00
Michał Pierzchała 9cfc1468bf clean TS cache before publishing 2019-08-02 12:21:42 +02:00
Kacper Wiszczuk 5e5d50dcbe imp: migrate platform-android to TypeScript (#597) 2019-08-01 17:18:13 +02:00
Michał Pierzchała db0ae51cc0 adjust build-clean and publish scirpts 2019-07-11 12:54:05 +02:00
James George be699f7d54 chore: refactor packageManager.js for less redundancy (#433) 2019-06-21 20:19:50 +02:00
Michał Pierzchała f482f234b5 chore: bump Flow to 0.101 (#431) 2019-06-17 16:07:47 +02:00
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