Commit Graph
1790 Commits
Author SHA1 Message Date
Eric Samelson 2d080379cd feat: export AssetUtils from cli package 2020-06-08 17:21:30 -07:00
Kacper Wiszczuk 8cac6b010d v4.10.0 2020-06-04 20:04:23 +02:00
Steven Conaway b5dfb29bd4 chore: Fix minor typo in run-ios (#1188) 2020-06-04 09:13:38 +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
luism3861andluism3861 ee59645925 chore: use iPhone SE instead of iPhone 5 in run-ios example (#1187)
Co-authored-by: luism3861 <[email protected]>
2020-06-03 16:18:02 +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
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
Hung-Wei Wu 6bd0b3263a chore: upgrade logkitty to 0.7.1 2020-05-26 22:43:53 +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
Kacper Wiszczuk f497f5a9f1 imp: Manifest cleanup (#1162) 2020-05-08 12:31:18 +02:00
James George 5a2b719b79 test: e2e test case for init with --skip-install flag (#1161) 2020-05-08 12:18:42 +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
Jussi Kinnula 4743f923b2 Fix Android project's configuration manifestPath is not used… (#1160) 2020-05-08 11:18:48 +02:00
Michał Pierzchała 3061e2cf43 fix: bring back --appId flag; fix wrong appName instructions (#1155)
* docs: fix wrong appName instructions

* fixup deprecation warnings

* revert faulty appId deprecation
2020-05-08 09:56:23 +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
Ville Immonen e65a7a870f fix: read request body for Metro symbolication (#1147)
Metro `/symbolicate` endpoint requires the request body to be available
in `req.rawBody`, which the `rawBodyMiddleware` adds.

Fixes the following error from `cli-server-api`:
    SyntaxError: Unexpected token u in JSON at position 0
        at JSON.parse (<anonymous>)
        at /Users/ville/Projects/react-native-cli/node_modules/metro/src/Server.js:1026:28
2020-04-30 16:05:30 +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
Ville Immonen 34a607eaa1 chore: publish cli-server-api types (#1138) 2020-04-27 10:34:52 +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
Ville Immonen 85b395ffe3 feat: add a programmatic dev server API (#1118) 2020-04-24 18:45:49 +02:00
Bartosz Kaszubowski a5d837543d chore: update docs link in the Android installation error messa… (#1125) 2020-04-22 16:00:02 +02:00
Vojtech Novak bd20b37e28 fix: do not ignore androidProject.sourceDir option (#1122) 2020-04-20 21:58:16 +02:00
Michał Pierzchała bfc4ec24ee chore: target not 8.3, not 8.0 (#1117) 2020-04-20 15:30:48 +02:00
Ville Immonen 66a0616415 docs: add a note about --watchFolders in CONTRIBUTING.md (#1116)
Not passing the `--watchFolders` flag to `npx react-native start` when testing changes locally results in a cryptic error "ReferenceError: SHA-1 for file (...)/cli/node_modules/metro/src/lib/polyfills/require.js (...) is not computed".

Let's add a more prominent note about it in the contributor docs to help others avoid this problem.
2020-04-16 16:27:46 +02:00
Kacper Wiszczuk d72a28ab3a v4.7.0 2020-04-14 15:25:55 +02:00
Mike Grabowski c8bfdc690d feat: return config from the Ruby function (#1107) 2020-04-09 17:15:57 +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
Michał Pierzchała 0bf8415d23 chore: run yarn-deduplicate 2020-04-08 17:14:54 +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 e87b6b566f fix: Use correct terminal on linux systems (#1099) 2020-04-05 22:26:17 +02:00
Kacper Wiszczuk 2d63746600 fix: split output by EOL (#1098) 2020-04-05 22:17:13 +02:00
Kacper Wiszczuk d4dbfe7110 Imp: change shebang in setup_env.sh (#1097) 2020-04-05 22:15:40 +02:00
Michał PierzchałaandKacper Wiszczuk 1bdcf856c6 chore: run yarn-deduplicate to shrink node_modules (#1088)
Co-authored-by: Kacper Wiszczuk <[email protected]>
2020-04-05 19:45:14 +02:00
dependabot[bot] 7f7186720c chore(deps): bump minimist from 1.2.2 to 1.2.3 (#1095)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.2...1.2.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-05 09:55:33 +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
Christian Brevik 1675af5450 fix: don't use appIdSuffix to generate run task (#1087)
* fix: don't use appidsuffix to generate run task

* fix lint
2020-03-31 20:01:23 +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