Commit Graph
26 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
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
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
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
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
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 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 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
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
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
Michał Pierzchała b306c99fda docs: update and rearrange documentation (#338)
* docs: update and rearrange documentation

* add autolinking base docs

* add init docs
2019-04-23 12:26:19 +02:00