Permalink
Browse files

Rewrite 'react-native init' and 'react-native upgrade' without using …

…Yeoman in preparation for templates support

Summary:
This is the manually imported version of #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
  • Loading branch information...
mkonicek authored and Facebook Github Bot committed Nov 19, 2016
1 parent eddc2c9 commit a477aec10d29b4651944cb4292daf06dfa953ea3
Showing with 726 additions and 1,892 deletions.
  1. +2 −2 .flowconfig
  2. +0 −268 local-cli/__tests__/generators-test.js
  3. +0 −38 local-cli/android/android.js
  4. +0 −1 local-cli/commands.js
  5. +0 −31 local-cli/generate-android.js
  6. +0 −63 local-cli/generate/generate.js
  7. +0 −91 local-cli/generator-android/index.js
  8. +0 −3 local-cli/generator-android/templates/src/app/src/main/res/values/strings.xml
  9. +0 −3 local-cli/generator-android/templates/src/settings.gradle
  10. +0 −58 local-cli/generator-ios/index.js
  11. +0 −814 local-cli/generator-ios/templates/xcodeproj/project.pbxproj
  12. +0 −112 local-cli/generator-ios/templates/xcodeproj/xcshareddata/xcschemes/_xcscheme
  13. +0 −43 local-cli/generator-utils.js
  14. +101 −0 local-cli/generator/copyProjectTemplateAndReplace.js
  15. +0 −213 local-cli/generator/index.js
  16. +35 −0 local-cli/generator/printRunInstructions.js
  17. +118 −0 local-cli/generator/promptSync.js
  18. +6 −0 local-cli/init/gen.js
  19. +86 −30 local-cli/init/init.js
  20. +6 −5 local-cli/runAndroid/runAndroid.js
  21. +0 −2 local-cli/server/middleware/heapCapture/.gitignore
  22. +3 −0 local-cli/templates/HelloWorld/.babelrc
  23. 0 local-cli/{generator/templates/_buckconfig → templates/HelloWorld/.buckconfig}
  24. +1 −0 local-cli/templates/HelloWorld/.buckversion
  25. +45 −0 local-cli/templates/HelloWorld/.flowconfig
  26. 0 local-cli/{generator/templates/_gitattributes → templates/HelloWorld/.gitattributes}
  27. +3 −2 local-cli/{generator/templates/_gitignore → templates/HelloWorld/.gitignore}
  28. 0 local-cli/templates/HelloWorld/.nobuckcheck
  29. 0 local-cli/{generator/templates/_watchmanconfig → templates/HelloWorld/.watchmanconfig}
  30. 0 local-cli/{generator/templates → templates/HelloWorld}/__tests__/index.android.js
  31. 0 local-cli/{generator/templates → templates/HelloWorld}/__tests__/index.ios.js
  32. +2 −2 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/app/BUCK
  33. +1 −1 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/app/build.gradle
  34. 0 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/app/proguard-rules.pro
  35. +1 −1 ...{generator-android/templates/src → templates/HelloWorld/android}/app/src/main/AndroidManifest.xml
  36. +2 −2 ...plates/package → templates/HelloWorld/android/app/src/main/java/com/helloworld}/MainActivity.java
  37. +1 −1 ...tes/package → templates/HelloWorld/android/app/src/main/java/com/helloworld}/MainApplication.java
  38. BIN ...ndroid/templates/bin → templates/HelloWorld/android}/app/src/main/res/mipmap-hdpi/ic_launcher.png
  39. BIN ...ndroid/templates/bin → templates/HelloWorld/android}/app/src/main/res/mipmap-mdpi/ic_launcher.png
  40. BIN ...droid/templates/bin → templates/HelloWorld/android}/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  41. BIN ...roid/templates/bin → templates/HelloWorld/android}/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  42. +3 −0 local-cli/templates/HelloWorld/android/app/src/main/res/values/strings.xml
  43. 0 ...enerator-android/templates/src → templates/HelloWorld/android}/app/src/main/res/values/styles.xml
  44. 0 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/build.gradle
  45. 0 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/gradle.properties
  46. BIN ...generator-android/templates/bin → templates/HelloWorld/android}/gradle/wrapper/gradle-wrapper.jar
  47. 0 ...or-android/templates/bin → templates/HelloWorld/android}/gradle/wrapper/gradle-wrapper.properties
  48. 0 local-cli/{generator-android/templates/bin → templates/HelloWorld/android}/gradlew
  49. 0 local-cli/{generator-android/templates/bin → templates/HelloWorld/android}/gradlew.bat
  50. 0 local-cli/{generator-android/templates/src → templates/HelloWorld/android}/keystores/BUCK
  51. 0 ...nerator-android/templates/src → templates/HelloWorld/android}/keystores/debug.keystore.properties
  52. +3 −0 local-cli/templates/HelloWorld/android/settings.gradle
  53. +2 −2 local-cli/{generator/templates → templates/HelloWorld}/index.android.js
  54. +2 −2 local-cli/{generator/templates → templates/HelloWorld}/index.ios.js
  55. 0 local-cli/{generator-ios/templates/app → templates/HelloWorld/ios/HelloWorld}/AppDelegate.h
  56. +1 −1 local-cli/{generator-ios/templates/app → templates/HelloWorld/ios/HelloWorld}/AppDelegate.m
  57. +1 −1 ...i/{generator-ios/templates/app → templates/HelloWorld/ios/HelloWorld}/Base.lproj/LaunchScreen.xib
  58. 0 ...lates/app → templates/HelloWorld/ios/HelloWorld}/Images.xcassets/AppIcon.appiconset/Contents.json
  59. 0 local-cli/{generator-ios/templates/app → templates/HelloWorld/ios/HelloWorld}/Info.plist
  60. 0 local-cli/{generator-ios/templates/app → templates/HelloWorld/ios/HelloWorld}/main.m
  61. +2 −2 ...nerator-ios/templates/tests/Tests.m → templates/HelloWorld/ios/HelloWorldTests/HelloWorldTests.m}
  62. 0 local-cli/{generator-ios/templates/tests → templates/HelloWorld/ios/HelloWorldTests}/Info.plist
  63. +3 −0 local-cli/upgrade/doUpgrade.js
  64. +125 −83 local-cli/upgrade/upgrade.js
  65. +107 −9 local-cli/util/copyAndReplace.js
  66. +58 −0 local-cli/util/yarn.js
  67. +1 −1 package.json
  68. +1 −1 react-native-cli/index.js
  69. +4 −4 scripts/run-ci-e2e-tests.js
View
@@ -2,8 +2,8 @@
; We fork some components by platform
.*/*[.]android.js
; Ignore generators because they are not real JS files
.*/local-cli/generator/templates/.*
; Ignore templates for 'react-native init'
.*/local-cli/templates/.*
; Ignore the website subdir
<PROJECT_ROOT>/website/.*

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View
@@ -36,7 +36,6 @@ export type Command = {
};
const documentedCommands = [
require('./android/android'),
require('./server/server'),
require('./runIOS/runIOS'),
require('./runAndroid/runAndroid'),

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit a477aec

Please sign in to comment.