-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configuring the way CLI installs react-native
Summary: - Added an option to override the install command in CI environments (see comment in code) - Simplify the verbose mode - Simplify how options are passed round Test plan (only tested on Mac OS): react-native init TestApp react-native init TestApp --version 0.36 In both cases the app was generated, package.json contained the correct version (latest, or 0.36). react-native init TestApp --verbose Saw progress bar. react-native init InstallCommandTest --installCommand "npm install bad-package-doesnt-exist" 404 error is printed to stdout correctly. react-native init TestApp --installCommand "npm install react-native" The app was generated. react-native init InstallCommandTest --installCommand "npm install react-native --verbose" --verbose Saw verbose output from npm. Reviewed By: bestander Differential Revision: D4284642 fbshipit-source-id: f2cdee52ab64831ae3ca064d50f23c5f73a0301f
- Loading branch information
Martin Konicek
committed
Dec 12, 2016
1 parent
e335ca0
commit 8f0aed6
Showing
2 changed files
with
53 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters