Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support

Summary:
This is the manually imported version of https://github.com/facebook/react-native/pull/10786

This was mostly straigthforward by replacing the local-cli folder with the version I had in my local git checkout,
plus a few other files I listed with git diff --name-only.

Reviewed By: hramos

Differential Revision: D4201118

fbshipit-source-id: 4d0fb54b0edda9de1abba427958e420fd2ac105c
This commit is contained in:
Martin Konicek
2016-11-18 18:25:02 -08:00
committed by Facebook Github Bot
parent eddc2c90f6
commit a477aec10d
69 changed files with 723 additions and 1889 deletions

View File

@@ -273,7 +273,7 @@ function run(root, projectName, rnPackage, forceNpmClient) {
console.log('Installing ' + getInstallPackage(rnPackage) + '...');
installCommand = 'yarn add ' + getInstallPackage(rnPackage) + ' --exact';
} else {
console.log('Installing ' + getInstallPackage(rnPackage) + ' from npm...');
console.log('Installing ' + getInstallPackage(rnPackage) + '...');
if (!forceNpmClient) {
console.log('Consider installing yarn to make this faster: https://yarnpkg.com');
}