Commit Graph
53 Commits
Author SHA1 Message Date
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
Trevor Cook 4c8af54e29 fix: android config returns incorrect paths (#1080)
* docs: update Android config typedef

* fix: android config returning incorrect paths
2020-03-29 17:34:04 +02: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
Michał Pierzchała bbbcd140f6 chore: remove haste and rnpm (#1043) 2020-03-11 12:55:06 +01:00
grabbou a70064bfbe Revert "chore: remove extraneous properties from the run-android doc"
This reverts commit ca4a0aeb78.
2020-03-03 17:32:31 +01:00
grabbou ca4a0aeb78 chore: remove extraneous properties from the run-android doc 2020-02-05 17:20:53 +01:00
Abdullah AttaandMike Grabowski 25a2c44c4a feat: watch mode in react-native start (#613)
* feat: add keybinding (ctrl + r) for reload

* refactor: rename to watchMode

* feat: open dev menu if 'd' key is pressed

* feat: print watch mode instructions

* feat: add feedback outputs to command invokes

* refactor: remove redundant qualifiers

* feat: added --disableWatchMode flag

* docs: add docs for --disableWatchMode

* rename watchMode to interactiveMode

* move to typescript

* handle ctrl+z

* fix docs and flag

* Fix interactive mode flags

* Fix flag definition

* Update watchMode.ts

* Update hookStdout.ts

* Fix the `chunk` is not a string or Buffer

The function was converted to arrow function, but arguments were left

* Remove listener once we're done with printing the instructions

* The message is changed with Metro 0.58

Co-authored-by: Mike Grabowski <[email protected]>
2020-02-05 14:55:46 +01:00
Param Aggarwal 15febad02a docs: add example of dependency-level autolinking customisation (#942) 2020-02-05 14:55:46 +01:00
Andrew Li 935805419c fix: respect --directory in init run instructions (#918)
* fix: Respect --directory when printing run instructions

* test: Ensure run instructions contain custom directory
2020-02-05 14:52:31 +01:00
Mike Grabowski 5724d29dc9 feat: support autolinking in monorepos (#768)
* Improve handling of files in monorepo

* Fix tests with my poor Ruby haha

* Remove note about monorepo from the docs

* wat

* Okay, this is how you do tests in Ruby

* Fix Ruby tests

* Always resolve correct root

* Move files around

* Add tests - one is failing, need to check why

* Fix tests

* Assert it works from the same level

* Warn if the root is passed

We do not need root anymore. However, we still accept one argument (config) for testing purposes. Without this check, users that pass custom root would accidentially break their projects as CLI would take it as a config value.

* Implement monorepo support for Android

* Note custom paths

* Add quiet flag

* Improve handling of files in monorepo

* Fix tests with my poor Ruby haha

* Remove note about monorepo from the docs

* wat

* Okay, this is how you do tests in Ruby

* Fix Ruby tests

* Always resolve correct root

* Move files around

* Add tests - one is failing, need to check why

* Fix tests

* Assert it works from the same level

* Warn if the root is passed

We do not need root anymore. However, we still accept one argument (config) for testing purposes. Without this check, users that pass custom root would accidentially break their projects as CLI would take it as a config value.

* Implement monorepo support for Android

* Note custom paths

* Add quiet flag

* update locfile

* Fix init - make detachedCommands and remove ugly setProjectDir hack

* Resolve conflicts

* Fix remainig uses or root and get rid of cwd

* Update paths

* Remove unused func

* Update templates.ts

* Fix unit tests

* Better logger

* Debug

* Add deprecations

* Fix a typo

* Better deprecation message
2019-10-11 11:16:07 +02:00
Jesse Katsumata 77af493404 feat: add fallback behavior when running a default simulator on… (#758) 2019-10-05 22:17:03 +02:00
JavaScript Joe 360ae5eda7 docs: fix typo in commands section (#754) 2019-09-26 22:55:52 +02:00
Radek Czemerys 980e4d8119 chore: template shorthands are no longer supported (#715)
Update docs according to #495
2019-09-12 00:02:33 +02:00
CelsiusandMichał Pierzchała 1a580a5edf docs: update commands on generating dev JS bundle for Android re… (#700)
* Update commands.md

* Update docs/commands.md

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

* Update commands.md
2019-09-10 17:05:58 +02:00
Akshet Pandey 891ce9c0d9 feat: Allow passing in MainPackageConfig to PackageList (#653)
* feat: Allow passing in MainPackageConfig to PackageList

This allow customizing configuration for the MainReactPackage.
Right now this is limited to changing how FrescoModule gets initialized
but in the future this can allow changes in behavior for other core modules

* docs: Document optional MainPackageConfig parameter for PacakgeList
2019-09-10 09:15:41 +02:00
Kacper WiszczukandMichał Pierzchała 0fe211ed21 fix: Change title for newly initialised projects (#650)
* fix: Change title for newly initialized projects

* Update docs/commands.md

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

* Update packages/cli/src/commands/init/index.js

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

* Review suggestions
2019-08-27 11:19:30 +02:00
Michael Merickel 2fb38f91f8 docs: fix --projectRoot type (#632) 2019-08-14 09:02:49 +02:00
Mike Diarmid 7350e0e868 [iOS][auto-linking] fix: Add missing scriptPhases config (#621) 2019-08-06 15:44:47 +02:00
Nazar Maksymchuk 8c2d5b5f33 docs: adjust iOS monorepo docs on autolinking (#590) 2019-08-01 19:46:49 +02:00
Kacper Wiszczuk 5e5d50dcbe imp: migrate platform-android to TypeScript (#597) 2019-08-01 17:18:13 +02:00
liorJuice 24061f183f fix: adding back projectRoot to option (#588)
* adding projectRoot to options and resolve it

* fixing flow error

* adding --projectRoot to commands.md
2019-07-30 11:10:26 +02:00
Michał Pierzchała 8fb6912923 chore: better description for sourceDir config (#539) 2019-07-16 12:32:46 +02:00
Michał Pierzchała dcbbc39c3d feat: run jetifier before run-android (#526) 2019-07-12 17:48:38 +02:00
Michał Pierzchała c57f41e841 docs: add docs for unlink --platforms 2019-07-09 13:58:30 +02:00
Michał Pierzchała a3d468e54d chore: remove unstable init --template shorthand support (#495) 2019-07-09 10:32:30 +02:00
Michał Pierzchała 56ad88712b chore: add more information to autolinking guide (#505) 2019-07-08 19:18:02 +02:00
Michał Pierzchała ae7b78d3b9 feat: support local RN libraries in autolinking (#451)
* feat: support local RN libraries in autolinking

* simplify local deps config

* address feedback
2019-07-02 22:36:25 +02:00
Michał Pierzchała e50aa8da4b feat: simplify passing root to gradle autolinking (#457)
* feat: simplify passing root to gradle autolinking

* improve docs
2019-07-02 22:16:21 +02:00
Michał Pierzchała 32e6339763 chore(docs): simplify autolinking (#454)
* chore(docs): simplify autolinking

* address feedback
2019-07-02 16:41:25 +02:00
Michał PierzchałaandSatyajit Sahoo 5199d6af1a chore: group deprecated rnpm warnings, add migration guide (#450)
* chore: group deprecated rnpm warnings, add migration guide

* Update packages/cli/src/tools/config/index.js

Co-Authored-By: Satyajit Sahoo <[email protected]>

* remove parens from links
2019-07-01 20:50:20 +02:00
Michał Pierzchała 40242b918c docs: document how to disable autolinking for unsupported packag… (#444) 2019-06-27 16:23:19 +02:00
Michał Pierzchała c6ad37da59 feat(breaking): use 'podspecPath' instead of 'podspec', make it smarter (#442) 2019-06-24 21:34:23 +02:00
Emin Khateeb 982a18a4ff chore: update init docs to be more descriptive (#427)
* updated docs to match the current implementation

* added note about the shebang

* re-added the .js extension as it works with it as well
2019-06-14 09:03:57 +02:00
Michał Pierzchała 7dec6541a8 feat(breaking): link only assets by default; add --all flag (#416)
Change the default behavior of `link` to only link assets.

Since autolinking, manual linking of packages is quickly becoming obsolete, however there's no easy way to autolink assets (can be automated with CocoaPods podspecs, but not sure about Gradle cc @Salakar. EDIT: should be doable, @Salakar is on it). That's why I think it makes sense to default `link` to process assets only, unless the `--all` flag is passed explicitly.

Additional changes that accumulated while testing: 

- fix linking hooks failing to execute
- fix handling assets from legacy "rnpm" config
- overhaul linking logs and error messages
- disable flaky e2e tests in lts-tests phase
2019-06-06 11:39:13 +02:00
Michał Pierzchała 4053d07110 feat: remove manifest from config output (#398)
* feat: remove manifest from config output

* fix typo in the docs
2019-05-21 13:54:10 +02:00
Mike Diarmid bb11ffd8c2 feat: allow dependencyConfig to override podspec name (#393)
* [ios][docs] document podspec param

* [ios] add podspec to dependencyConfig schema

* [types] add podspec to config

* [config] add podspec param override to config
2019-05-20 16:58:21 +02:00
Lucas Bento c2fb83fb64 feat: support init with custom project directory (#365)
* Change `packageName` to `projectName` & add `projectPath` argument

* Add a way to specify a custom project path to init the app on

* Force the `init` command to create the project path recursively

* Add test for providing the project path on init

* Throw error if custom project path doesn’t exist and can’t be created

* Fix type error on `customProjectPath`

* Create directory before running the test with custom project path

* Use `mkdirp` to create project folder & Use `inquirer` to prompt for a directory replace

* Specify `directory` as an option

* Handle custom directory path after react logo

* Check if `ios` folder exists before trying to open it

* Update `init` tests

* Add `directory` type

* Remove unused `inquirer` from `init` test

* Only remove the project folder if it didn’t exist before running `init`

* Remove correct directory if it didn’t exist before `init`

* simplify

* make directory an argument instead of a flag

* update descriptions

* fix test

* use --directory after all

* address feedback; remove version handling from createFromTemplate

* flip the default
2019-05-17 18:25:11 +02:00
Michał Pierzchała bae68953cd feat: improve run-android error messages; rename "installDebug" -> "task" (#372)
* chore: cleanup run-android implementation

* feat: overhaul gradle install errors

* fix copying executables by bringing back chmod

* rename 'installDebug' -> 'task'

* cleanup unused args from refactor

* use inherit and don't show null error

* simplify creating gradle args

* adjust descriptions

* use logger

* Add support for multiple tasks

* Change function name to match current functionality

* Change task to tasks
2019-05-10 15:19:52 +02:00
Michał Pierzchała 93e3eb6873 feat: init from tarball (#362)
* feat: init from tarball

* adjust error message

* skip flaky config test

* update docs

* update snapshots
2019-04-29 11:37:17 +02:00
Kacper Wiszczuk dbe2fd867f feat(breaking): remove legacy library command (#358)
feat(breaking): remove legacy `library` command
2019-04-26 15:19:03 +02:00
Orta c1a8ec8861 [ios] Ensure that the right cwd is set up for auto-linking dependencies (#354)
* [ios] Ensure that the right cwd is set up for auto-linking dependencies

* [autolink] Switch to DIing in the root path as a param in to use_native_modules

* [autolink] Docs for autolink root changes
2019-04-25 16:15:30 +02:00
Orta 9315f05de2 Update autolinking.md (#355) 2019-04-25 07:47:34 +02:00
Mike Grabowski 89a1420f3d chore: update wording in docs 2019-04-23 23:22:34 +02:00
Mike Grabowski 527d81dbab feat: add dependency and project documentation (#350)
* Add dependency documentation and links

* Update

* Update

* Add project desc

* Move notice above

* add catch-all doc

* Typo

* Rename the type

* Update docs/configuration.md

Co-Authored-By: grabbou <[email protected]>

* Update docs/configuration.md

Co-Authored-By: grabbou <[email protected]>

* Do where not when

* Plural
2019-04-23 22:58:59 +02:00
Mike Grabowski 34f7df2bfe feat: add platforms doc (#349)
* Add platforms doc

* Migration guide

* Update docs/platforms.md

Co-Authored-By: grabbou <[email protected]>
2019-04-23 21:02:13 +02:00
Kacper Wiszczuk 86986a1c2e docs: add init documentation (#347)
* docs: add init documentation

* docs: add mentions in other files

* docs: revert

* Update docs/init.md

Co-Authored-By: Esemesek <[email protected]>
2019-04-23 19:54:31 +02:00