@nx/react-native 16.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/.eslintrc.json +19 -0
  2. package/CHANGELOG.md +8 -0
  3. package/LICENSE +22 -0
  4. package/README.md +63 -0
  5. package/executors.json +106 -0
  6. package/generators.json +109 -0
  7. package/index.d.ts +5 -0
  8. package/index.js +14 -0
  9. package/index.js.map +1 -0
  10. package/migrations.json +1291 -0
  11. package/package.json +58 -0
  12. package/plugins/jest/svg-mock.d.ts +0 -0
  13. package/plugins/jest/svg-mock.js +4 -0
  14. package/plugins/jest/svg-mock.js.map +1 -0
  15. package/plugins/metro-resolver.d.ts +1 -0
  16. package/plugins/metro-resolver.js +135 -0
  17. package/plugins/metro-resolver.js.map +1 -0
  18. package/plugins/with-nx-metro.d.ts +8 -0
  19. package/plugins/with-nx-metro.js +32 -0
  20. package/plugins/with-nx-metro.js.map +1 -0
  21. package/project.json +64 -0
  22. package/src/executors/build-android/build-android.impl.d.ts +6 -0
  23. package/src/executors/build-android/build-android.impl.js +76 -0
  24. package/src/executors/build-android/build-android.impl.js.map +1 -0
  25. package/src/executors/build-android/build-android.impl.ts +108 -0
  26. package/src/executors/build-android/compat.d.ts +2 -0
  27. package/src/executors/build-android/compat.js +6 -0
  28. package/src/executors/build-android/compat.js.map +1 -0
  29. package/src/executors/build-android/schema.d.ts +31 -0
  30. package/src/executors/build-android/schema.json +102 -0
  31. package/src/executors/build-ios/build-ios.impl.d.ts +6 -0
  32. package/src/executors/build-ios/build-ios.impl.js +77 -0
  33. package/src/executors/build-ios/build-ios.impl.js.map +1 -0
  34. package/src/executors/build-ios/build-ios.impl.ts +118 -0
  35. package/src/executors/build-ios/compat.d.ts +2 -0
  36. package/src/executors/build-ios/compat.js +6 -0
  37. package/src/executors/build-ios/compat.js.map +1 -0
  38. package/src/executors/build-ios/schema.d.ts +22 -0
  39. package/src/executors/build-ios/schema.json +106 -0
  40. package/src/executors/bundle/bundle.impl.d.ts +6 -0
  41. package/src/executors/bundle/bundle.impl.js +58 -0
  42. package/src/executors/bundle/bundle.impl.js.map +1 -0
  43. package/src/executors/bundle/bundle.impl.ts +76 -0
  44. package/src/executors/bundle/compat.d.ts +2 -0
  45. package/src/executors/bundle/compat.js +6 -0
  46. package/src/executors/bundle/compat.js.map +1 -0
  47. package/src/executors/bundle/schema.d.ts +16 -0
  48. package/src/executors/bundle/schema.json +92 -0
  49. package/src/executors/ensure-symlink/compat.d.ts +2 -0
  50. package/src/executors/ensure-symlink/compat.js +6 -0
  51. package/src/executors/ensure-symlink/compat.js.map +1 -0
  52. package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts +5 -0
  53. package/src/executors/ensure-symlink/ensure-symlink.impl.js +13 -0
  54. package/src/executors/ensure-symlink/ensure-symlink.impl.js.map +1 -0
  55. package/src/executors/ensure-symlink/ensure-symlink.impl.ts +18 -0
  56. package/src/executors/ensure-symlink/schema.json +11 -0
  57. package/src/executors/pod-install/compat.d.ts +2 -0
  58. package/src/executors/pod-install/compat.js +6 -0
  59. package/src/executors/pod-install/compat.js.map +1 -0
  60. package/src/executors/pod-install/pod-install.impl.d.ts +6 -0
  61. package/src/executors/pod-install/pod-install.impl.js +15 -0
  62. package/src/executors/pod-install/pod-install.impl.js.map +1 -0
  63. package/src/executors/pod-install/pod-install.impl.ts +21 -0
  64. package/src/executors/pod-install/schema.d.ts +3 -0
  65. package/src/executors/pod-install/schema.json +18 -0
  66. package/src/executors/run-android/compat.d.ts +2 -0
  67. package/src/executors/run-android/compat.js +6 -0
  68. package/src/executors/run-android/compat.js.map +1 -0
  69. package/src/executors/run-android/run-android.impl.d.ts +6 -0
  70. package/src/executors/run-android/run-android.impl.js +72 -0
  71. package/src/executors/run-android/run-android.impl.js.map +1 -0
  72. package/src/executors/run-android/run-android.impl.ts +110 -0
  73. package/src/executors/run-android/schema.d.ts +24 -0
  74. package/src/executors/run-android/schema.json +121 -0
  75. package/src/executors/run-ios/compat.d.ts +2 -0
  76. package/src/executors/run-ios/compat.js +6 -0
  77. package/src/executors/run-ios/compat.js.map +1 -0
  78. package/src/executors/run-ios/run-ios.impl.d.ts +6 -0
  79. package/src/executors/run-ios/run-ios.impl.js +78 -0
  80. package/src/executors/run-ios/run-ios.impl.js.map +1 -0
  81. package/src/executors/run-ios/run-ios.impl.ts +120 -0
  82. package/src/executors/run-ios/schema.d.ts +12 -0
  83. package/src/executors/run-ios/schema.json +119 -0
  84. package/src/executors/start/compat.d.ts +2 -0
  85. package/src/executors/start/compat.js +6 -0
  86. package/src/executors/start/compat.js.map +1 -0
  87. package/src/executors/start/lib/is-packager-running.d.ts +1 -0
  88. package/src/executors/start/lib/is-packager-running.js +19 -0
  89. package/src/executors/start/lib/is-packager-running.js.map +1 -0
  90. package/src/executors/start/schema.d.ts +7 -0
  91. package/src/executors/start/schema.json +28 -0
  92. package/src/executors/start/start.impl.d.ts +8 -0
  93. package/src/executors/start/start.impl.js +99 -0
  94. package/src/executors/start/start.impl.js.map +1 -0
  95. package/src/executors/start/start.impl.ts +120 -0
  96. package/src/executors/storybook/compat.d.ts +2 -0
  97. package/src/executors/storybook/compat.js +6 -0
  98. package/src/executors/storybook/compat.js.map +1 -0
  99. package/src/executors/storybook/schema.d.ts +7 -0
  100. package/src/executors/storybook/schema.json +34 -0
  101. package/src/executors/storybook/storybook.impl.d.ts +5 -0
  102. package/src/executors/storybook/storybook.impl.js +76 -0
  103. package/src/executors/storybook/storybook.impl.js.map +1 -0
  104. package/src/executors/storybook/storybook.impl.ts +105 -0
  105. package/src/executors/sync-deps/compat.d.ts +2 -0
  106. package/src/executors/sync-deps/compat.js +6 -0
  107. package/src/executors/sync-deps/compat.js.map +1 -0
  108. package/src/executors/sync-deps/schema.d.ts +4 -0
  109. package/src/executors/sync-deps/schema.json +28 -0
  110. package/src/executors/sync-deps/sync-deps.impl.d.ts +8 -0
  111. package/src/executors/sync-deps/sync-deps.impl.js +62 -0
  112. package/src/executors/sync-deps/sync-deps.impl.js.map +1 -0
  113. package/src/executors/sync-deps/sync-deps.impl.ts +101 -0
  114. package/src/generators/application/application.d.ts +5 -0
  115. package/src/generators/application/application.js +40 -0
  116. package/src/generators/application/application.js.map +1 -0
  117. package/src/generators/application/application.spec.ts +214 -0
  118. package/src/generators/application/files/app/.ruby-version +1 -0
  119. package/src/generators/application/files/app/Gemfile.template +6 -0
  120. package/src/generators/application/files/app/android/app/build.gradle.template +184 -0
  121. package/src/generators/application/files/app/android/app/debug.keystore +0 -0
  122. package/src/generators/application/files/app/android/app/proguard-rules.pro +10 -0
  123. package/src/generators/application/files/app/android/app/src/androidTest/java/com/__lowerCaseName__/DetoxTest.java.template +30 -0
  124. package/src/generators/application/files/app/android/app/src/debug/AndroidManifest.xml.template +14 -0
  125. package/src/generators/application/files/app/android/app/src/debug/java/com/__lowerCaseName__/ReactNativeFlipper.java.template +75 -0
  126. package/src/generators/application/files/app/android/app/src/main/AndroidManifest.xml.template +26 -0
  127. package/src/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainActivity.java.template +35 -0
  128. package/src/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainApplication.java.template +63 -0
  129. package/src/generators/application/files/app/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  130. package/src/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  131. package/src/generators/application/files/app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  132. package/src/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  133. package/src/generators/application/files/app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  134. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  135. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  136. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  137. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  138. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  139. package/src/generators/application/files/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  140. package/src/generators/application/files/app/android/app/src/main/res/values/strings.xml.template +3 -0
  141. package/src/generators/application/files/app/android/app/src/main/res/values/styles.xml +9 -0
  142. package/src/generators/application/files/app/android/app/src/main/res/xml/network_security_config.xml +7 -0
  143. package/src/generators/application/files/app/android/app/src/release/java/com/__lowerCaseName__/ReactNativeFlipper.java.template +20 -0
  144. package/src/generators/application/files/app/android/build.gradle.template +34 -0
  145. package/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  146. package/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  147. package/src/generators/application/files/app/android/gradle.properties +44 -0
  148. package/src/generators/application/files/app/android/gradlew.bat +89 -0
  149. package/src/generators/application/files/app/android/gradlew.template +234 -0
  150. package/src/generators/application/files/app/android/settings.gradle.template +7 -0
  151. package/src/generators/application/files/app/app.json.template +4 -0
  152. package/src/generators/application/files/app/babel.config.json.template +3 -0
  153. package/src/generators/application/files/app/ios/.xcode.env.template +12 -0
  154. package/src/generators/application/files/app/ios/Podfile.template +60 -0
  155. package/src/generators/application/files/app/ios/__className__/AppDelegate.h +6 -0
  156. package/src/generators/application/files/app/ios/__className__/AppDelegate.mm.template +36 -0
  157. package/src/generators/application/files/app/ios/__className__/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  158. package/src/generators/application/files/app/ios/__className__/Images.xcassets/Contents.json +6 -0
  159. package/src/generators/application/files/app/ios/__className__/Info.plist.template +55 -0
  160. package/src/generators/application/files/app/ios/__className__/LaunchScreen.storyboard.template +47 -0
  161. package/src/generators/application/files/app/ios/__className__/main.m +10 -0
  162. package/src/generators/application/files/app/ios/__className__.xcodeproj/project.pbxproj.template +702 -0
  163. package/src/generators/application/files/app/ios/__className__.xcodeproj/xcshareddata/xcschemes/__className__.xcscheme.template +88 -0
  164. package/src/generators/application/files/app/ios/__className__.xcworkspace/contents.xcworkspacedata +10 -0
  165. package/src/generators/application/files/app/ios/__className__Tests/Info.plist +24 -0
  166. package/src/generators/application/files/app/ios/__className__Tests/__className__Tests.m +66 -0
  167. package/src/generators/application/files/app/metro.config.js.template +38 -0
  168. package/src/generators/application/files/app/package.json.template +15 -0
  169. package/src/generators/application/files/app/src/app/App.spec.tsx.template +9 -0
  170. package/src/generators/application/files/app/src/app/App.tsx.template +694 -0
  171. package/src/generators/application/files/app/src/main.tsx.template +4 -0
  172. package/src/generators/application/files/app/test-setup.ts.template +1 -0
  173. package/src/generators/application/files/app/tsconfig.app.json.template +9 -0
  174. package/src/generators/application/files/app/tsconfig.json.template +25 -0
  175. package/src/generators/application/lib/add-detox.d.ts +3 -0
  176. package/src/generators/application/lib/add-detox.js +16 -0
  177. package/src/generators/application/lib/add-detox.js.map +1 -0
  178. package/src/generators/application/lib/add-project.d.ts +3 -0
  179. package/src/generators/application/lib/add-project.js +83 -0
  180. package/src/generators/application/lib/add-project.js.map +1 -0
  181. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  182. package/src/generators/application/lib/create-application-files.js +20 -0
  183. package/src/generators/application/lib/create-application-files.js.map +1 -0
  184. package/src/generators/application/lib/nomalize-options.spec.ts +138 -0
  185. package/src/generators/application/lib/normalize-options.d.ts +13 -0
  186. package/src/generators/application/lib/normalize-options.js +36 -0
  187. package/src/generators/application/lib/normalize-options.js.map +1 -0
  188. package/src/generators/application/schema.d.ts +19 -0
  189. package/src/generators/application/schema.json +89 -0
  190. package/src/generators/component/component.d.ts +5 -0
  191. package/src/generators/component/component.js +53 -0
  192. package/src/generators/component/component.js.map +1 -0
  193. package/src/generators/component/component.spec.ts +135 -0
  194. package/src/generators/component/files/__fileName__.spec.tsx__tmpl__ +11 -0
  195. package/src/generators/component/files/__fileName__.tsx__tmpl__ +32 -0
  196. package/src/generators/component/lib/add-import.d.ts +3 -0
  197. package/src/generators/component/lib/add-import.js +34 -0
  198. package/src/generators/component/lib/add-import.js.map +1 -0
  199. package/src/generators/component/lib/normalize-options.d.ts +8 -0
  200. package/src/generators/component/lib/normalize-options.js +58 -0
  201. package/src/generators/component/lib/normalize-options.js.map +1 -0
  202. package/src/generators/component/schema.d.ts +14 -0
  203. package/src/generators/component/schema.json +78 -0
  204. package/src/generators/component-story/component-story.d.ts +8 -0
  205. package/src/generators/component-story/component-story.js +113 -0
  206. package/src/generators/component-story/component-story.js.map +1 -0
  207. package/src/generators/component-story/component-story.spec.ts +433 -0
  208. package/src/generators/component-story/files/__componentFileName__.stories.__fileExt__ +24 -0
  209. package/src/generators/component-story/schema.d.ts +5 -0
  210. package/src/generators/component-story/schema.json +34 -0
  211. package/src/generators/init/init.d.ts +6 -0
  212. package/src/generators/init/init.js +58 -0
  213. package/src/generators/init/init.js.map +1 -0
  214. package/src/generators/init/init.spec.ts +81 -0
  215. package/src/generators/init/lib/add-git-ignore-entry.d.ts +2 -0
  216. package/src/generators/init/lib/add-git-ignore-entry.js +25 -0
  217. package/src/generators/init/lib/add-git-ignore-entry.js.map +1 -0
  218. package/src/generators/init/lib/gitignore-entries.d.ts +1 -0
  219. package/src/generators/init/lib/gitignore-entries.js +75 -0
  220. package/src/generators/init/lib/gitignore-entries.js.map +1 -0
  221. package/src/generators/init/schema.d.ts +7 -0
  222. package/src/generators/init/schema.json +40 -0
  223. package/src/generators/library/files/lib/README.md +7 -0
  224. package/src/generators/library/files/lib/babel.config.json.template +17 -0
  225. package/src/generators/library/files/lib/package.json__tmpl__ +4 -0
  226. package/src/generators/library/files/lib/src/index.ts__tmpl__ +0 -0
  227. package/src/generators/library/files/lib/test-setup.ts.template +1 -0
  228. package/src/generators/library/files/lib/tsconfig.json__tmpl__ +16 -0
  229. package/src/generators/library/files/lib/tsconfig.lib.json__tmpl__ +9 -0
  230. package/src/generators/library/lib/normalize-options.d.ts +13 -0
  231. package/src/generators/library/lib/normalize-options.js +26 -0
  232. package/src/generators/library/lib/normalize-options.js.map +1 -0
  233. package/src/generators/library/library.d.ts +5 -0
  234. package/src/generators/library/library.js +103 -0
  235. package/src/generators/library/library.js.map +1 -0
  236. package/src/generators/library/library.spec.ts +397 -0
  237. package/src/generators/library/schema.d.ts +22 -0
  238. package/src/generators/library/schema.json +102 -0
  239. package/src/generators/stories/schema.d.ts +5 -0
  240. package/src/generators/stories/schema.json +42 -0
  241. package/src/generators/stories/stories-app.spec.ts +145 -0
  242. package/src/generators/stories/stories-lib.spec.ts +113 -0
  243. package/src/generators/stories/stories.d.ts +6 -0
  244. package/src/generators/stories/stories.js +63 -0
  245. package/src/generators/stories/stories.js.map +1 -0
  246. package/src/generators/storybook-configuration/configuration.d.ts +5 -0
  247. package/src/generators/storybook-configuration/configuration.js +60 -0
  248. package/src/generators/storybook-configuration/configuration.js.map +1 -0
  249. package/src/generators/storybook-configuration/configuration.spec.ts +146 -0
  250. package/src/generators/storybook-configuration/files/app/storybook.ts.template +9 -0
  251. package/src/generators/storybook-configuration/files/app/toggle-storybook.tsx.template +114 -0
  252. package/src/generators/storybook-configuration/files/root/story-loader.js.template +13 -0
  253. package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.d.ts +6 -0
  254. package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js +26 -0
  255. package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.js.map +1 -0
  256. package/src/generators/storybook-configuration/lib/add-resolver-main-fields-to-metro-config.spec.ts +161 -0
  257. package/src/generators/storybook-configuration/lib/create-storybook-files.d.ts +6 -0
  258. package/src/generators/storybook-configuration/lib/create-storybook-files.js +45 -0
  259. package/src/generators/storybook-configuration/lib/create-storybook-files.js.map +1 -0
  260. package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.d.ts +7 -0
  261. package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js +30 -0
  262. package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.js.map +1 -0
  263. package/src/generators/storybook-configuration/lib/replace-app-import-with-storybook-toggle.spec.ts +65 -0
  264. package/src/generators/storybook-configuration/schema.d.ts +11 -0
  265. package/src/generators/storybook-configuration/schema.json +66 -0
  266. package/src/generators/upgrade-native/lib/create-native-files.d.ts +3 -0
  267. package/src/generators/upgrade-native/lib/create-native-files.js +15 -0
  268. package/src/generators/upgrade-native/lib/create-native-files.js.map +1 -0
  269. package/src/generators/upgrade-native/lib/normalize-options.d.ts +12 -0
  270. package/src/generators/upgrade-native/lib/normalize-options.js +28 -0
  271. package/src/generators/upgrade-native/lib/normalize-options.js.map +1 -0
  272. package/src/generators/upgrade-native/schema.d.ts +9 -0
  273. package/src/generators/upgrade-native/schema.json +41 -0
  274. package/src/generators/upgrade-native/upgrade-native.d.ts +9 -0
  275. package/src/generators/upgrade-native/upgrade-native.js +33 -0
  276. package/src/generators/upgrade-native/upgrade-native.js.map +1 -0
  277. package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.d.ts +8 -0
  278. package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.js +63 -0
  279. package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.js.map +1 -0
  280. package/src/migrations/update-12-10-0/add-react-native-svg-12-10-0.spec.ts +79 -0
  281. package/src/migrations/update-12-5-0/update-jest-for-react-native.d.ts +2 -0
  282. package/src/migrations/update-12-5-0/update-jest-for-react-native.js +62 -0
  283. package/src/migrations/update-12-5-0/update-jest-for-react-native.js.map +1 -0
  284. package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.d.ts +2 -0
  285. package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.js +22 -0
  286. package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.js.map +1 -0
  287. package/src/migrations/update-13-5-0/add-babel-config-root-13-5-0.spec.ts +48 -0
  288. package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.d.ts +6 -0
  289. package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.js +41 -0
  290. package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.js.map +1 -0
  291. package/src/migrations/update-13-5-0/update-react-native-typing-svg-13-5-0.spec.ts +61 -0
  292. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.d.ts +6 -0
  293. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js +33 -0
  294. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js.map +1 -0
  295. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.spec.ts +192 -0
  296. package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.d.ts +5 -0
  297. package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.js +39 -0
  298. package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.js.map +1 -0
  299. package/src/migrations/update-14-0-0/update-entry-file-bundle-14-0-0.spec.ts +84 -0
  300. package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.d.ts +5 -0
  301. package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.js +42 -0
  302. package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.js.map +1 -0
  303. package/src/migrations/update-14-0-2/change-main-to-class-name-14-0-2.spec.ts +48 -0
  304. package/src/migrations/update-14-2-1/rename-blockList-metro-config.d.ts +6 -0
  305. package/src/migrations/update-14-2-1/rename-blockList-metro-config.js +33 -0
  306. package/src/migrations/update-14-2-1/rename-blockList-metro-config.js.map +1 -0
  307. package/src/migrations/update-14-2-1/rename-blockList-metro-config.spec.ts +190 -0
  308. package/src/migrations/update-14-5-5/add-exclude-sync-deps.d.ts +5 -0
  309. package/src/migrations/update-14-5-5/add-exclude-sync-deps.js +26 -0
  310. package/src/migrations/update-14-5-5/add-exclude-sync-deps.js.map +1 -0
  311. package/src/migrations/update-14-5-5/add-exclude-sync-deps.spec.ts +39 -0
  312. package/src/migrations/update-14-5-8/change-searchDir-storybook.d.ts +5 -0
  313. package/src/migrations/update-14-5-8/change-searchDir-storybook.js +26 -0
  314. package/src/migrations/update-14-5-8/change-searchDir-storybook.js.map +1 -0
  315. package/src/migrations/update-14-5-8/change-searchDir-storybook.spec.ts +39 -0
  316. package/src/migrations/update-14-6-0/remove-jest-transform.d.ts +5 -0
  317. package/src/migrations/update-14-6-0/remove-jest-transform.js +58 -0
  318. package/src/migrations/update-14-6-0/remove-jest-transform.js.map +1 -0
  319. package/src/migrations/update-14-6-0/remove-jest-transform.spec.ts +109 -0
  320. package/src/migrations/update-15-0-0/add-babel-inputs.d.ts +2 -0
  321. package/src/migrations/update-15-0-0/add-babel-inputs.js +13 -0
  322. package/src/migrations/update-15-0-0/add-babel-inputs.js.map +1 -0
  323. package/src/migrations/update-15-0-0/add-babel-inputs.spec.ts +73 -0
  324. package/src/migrations/update-15-9-1/add-build-ios-target.d.ts +5 -0
  325. package/src/migrations/update-15-9-1/add-build-ios-target.js +34 -0
  326. package/src/migrations/update-15-9-1/add-build-ios-target.js.map +1 -0
  327. package/src/migrations/update-15-9-1/add-build-ios-target.spec.ts +36 -0
  328. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  329. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
  330. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
  331. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.spec.ts +37 -0
  332. package/src/utils/add-jest.d.ts +2 -0
  333. package/src/utils/add-jest.js +38 -0
  334. package/src/utils/add-jest.js.map +1 -0
  335. package/src/utils/add-linting.d.ts +12 -0
  336. package/src/utils/add-linting.js +41 -0
  337. package/src/utils/add-linting.js.map +1 -0
  338. package/src/utils/add-linting.spec.ts +42 -0
  339. package/src/utils/chmod-android-gradle-files.d.ts +3 -0
  340. package/src/utils/chmod-android-gradle-files.js +24 -0
  341. package/src/utils/chmod-android-gradle-files.js.map +1 -0
  342. package/src/utils/ensure-node-modules-symlink.d.ts +9 -0
  343. package/src/utils/ensure-node-modules-symlink.js +29 -0
  344. package/src/utils/ensure-node-modules-symlink.js.map +1 -0
  345. package/src/utils/ensure-node-modules-symlink.spec.ts +108 -0
  346. package/src/utils/find-all-npm-dependencies.d.ts +2 -0
  347. package/src/utils/find-all-npm-dependencies.js +26 -0
  348. package/src/utils/find-all-npm-dependencies.js.map +1 -0
  349. package/src/utils/find-all-npm-dependencies.spec.ts +95 -0
  350. package/src/utils/format-file.d.ts +1 -0
  351. package/src/utils/format-file.js +17 -0
  352. package/src/utils/format-file.js.map +1 -0
  353. package/src/utils/get-cli-options.d.ts +8 -0
  354. package/src/utils/get-cli-options.js +31 -0
  355. package/src/utils/get-cli-options.js.map +1 -0
  356. package/src/utils/pod-install-task.d.ts +8 -0
  357. package/src/utils/pod-install-task.js +62 -0
  358. package/src/utils/pod-install-task.js.map +1 -0
  359. package/src/utils/symlink-task.d.ts +2 -0
  360. package/src/utils/symlink-task.js +19 -0
  361. package/src/utils/symlink-task.js.map +1 -0
  362. package/src/utils/testing-generators.d.ts +3 -0
  363. package/src/utils/testing-generators.js +36 -0
  364. package/src/utils/testing-generators.js.map +1 -0
  365. package/src/utils/versions.d.ts +20 -0
  366. package/src/utils/versions.js +24 -0
  367. package/src/utils/versions.js.map +1 -0
  368. package/typings/svg.d.ts +7 -0
