450 Commits
Author SHA1 Message Date
Kacper Wiszczuk 8cac6b010d v4.10.0 2020-06-04 20:04:23 +02:00
Baris Sencan b2ac1aaf85 chore: remove unused param in method documentation (#1184)
createProjectFromTemplate no longer accepts yarnVersion
2020-06-03 16:21:17 +02:00
Michał Pierzchała 999059ab84 feat: detach doctor command (#1183)
* feat: detach doctor command

* update snapshot

* bring back doctor to project commands set as well
2020-06-03 16:16:01 +02:00
Antón MolledaandEloy Durán f5fbaf9239 feat: install android dependencies automatically (#1109)
* feat: install Android dependencies automatically if missing

* chore: tests and refactors

* chore: linting issues

* chore: refactor and more tests

* fix: androidSDK windows tests 🤞

* chore: create AVD

* chore: apply suggestions from code review

Co-authored-by: Eloy Durán <[email protected]>

* chore: pr feedback

* chore: fix tests

* chore: move processorType to windows tools

Co-authored-by: Eloy Durán <[email protected]>
2020-06-03 16:14:09 +02:00
Kacper Wiszczuk 48136adfb8 v4.9.0 2020-05-18 16:25:48 +02:00
Antón MolledaandMichał Pierzchała 5819a17d14 chore: make cleanup async (#1156)
* chore: make `cleanup` async

Using `rimraf.sync` can cause `ENOTEMPTY` and `EBUSY` errors on Windows.
This can make the Windows CI to fail randomly. Changing to the async
method defaults to autoretry 3 times and thus avoiding this issues.

* chore: jest config

* chore: e2e tests use sync cleanup

* chore: pr feedback

* chore: revert timeout

* Update __e2e__/default.test.ts

* Update __e2e__/default.test.ts

Co-authored-by: Michał Pierzchała <[email protected]>
2020-05-12 15:53:04 +02:00
Ville ImmonenandKacper Wiszczuk 2c08a8254c refactor: use the cli-server-api package (#1140)
* refactor: use the cli-server-api package

* Rename `server` folder to `start`

* Fix debugger always opening

Co-authored-by: Kacper Wiszczuk <[email protected]>
2020-05-08 11:33:48 +02:00
Federico Morrone 11fa25cccb feat: added --skip-install option to init command (#1143) 2020-05-08 09:55:15 +02:00
Andrew Coates b92fbc6b9b Allow out of tree platforms to work without custom metro configs (#1115)
* Allow out of tree platforms to work without custom metro configs

* Need to add the platofrm specifc InitializeCore to getModulesRunBeforeMainModule

* lock

* Add npmPackageName to schema

* Some documentation

* Use finally to restore resolveRequest
2020-05-08 09:47:20 +02:00
2d71e50fa0 Add Windows and mac os instructions (#1152)
* Properly handle --host param for remote debugging

* linting

* Add instructions for Windows and mac OS

* lint

* Update packages/cli/src/commands/init/printRunInstructions.ts

Co-authored-by: Eloy Durán <[email protected]>

* Update packages/cli/src/commands/init/printRunInstructions.ts

Co-authored-by: Alexander Sklar <[email protected]>
Co-authored-by: Michał Pierzchała <[email protected]>
Co-authored-by: Eloy Durán <[email protected]>
2020-05-06 13:05:54 +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
Antón Molleda cbcdf20d70 fix: androidSDK windows tests (#1141)
On Windows CI tests could be run from the root of a disk (e.g. D:\\) and
causing permission issues. This PR uses the OS temp directory to create
a new one and use it as the project root to avoid this problem.
2020-04-27 16:47:54 +02:00
Ville Immonen 16c6c09f0e chore: remove unused dependencies from cli (#1139) 2020-04-27 13:17:04 +02:00
James George c4b49b4690 chore: remove stale type definition (#1134) 2020-04-25 19:50:21 +02:00
Ville Immonen 5c83d59bb4 refactor: make watchFolders read-only everywhere (#1132) 2020-04-25 15:34:51 +02:00
Ville Immonen bbb830efcd refactor: move launchDebugger etc. to cli-tools (#1133) 2020-04-25 13:08:42 +02:00
Michał Pierzchała 65aaa0a113 v4.8.0 2020-04-24 18:53:10 +02:00
Kacper Wiszczuk d72a28ab3a v4.7.0 2020-04-14 15:25:55 +02:00
Michał Pierzchała dca351d037 v4.6.3 2020-04-08 18:01:08 +02:00
Michał Pierzchała 9bd7a5eb5f v4.6.2 2020-04-08 17:43:10 +02:00
Michał Pierzchała 0c068d1d1b v4.6.1 2020-04-08 17:38:51 +02:00
Kacper Wiszczuk 44af4821c5 v4.6.0 2020-04-06 17:08:16 +02:00
Antón Molleda 6c72d03bbc feat: install JDK automatically if missing (#1065)
* feat: install JDK automatically if missing on Windows

Install JDK@11 on Windows if missing. Later version break Gradle and
prior versions do not provide a .zip for easy local installation.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fix #980

* chore: pr feedback

* chore: replace node-unzipper with node-stream-zip

* chore: pr feedback

* chore: pr feedback
2020-04-06 15:00:10 +02:00
Kacper Wiszczuk d4dbfe7110 Imp: change shebang in setup_env.sh (#1097) 2020-04-05 22:15:40 +02:00
Michał Pierzchała e686c15940 v4.5.1 2020-04-01 19:02:10 +02:00
Michał Pierzchała 1ef8be8257 chore: bump Jest to 25 (#1071) 2020-03-31 20:11:49 +02:00
Michel Weststrate 9a5062ce0a Fix: allow Hermes Debugger to connect from Flipper (#1086)
* Fix: allow Hermes Debugger to connect from Flipper

This change reflects D20526486 by @rickhanlonii  at Facebook: when Running Hermes Debugger from inside Flipper, the origin is localhost, but not the metro port. This fixes https://github.com/facebook/flipper/issues/660#issuecomment-606239984

* Fixed compile errors

* Fix lint error
2020-03-31 16:33:11 +02:00
Michał Pierzchała a4a0f78491 v4.5.0 2020-03-30 14:39:22 +02:00
Victor BastosandVictor Bastos 5503369b3b fix: yarn/npm init before install template (#1603) (#1077)
Co-authored-by: Victor Bastos <[email protected]>
2020-03-27 21:10:20 +01:00
Lucas Bento d21c21ee13 feat: add CocoaPods to info command (#1075) 2020-03-27 12:44:08 +01:00
Michał Pierzchała 4824113076 v4.4.0 2020-03-25 12:31:55 +01:00
Michał Pierzchała 1a9a525e6e chore: remove >=0.60.0-rc.0 restriction for init (#1069) 2020-03-25 12:26:26 +01:00
Adrian Hartanto de91d1062b feat: remove assetsDest checking (#1064)
* feat: remove assetsDest checking

* Remove unused
2020-03-23 13:53:37 +01:00
Mike Grabowski 4dbfc7751a feat: run pod repo update when pod install failed (#1061)
* feat: update repo

* chore: update
2020-03-19 10:01:25 +01:00
Michał Pierzchała 79498d598e followup: fix what #1029 broke (#1053)
* followup: fix what #1029 broke

* get rid of appName from dependencies
2020-03-16 16:47:49 +01:00
Michał Pierzchała 19ac71f02c feat(android): add appName; deprecate root, appFolder, appId (#1029)
* feat: add appName; deprecate root, appFolder, appId

* add deprecation warnings
2020-03-16 14:39:08 +01:00
Michał Pierzchała e7d694672a chore: remove unused --assetExts from server (#1051) 2020-03-14 17:52:00 +01:00
Antón MolledaandMichał Pierzchała 672ffc013b feat: install python if missing on Windows (#1040)
* feat: install python if missing on Windows

Fix #979

* feat: add `fetchToTemp` method

Add `fetchToTem` method that downloads a given URL into the OS's temp
folder.

Also bump `node-fetch` to solve an issue with content-length not being
correctly streamed.

* chore: pr feedback

s 52999ec5a7c0

* chore: limit python version

* chore: use logger instead of console

* chore: tests

* simplify

Co-authored-by: Michał Pierzchała <[email protected]>
2020-03-13 19:01:36 +01:00
Janic Duplessis 47b3dd9720 Fix bundling assets with a path outside of the project root (#939) 2020-03-11 21:13:06 +01:00
Mike GrabowskiandMichał Pierzchała 01d855c626 chore: remove REACT_NATIVE_APP_ROOT, use --watchFolders (#935)
* chore: remove `watchFolders` from the CLI

* Update CONTRIBUTING.md

* remove findSymlinkedModules

Co-authored-by: Michał Pierzchała <[email protected]>
2020-03-11 12:58:03 +01:00
Michał Pierzchała bbbcd140f6 chore: remove haste and rnpm (#1043) 2020-03-11 12:55:06 +01:00
Michał Pierzchała 8eed60edee chore: remove copyToClipboardMiddleware (#1045) 2020-03-10 20:05:47 +01:00
Kacper WiszczukandMichał Pierzchała a90851a34b chore: add deprecation messages for manual linking (#1037)
* imp: Add deprecation messages for linking

* Correct messages

* Wrong English

* adjust wording

Co-authored-by: Michał Pierzchała <[email protected]>
2020-03-10 19:06:46 +01:00
Michał Pierzchała 6cded84050 v4.3.0 2020-03-10 15:40:09 +01:00
Mikael Sand 4a0c14c870 fix(android): Incorrect mapping of svg files (#1042)
https://github.com/react-native-community/react-native-svg/issues/1306
2020-03-09 06:00:29 +02:00
Michał Pierzchała 4b9995e0e8 chore: remove setting hasteImplModulePath in Metro config (#1041) 2020-03-06 18:05:29 +00:00
Michał Pierzchała 5ac479123c feat: bail out when initializing new project to pre-existing di… (#1036)
* fix: init with directory option set to .

* Remove initializing to pre-existing directory

* Remove lint errors

* Bring back relative names

* Consistent names everywhere
2020-03-04 21:37:08 +01:00
Michał Pierzchała 42ba77ec5f v4.2.4 2020-03-04 17:46:29 +01:00
Michał Pierzchała 8ec92908b8 chore: set correct react-native peer dependency (#1035)
* chore: set correct react-native peer dependency

* use rc
2020-03-04 17:44:18 +01:00
grabbou 9092319332 v4.2.3 2020-03-04 14:20:12 +01:00