mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 22:41:28 +08:00
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
27 lines
500 B
JSON
27 lines
500 B
JSON
{
|
|
"name": "react-native-cli",
|
|
"version": "2.0.0",
|
|
"license": "BSD-3-Clause",
|
|
"description": "The React Native CLI tools",
|
|
"main": "index.js",
|
|
"engines": {
|
|
"node": ">=4"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react-native.git"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha"
|
|
},
|
|
"bin": {
|
|
"react-native": "index.js"
|
|
},
|
|
"dependencies": {
|
|
"chalk": "^1.1.1",
|
|
"minimist": "^1.2.0",
|
|
"prompt": "^0.2.14",
|
|
"semver": "^5.0.3"
|
|
}
|
|
}
|