@@ -0,0 +1,694 @@
1
+ /* eslint-disable jsx-a11y/accessible-emoji */
2
+ import React, { useRef, useState } from 'react';
3
+ import {
4
+ SafeAreaView,
5
+ StyleSheet,
6
+ ScrollView,
7
+ View,
8
+ Text,
9
+ StatusBar,
10
+ TouchableOpacity,
11
+ Linking,
12
+ } from 'react-native';
13
+ import Svg, { Path } from 'react-native-svg';
14
+
15
+ export const App = () => {
16
+ const [whatsNextYCoord, setWhatsNextYCoord] = useState<number>(0);
17
+ const scrollViewRef = useRef<null | ScrollView>(null);
18
+
19
+ return (
20
+ <>
21
+ <StatusBar barStyle="dark-content" />
22
+ <SafeAreaView>
23
+ <ScrollView
24
+ ref={(ref) => {
25
+ scrollViewRef.current = ref;
26
+ }}
27
+ contentInsetAdjustmentBehavior="automatic"
28
+ style={styles.scrollView}
29
+ >
30
+ <View style={styles.section}>
31
+ <Text style={styles.textLg}>Hello there,</Text>
32
+ <Text style={[styles.textXL, styles.appTitleText]} testID="heading">
33
+ Welcome <%= displayName %> 👋
34
+ </Text>
35
+ </View>
36
+ <View style={styles.section}>
37
+ <View style={styles.hero}>
38
+ <View style={styles.heroTitle}>
39
+ <Svg
40
+ width={32}
41
+ height={32}
42
+ stroke="hsla(162, 47%, 50%, 1)"
43
+ fill="none"
44
+ viewBox="0 0 24 24"
45
+ >
46
+ <Path
47
+ strokeLinecap="round"
48
+ strokeLinejoin="round"
49
+ strokeWidth="2"
50
+ d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
51
+ />
52
+ </Svg>
53
+ <Text style={[styles.textLg, styles.heroTitleText]}>
54
+ You're up and running
55
+ </Text>
56
+ </View>
57
+ <TouchableOpacity
58
+ style={styles.whatsNextButton}
59
+ onPress={() => {
60
+ scrollViewRef.current?.scrollTo({
61
+ x: 0,
62
+ y: whatsNextYCoord,
63
+ });
64
+ }}
65
+ >
66
+ <Text style={[styles.textMd, styles.textCenter]}>
67
+ What's next?
68
+ </Text>
69
+ </TouchableOpacity>
70
+ </View>
71
+ </View>
72
+ <View style={styles.section}>
73
+ <View style={[styles.shadowBox]}>
74
+ <Text style={[styles.marginBottomMd, styles.textLg]}>
75
+ Learning materials
76
+ </Text>
77
+ <TouchableOpacity
78
+ style={[styles.listItem, styles.learning]}
79
+ onPress={() =>
80
+ Linking.openURL(
81
+ 'https://nx.dev/getting-started/intro?utm_source=nx-project'
82
+ )
83
+ }
84
+ >
85
+ <Svg
86
+ width={24}
87
+ height={24}
88
+ stroke="#000000"
89
+ fill="none"
90
+ viewBox="0 0 24 24"
91
+ >
92
+ <Path
93
+ strokeLinecap="round"
94
+ strokeLinejoin="round"
95
+ strokeWidth="2"
96
+ d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
97
+ />
98
+ </Svg>
99
+ <View style={styles.listItemTextContainer}>
100
+ <Text style={[styles.textMd]}>Documentation</Text>
101
+ <Text style={[styles.text2XS, styles.textSubtle]}>
102
+ Everything is in there
103
+ </Text>
104
+ </View>
105
+ <Svg
106
+ width={18}
107
+ height={18}
108
+ stroke="#000000"
109
+ fill="none"
110
+ viewBox="0 0 24 24"
111
+ >
112
+ <Path
113
+ strokeLinecap="round"
114
+ strokeLinejoin="round"
115
+ strokeWidth="2"
116
+ d="M9 5l7 7-7 7"
117
+ />
118
+ </Svg>
119
+ </TouchableOpacity>
120
+ <TouchableOpacity
121
+ style={[styles.listItem, styles.learning]}
122
+ onPress={() =>
123
+ Linking.openURL('https://blog.nrwl.io/?utm_source=nx-project')
124
+ }
125
+ >
126
+ <Svg
127
+ width={24}
128
+ height={24}
129
+ stroke="#000000"
130
+ fill="none"
131
+ viewBox="0 0 24 24"
132
+ >
133
+ <Path
134
+ strokeLinecap="round"
135
+ strokeLinejoin="round"
136
+ strokeWidth="2"
137
+ d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
138
+ />
139
+ </Svg>
140
+ <View style={styles.listItemTextContainer}>
141
+ <Text style={[styles.textMd]}>Blog</Text>
142
+ <Text style={[styles.text2XS, styles.textSubtle]}>
143
+ Changelog, features & events
144
+ </Text>
145
+ </View>
146
+ <Svg
147
+ width={18}
148
+ height={18}
149
+ stroke="#000000"
150
+ fill="none"
151
+ viewBox="0 0 24 24"
152
+ >
153
+ <Path
154
+ strokeLinecap="round"
155
+ strokeLinejoin="round"
156
+ strokeWidth="2"
157
+ d="M9 5l7 7-7 7"
158
+ />
159
+ </Svg>
160
+ </TouchableOpacity>
161
+ <TouchableOpacity
162
+ style={[styles.listItem, styles.learning]}
163
+ onPress={() =>
164
+ Linking.openURL(
165
+ 'https://www.youtube.com/@NxDevtools/videos?utm_source=nx-project'
166
+ )
167
+ }
168
+ >
169
+ <Svg width={24} height={24} fill="#000000" viewBox="0 0 24 24">
170
+ <Path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
171
+ </Svg>
172
+ <View style={styles.listItemTextContainer}>
173
+ <Text style={[styles.textMd]}>Youtube channel</Text>
174
+ <Text style={[styles.text2XS, styles.textSubtle]}>
175
+ Nx Show, talks & tutorials
176
+ </Text>
177
+ </View>
178
+ <Svg
179
+ width={18}
180
+ height={18}
181
+ stroke="#000000"
182
+ fill="none"
183
+ viewBox="0 0 24 24"
184
+ >
185
+ <Path
186
+ strokeLinecap="round"
187
+ strokeLinejoin="round"
188
+ strokeWidth="2"
189
+ d="M9 5l7 7-7 7"
190
+ />
191
+ </Svg>
192
+ </TouchableOpacity>
193
+ <TouchableOpacity
194
+ style={[styles.listItem, styles.learning]}
195
+ onPress={() =>
196
+ Linking.openURL(
197
+ 'https://nx.dev/react-tutorial/1-code-generation?utm_source=nx-project'
198
+ )
199
+ }
200
+ >
201
+ <Svg
202
+ width={24}
203
+ height={24}
204
+ stroke="#000000"
205
+ fill="none"
206
+ viewBox="0 0 24 24"
207
+ >
208
+ <Path
209
+ strokeLinecap="round"
210
+ strokeLinejoin="round"
211
+ strokeWidth="2"
212
+ d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
213
+ />
214
+ </Svg>
215
+ <View style={styles.listItemTextContainer}>
216
+ <Text style={[styles.textMd]}>Interactive tutorials</Text>
217
+ <Text style={[styles.text2XS, styles.textSubtle]}>
218
+ Create an app, step by step
219
+ </Text>
220
+ </View>
221
+ <Svg
222
+ width={18}
223
+ height={18}
224
+ stroke="#000000"
225
+ fill="none"
226
+ viewBox="0 0 24 24"
227
+ >
228
+ <Path
229
+ strokeLinecap="round"
230
+ strokeLinejoin="round"
231
+ strokeWidth="2"
232
+ d="M9 5l7 7-7 7"
233
+ ></Path>
234
+ </Svg>
235
+ </TouchableOpacity>
236
+ <TouchableOpacity
237
+ style={[styles.listItem, styles.learning]}
238
+ onPress={() =>
239
+ Linking.openURL(
240
+ 'https://nxplaybook.com/?utm_source=nx-project'
241
+ )
242
+ }
243
+ >
244
+ <Svg
245
+ width={24}
246
+ height={24}
247
+ stroke="#000000"
248
+ fill="none"
249
+ viewBox="0 0 24 24"
250
+ >
251
+ <Path d="M12 14l9-5-9-5-9 5 9 5z"></Path>
252
+ <Path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></Path>
253
+ <Path
254
+ strokeLinecap="round"
255
+ strokeLinejoin="round"
256
+ strokeWidth="2"
257
+ d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
258
+ ></Path>
259
+ </Svg>
260
+ <View style={styles.listItemTextContainer}>
261
+ <Text style={[styles.textMd]}>Video courses</Text>
262
+ <Text style={[styles.text2XS, styles.textSubtle]}>
263
+ Nx custom courses
264
+ </Text>
265
+ </View>
266
+ <Svg
267
+ width={18}
268
+ height={18}
269
+ stroke="#000000"
270
+ fill="none"
271
+ viewBox="0 0 24 24"
272
+ >
273
+ <Path
274
+ strokeLinecap="round"
275
+ strokeLinejoin="round"
276
+ strokeWidth="2"
277
+ d="M9 5l7 7-7 7"
278
+ ></Path>
279
+ </Svg>
280
+ </TouchableOpacity>
281
+ </View>
282
+ </View>
283
+ <View style={[styles.section, styles.shadowBox]}>
284
+ <TouchableOpacity
285
+ onPress={() =>
286
+ Linking.openURL(
287
+ 'https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console&utm_source=nx-project'
288
+ )
289
+ }
290
+ >
291
+ <View style={[styles.listItem, styles.learning]}>
292
+ <Svg
293
+ width={48}
294
+ height={48}
295
+ fill="rgba(0, 122, 204, 1)"
296
+ viewBox="0 0 24 24"
297
+ >
298
+ <Path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
299
+ </Svg>
300
+ <View style={styles.listItemTextContainer}>
301
+ <Text
302
+ style={[
303
+ styles.textMd,
304
+ styles.textBold,
305
+ styles.marginBottomSm,
306
+ ]}
307
+ >
308
+ Install Nx Console for VSCode
309
+ </Text>
310
+ <Text style={[styles.textXS, styles.textLight]}>
311
+ The official VSCode plugin for Nx.
312
+ </Text>
313
+ </View>
314
+ </View>
315
+ </TouchableOpacity>
316
+ <TouchableOpacity
317
+ onPress={() =>
318
+ Linking.openURL(
319
+ 'https://plugins.jetbrains.com/plugin/21060-nx-console'
320
+ )
321
+ }
322
+ >
323
+ <View style={[styles.listItem, styles.learning]}>
324
+ <Svg
325
+ width={48}
326
+ height={48}
327
+ fill="rgba(0, 122, 204, 1)"
328
+ viewBox="0 0 24 24"
329
+ >
330
+ <Path d="M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z" />
331
+ </Svg>
332
+ <View style={styles.listItemTextContainer}>
333
+ <Text
334
+ style={[
335
+ styles.textMd,
336
+ styles.textBold,
337
+ styles.marginBottomSm,
338
+ ]}
339
+ >
340
+ Install Nx Console for JetBrains
341
+ </Text>
342
+ <Text style={[styles.textXS, styles.textLight]}>
343
+ Available for WebStorm, Intellij IDEA Ultimate and more!
344
+ </Text>
345
+ </View>
346
+ </View>
347
+ </TouchableOpacity>
348
+ </View>
349
+ <View style={styles.section}>
350
+ <TouchableOpacity
351
+ onPress={() =>
352
+ Linking.openURL('https://nx.app/?utm_source=nx-project')
353
+ }
354
+ >
355
+ <View style={styles.shadowBox}>
356
+ <View style={[styles.listItem, styles.marginBottomMd]}>
357
+ <Svg width={48} height={48} viewBox="0 0 120 120" stroke="currentColor" fill="transparent">
358
+ <Path strokeWidth="2" d="M23 3.75V6.5c-3.036 0-5.5 2.464-5.5 5.5s-2.464 5.5-5.5 5.5-5.5 2.464-5.5 5.5H3.75C2.232 23 1 21.768 1 20.25V3.75C1 2.232 2.232 1 3.75 1h16.5C21.768 1 23 2.232 23 3.75Z" />
359
+ <Path strokewidth="2" d="M23 6v14.1667C23 21.7307 21.7307 23 20.1667 23H6c0-3.128 2.53867-5.6667 5.6667-5.6667 3.128 0 5.6666-2.5386 5.6666-5.6666C17.3333 8.53867 19.872 6 23 6Z" />
360
+ </Svg>
361
+ <View style={styles.listItemTextContainer}>
362
+ <Text
363
+ style={[
364
+ styles.textMd,
365
+ styles.textBold,
366
+ styles.marginBottomSm,
367
+ ]}
368
+ >
369
+ Nx Cloud
370
+ </Text>
371
+ <Text style={[styles.textXS, styles.textLight]}>
372
+ Enable faster CI & better DX
373
+ </Text>
374
+ </View>
375
+ </View>
376
+ <View style={styles.codeBlock}>
377
+ <Text style={[styles.monospace]}>nx connect-to-nx-cloud</Text>
378
+ </View>
379
+ </View>
380
+ </TouchableOpacity>
381
+ </View>
382
+ <View style={styles.section}>
383
+ <TouchableOpacity
384
+ onPress={() =>
385
+ Linking.openURL('https://nx.app/?utm_source=nx-project')
386
+ }
387
+ >
388
+ <View style={[styles.listItem, styles.shadowBox]}>
389
+ <Svg width={48} height={48} fill="#000000" viewBox="0 0 24 24">
390
+ <Path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
391
+ </Svg>
392
+ <View style={styles.listItemTextContainer}>
393
+ <Text
394
+ style={[
395
+ styles.textMd,
396
+ styles.textBold,
397
+ styles.marginBottomSm,
398
+ ]}
399
+ >
400
+ Nx is open source
401
+ </Text>
402
+ <Text style={[styles.textXS, styles.textLight]}>
403
+ Love Nx? Give us a star!
404
+ </Text>
405
+ </View>
406
+ </View>
407
+ </TouchableOpacity>
408
+ </View>
409
+ <View
410
+ style={styles.section}
411
+ onLayout={(event) => {
412
+ const layout = event.nativeEvent.layout;
413
+ setWhatsNextYCoord(layout.y);
414
+ }}
415
+ >
416
+ <View style={styles.shadowBox}>
417
+ <Text style={[styles.textLg, styles.marginBottomMd]}>
418
+ Next steps
419
+ </Text>
420
+ <Text
421
+ style={[styles.textSm, styles.textLight, styles.marginBottomMd]}
422
+ >
423
+ Here are some things you can do with Nx:
424
+ </Text>
425
+ <View style={styles.listItem}>
426
+ <Svg
427
+ width={24}
428
+ height={24}
429
+ stroke="#000000"
430
+ fill="none"
431
+ viewBox="0 0 24 24"
432
+ >
433
+ <Path
434
+ strokeLinecap="round"
435
+ strokeLinejoin="round"
436
+ strokeWidth="2"
437
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
438
+ />
439
+ </Svg>
440
+ <View style={styles.listItemTextContainer}>
441
+ <Text style={styles.textSm}>Add UI library</Text>
442
+ </View>
443
+ </View>
444
+ <View style={[styles.codeBlock, styles.marginBottomLg]}>
445
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
446
+ # Generate UI lib
447
+ </Text>
448
+ <Text
449
+ style={[
450
+ styles.textXS,
451
+ styles.monospace,
452
+ styles.marginBottomMd,
453
+ ]}
454
+ >
455
+ nx g @nrwl/react-native:lib ui
456
+ </Text>
457
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
458
+ # Add a component
459
+ </Text>
460
+ <Text style={[styles.textXS, styles.monospace]}>nx g \</Text>
461
+ <Text style={[styles.textXS, styles.monospace]}>
462
+ @nrwl/react-native:component \
463
+ </Text>
464
+ <Text style={[styles.textXS, styles.monospace]}>
465
+ button --project ui
466
+ </Text>
467
+ </View>
468
+ <View style={styles.listItem}>
469
+ <Svg
470
+ width={24}
471
+ height={24}
472
+ stroke="#000000"
473
+ fill="none"
474
+ viewBox="0 0 24 24"
475
+ >
476
+ <Path
477
+ strokeLinecap="round"
478
+ strokeLinejoin="round"
479
+ strokeWidth="2"
480
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
481
+ />
482
+ </Svg>
483
+ <View style={styles.listItemTextContainer}>
484
+ <Text style={styles.textSm}>
485
+ View interactive project graph
486
+ </Text>
487
+ </View>
488
+ </View>
489
+ <View style={[styles.codeBlock, styles.marginBottomLg]}>
490
+ <Text style={[styles.textXS, styles.monospace]}>nx graph</Text>
491
+ </View>
492
+ <View style={styles.listItem}>
493
+ <Svg
494
+ width={24}
495
+ height={24}
496
+ stroke="#000000"
497
+ fill="none"
498
+ viewBox="0 0 24 24"
499
+ >
500
+ <Path
501
+ strokeLinecap="round"
502
+ strokeLinejoin="round"
503
+ strokeWidth="2"
504
+ d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
505
+ />
506
+ </Svg>
507
+ <View style={styles.listItemTextContainer}>
508
+ <Text style={styles.textSm}>Run affected commands</Text>
509
+ </View>
510
+ </View>
511
+ <View style={styles.codeBlock}>
512
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
513
+ # See what's affected by changes
514
+ </Text>
515
+ <Text
516
+ style={[
517
+ styles.textXS,
518
+ styles.monospace,
519
+ styles.marginBottomMd,
520
+ ]}
521
+ >
522
+ nx affected:graph
523
+ </Text>
524
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
525
+ # run tests for current changes
526
+ </Text>
527
+ <Text
528
+ style={[
529
+ styles.textXS,
530
+ styles.monospace,
531
+ styles.marginBottomMd,
532
+ ]}
533
+ >
534
+ nx affected:text
535
+ </Text>
536
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
537
+ # run e2e tests for current
538
+ </Text>
539
+ <Text style={[styles.textXS, styles.monospace, styles.comment]}>
540
+ # changes
541
+ </Text>
542
+ <Text style={[styles.textXS, styles.monospace]}>
543
+ nx affected:e2e
544
+ </Text>
545
+ </View>
546
+ </View>
547
+ <View style={[styles.listItem, styles.love]}>
548
+ <Text style={styles.textSubtle}>Carefully crafted with </Text>
549
+ <Svg
550
+ width={24}
551
+ height={24}
552
+ fill="rgba(252, 165, 165, 1)"
553
+ stroke="none"
554
+ viewBox="0 0 24 24"
555
+ >
556
+ <Path
557
+ strokeLinecap="round"
558
+ strokeLinejoin="round"
559
+ strokeWidth="2"
560
+ d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
561
+ />
562
+ </Svg>
563
+ </View>
564
+ </View>
565
+ </ScrollView>
566
+ </SafeAreaView>
567
+ </>
568
+ );
569
+ };
570
+ const styles = StyleSheet.create({
571
+ scrollView: {
572
+ backgroundColor: '#ffffff',
573
+ },
574
+ codeBlock: {
575
+ backgroundColor: 'rgba(55, 65, 81, 1)',
576
+ marginVertical: 12,
577
+ padding: 12,
578
+ borderRadius: 4,
579
+ },
580
+ monospace: {
581
+ color: '#ffffff',
582
+ fontFamily: 'Courier New',
583
+ marginVertical: 4,
584
+ },
585
+ comment: {
586
+ color: '#cccccc',
587
+ },
588
+ marginBottomSm: {
589
+ marginBottom: 6,
590
+ },
591
+ marginBottomMd: {
592
+ marginBottom: 18,
593
+ },
594
+ marginBottomLg: {
595
+ marginBottom: 24,
596
+ },
597
+ textLight: {
598
+ fontWeight: '300',
599
+ },
600
+ textBold: {
601
+ fontWeight: '500',
602
+ },
603
+ textCenter: {
604
+ textAlign: 'center',
605
+ },
606
+ text2XS: {
607
+ fontSize: 12,
608
+ },
609
+ textXS: {
610
+ fontSize: 14,
611
+ },
612
+ textSm: {
613
+ fontSize: 16,
614
+ },
615
+ textMd: {
616
+ fontSize: 18,
617
+ },
618
+ textLg: {
619
+ fontSize: 24,
620
+ },
621
+ textXL: {
622
+ fontSize: 48,
623
+ },
624
+ textContainer: {
625
+ marginVertical: 12,
626
+ },
627
+ textSubtle: {
628
+ color: '#6b7280',
629
+ },
630
+ section: {
631
+ marginVertical: 24,
632
+ marginHorizontal: 12,
633
+ },
634
+ shadowBox: {
635
+ backgroundColor: 'white',
636
+ borderRadius: 24,
637
+ shadowColor: 'black',
638
+ shadowOpacity: 0.15,
639
+ shadowOffset: {
640
+ width: 1,
641
+ height: 4,
642
+ },
643
+ shadowRadius: 12,
644
+ padding: 24,
645
+ marginBottom: 24,
646
+ },
647
+ listItem: {
648
+ display: 'flex',
649
+ flexDirection: 'row',
650
+ alignItems: 'center',
651
+ },
652
+ listItemTextContainer: {
653
+ marginLeft: 12,
654
+ flex: 1,
655
+ },
656
+ appTitleText: {
657
+ paddingTop: 12,
658
+ fontWeight: '500',
659
+ },
660
+ hero: {
661
+ borderRadius: 12,
662
+ backgroundColor: '#143055',
663
+ padding: 36,
664
+ marginBottom: 24,
665
+ },
666
+ heroTitle: {
667
+ flex: 1,
668
+ flexDirection: 'row',
669
+ },
670
+ heroTitleText: {
671
+ color: '#ffffff',
672
+ marginLeft: 12,
673
+ },
674
+ heroText: {
675
+ color: '#ffffff',
676
+ marginVertical: 12,
677
+ },
678
+ whatsNextButton: {
679
+ backgroundColor: '#ffffff',
680
+ paddingVertical: 16,
681
+ borderRadius: 8,
682
+ width: '50%',
683
+ marginTop: 24,
684
+ },
685
+ learning: {
686
+ marginVertical: 12,
687
+ },
688
+ love: {
689
+ marginTop: 12,
690
+ justifyContent: 'center',
691
+ },
692
+ });
693
+
694
+ export default App;
@@ -0,0 +1,4 @@
1
+ import { AppRegistry } from 'react-native';
2
+ import App from './app/App';
3
+
4
+ AppRegistry.registerComponent('<%= className %>', () => App);
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-native/extend-expect';