mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 09:21:44 +08:00
Summary: **Motivation** `react-native init` takes minutes even on a fast network. Yarn makes it much quicker. When yarn is not installed on the system: <img width="440" alt="screenshot 2016-10-31 22 21 19" src="https://cloud.githubusercontent.com/assets/346214/19873897/7bad5662-9fb9-11e6-85fb-ad4879949dad.png"> When yarn is installed: <img width="441" alt="screenshot 2016-10-31 22 02 20" src="https://cloud.githubusercontent.com/assets/346214/19873898/7baf4c56-9fb9-11e6-96b3-007f93d2438a.png"> Also added the option `react-native init AwesomeApp --npm` as a fallback in case yarn is not stable enough for some people (I saw some Github issues that yarn hangs for example; for me it works great though). **Test plan** 1. Publish to Sinopia: https://github.com/facebook/react-native/tree/master/react-native-cli 2. `react-native init AwesomeApp` ***Tested the following setups*** - New CLI - uses yarn, new react-native - uses yarn - Old CLI (1.0.0) - doesn't use yarn, new react-native - uses yarn - Closes https://github.com/facebook/react-native/pull/10626 Differential Revision: D4110883 Pulled By: bestander fbshipit-source-id: 8a3427e2bc9158cf5fadd8ddf5b31e4b50ce6453
27 lines
500 B
JSON
27 lines
500 B
JSON
{
|
|
"name": "react-native-cli",
|
|
"version": "1.1.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"
|
|
}
|
|
}
|