@nx/expo 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 (243) 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/collection.json +0 -0
  6. package/docs/build-list-examples.md +71 -0
  7. package/docs/prebuild-examples.md +70 -0
  8. package/docs/run-examples.md +91 -0
  9. package/docs/start-examples.md +98 -0
  10. package/executors.json +116 -0
  11. package/generators.json +61 -0
  12. package/index.d.ts +4 -0
  13. package/index.js +12 -0
  14. package/index.js.map +1 -0
  15. package/migrations.json +734 -0
  16. package/package.json +59 -0
  17. package/plugins/jest/svg-mock.d.ts +0 -0
  18. package/plugins/jest/svg-mock.js +4 -0
  19. package/plugins/jest/svg-mock.js.map +1 -0
  20. package/plugins/metro-resolver.d.ts +1 -0
  21. package/plugins/metro-resolver.js +135 -0
  22. package/plugins/metro-resolver.js.map +1 -0
  23. package/plugins/with-nx-metro.d.ts +8 -0
  24. package/plugins/with-nx-metro.js +31 -0
  25. package/plugins/with-nx-metro.js.map +1 -0
  26. package/plugins/with-nx-webpack.d.ts +5 -0
  27. package/plugins/with-nx-webpack.js +52 -0
  28. package/plugins/with-nx-webpack.js.map +1 -0
  29. package/project.json +61 -0
  30. package/src/executors/build/build.impl.d.ts +6 -0
  31. package/src/executors/build/build.impl.js +62 -0
  32. package/src/executors/build/build.impl.js.map +1 -0
  33. package/src/executors/build/compat.d.ts +2 -0
  34. package/src/executors/build/compat.js +6 -0
  35. package/src/executors/build/compat.js.map +1 -0
  36. package/src/executors/build/schema.d.ts +14 -0
  37. package/src/executors/build/schema.json +60 -0
  38. package/src/executors/build-list/build-fragment.d.ts +54 -0
  39. package/src/executors/build-list/build-list.impl.d.ts +7 -0
  40. package/src/executors/build-list/build-list.impl.js +86 -0
  41. package/src/executors/build-list/build-list.impl.js.map +1 -0
  42. package/src/executors/build-list/compat.d.ts +2 -0
  43. package/src/executors/build-list/compat.js +6 -0
  44. package/src/executors/build-list/compat.js.map +1 -0
  45. package/src/executors/build-list/schema.d.ts +25 -0
  46. package/src/executors/build-list/schema.json +79 -0
  47. package/src/executors/download/compat.d.ts +2 -0
  48. package/src/executors/download/compat.js +6 -0
  49. package/src/executors/download/compat.js.map +1 -0
  50. package/src/executors/download/download.impl.d.ts +15 -0
  51. package/src/executors/download/download.impl.js +101 -0
  52. package/src/executors/download/download.impl.js.map +1 -0
  53. package/src/executors/download/schema.d.ts +3 -0
  54. package/src/executors/download/schema.json +59 -0
  55. package/src/executors/ensure-symlink/compat.d.ts +2 -0
  56. package/src/executors/ensure-symlink/compat.js +6 -0
  57. package/src/executors/ensure-symlink/compat.js.map +1 -0
  58. package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts +5 -0
  59. package/src/executors/ensure-symlink/ensure-symlink.impl.js +13 -0
  60. package/src/executors/ensure-symlink/ensure-symlink.impl.js.map +1 -0
  61. package/src/executors/ensure-symlink/schema.json +11 -0
  62. package/src/executors/export/compat.d.ts +2 -0
  63. package/src/executors/export/compat.js +6 -0
  64. package/src/executors/export/compat.js.map +1 -0
  65. package/src/executors/export/export.impl.d.ts +6 -0
  66. package/src/executors/export/export.impl.js +69 -0
  67. package/src/executors/export/export.impl.js.map +1 -0
  68. package/src/executors/export/schema.d.ts +11 -0
  69. package/src/executors/export/schema.json +48 -0
  70. package/src/executors/install/compat.d.ts +2 -0
  71. package/src/executors/install/compat.js +6 -0
  72. package/src/executors/install/compat.js.map +1 -0
  73. package/src/executors/install/install.impl.d.ts +7 -0
  74. package/src/executors/install/install.impl.js +70 -0
  75. package/src/executors/install/install.impl.js.map +1 -0
  76. package/src/executors/install/schema.d.ts +7 -0
  77. package/src/executors/install/schema.json +34 -0
  78. package/src/executors/prebuild/compat.d.ts +2 -0
  79. package/src/executors/prebuild/compat.js +6 -0
  80. package/src/executors/prebuild/compat.js.map +1 -0
  81. package/src/executors/prebuild/prebuild.impl.d.ts +7 -0
  82. package/src/executors/prebuild/prebuild.impl.js +70 -0
  83. package/src/executors/prebuild/prebuild.impl.js.map +1 -0
  84. package/src/executors/prebuild/schema.d.ts +7 -0
  85. package/src/executors/prebuild/schema.json +35 -0
  86. package/src/executors/run/compat.d.ts +2 -0
  87. package/src/executors/run/compat.js +6 -0
  88. package/src/executors/run/compat.js.map +1 -0
  89. package/src/executors/run/run.impl.d.ts +6 -0
  90. package/src/executors/run/run.impl.js +112 -0
  91. package/src/executors/run/run.impl.js.map +1 -0
  92. package/src/executors/run/schema.d.ts +25 -0
  93. package/src/executors/run/schema.json +71 -0
  94. package/src/executors/start/compat.d.ts +2 -0
  95. package/src/executors/start/compat.js +6 -0
  96. package/src/executors/start/compat.js.map +1 -0
  97. package/src/executors/start/schema.d.ts +22 -0
  98. package/src/executors/start/schema.json +93 -0
  99. package/src/executors/start/start.impl.d.ts +7 -0
  100. package/src/executors/start/start.impl.js +73 -0
  101. package/src/executors/start/start.impl.js.map +1 -0
  102. package/src/executors/sync-deps/compat.d.ts +2 -0
  103. package/src/executors/sync-deps/compat.js +6 -0
  104. package/src/executors/sync-deps/compat.js.map +1 -0
  105. package/src/executors/sync-deps/schema.d.ts +4 -0
  106. package/src/executors/sync-deps/schema.json +28 -0
  107. package/src/executors/sync-deps/sync-deps.impl.d.ts +8 -0
  108. package/src/executors/sync-deps/sync-deps.impl.js +62 -0
  109. package/src/executors/sync-deps/sync-deps.impl.js.map +1 -0
  110. package/src/executors/update/compat.d.ts +2 -0
  111. package/src/executors/update/compat.js +6 -0
  112. package/src/executors/update/compat.js.map +1 -0
  113. package/src/executors/update/schema.d.ts +15 -0
  114. package/src/executors/update/schema.json +65 -0
  115. package/src/executors/update/update.impl.d.ts +6 -0
  116. package/src/executors/update/update.impl.js +59 -0
  117. package/src/executors/update/update.impl.js.map +1 -0
  118. package/src/generators/application/application.d.ts +5 -0
  119. package/src/generators/application/application.js +33 -0
  120. package/src/generators/application/application.js.map +1 -0
  121. package/src/generators/application/files/app.json.template +33 -0
  122. package/src/generators/application/files/assets/adaptive-icon.png +0 -0
  123. package/src/generators/application/files/assets/favicon.png +0 -0
  124. package/src/generators/application/files/assets/icon.png +0 -0
  125. package/src/generators/application/files/assets/splash.png +0 -0
  126. package/src/generators/application/files/babel.config.js.template +6 -0
  127. package/src/generators/application/files/eas.json.template +28 -0
  128. package/src/generators/application/files/index.js.template +8 -0
  129. package/src/generators/application/files/metro.config.js.template +25 -0
  130. package/src/generators/application/files/package.json.template +17 -0
  131. package/src/generators/application/files/src/app/App.spec.tsx.template +9 -0
  132. package/src/generators/application/files/src/app/App.tsx.template +694 -0
  133. package/src/generators/application/files/test-setup.ts.template +1 -0
  134. package/src/generators/application/files/tsconfig.app.json.template +9 -0
  135. package/src/generators/application/files/tsconfig.json.template +26 -0
  136. package/src/generators/application/lib/add-detox.d.ts +3 -0
  137. package/src/generators/application/lib/add-detox.js +16 -0
  138. package/src/generators/application/lib/add-detox.js.map +1 -0
  139. package/src/generators/application/lib/add-project.d.ts +3 -0
  140. package/src/generators/application/lib/add-project.js +91 -0
  141. package/src/generators/application/lib/add-project.js.map +1 -0
  142. package/src/generators/application/lib/create-application-files.d.ts +3 -0
  143. package/src/generators/application/lib/create-application-files.js +24 -0
  144. package/src/generators/application/lib/create-application-files.js.map +1 -0
  145. package/src/generators/application/lib/normalize-options.d.ts +10 -0
  146. package/src/generators/application/lib/normalize-options.js +30 -0
  147. package/src/generators/application/lib/normalize-options.js.map +1 -0
  148. package/src/generators/application/schema.d.ts +19 -0
  149. package/src/generators/application/schema.json +88 -0
  150. package/src/generators/component/component.d.ts +5 -0
  151. package/src/generators/component/component.js +51 -0
  152. package/src/generators/component/component.js.map +1 -0
  153. package/src/generators/component/files/__fileName__.spec.tsx.template +11 -0
  154. package/src/generators/component/files/__fileName__.tsx.template +32 -0
  155. package/src/generators/component/lib/add-import.d.ts +3 -0
  156. package/src/generators/component/lib/add-import.js +30 -0
  157. package/src/generators/component/lib/add-import.js.map +1 -0
  158. package/src/generators/component/lib/normalize-options.d.ts +8 -0
  159. package/src/generators/component/lib/normalize-options.js +58 -0
  160. package/src/generators/component/lib/normalize-options.js.map +1 -0
  161. package/src/generators/component/schema.d.ts +15 -0
  162. package/src/generators/component/schema.json +83 -0
  163. package/src/generators/init/init.d.ts +6 -0
  164. package/src/generators/init/init.js +69 -0
  165. package/src/generators/init/init.js.map +1 -0
  166. package/src/generators/init/lib/add-git-ignore-entry.d.ts +2 -0
  167. package/src/generators/init/lib/add-git-ignore-entry.js +19 -0
  168. package/src/generators/init/lib/add-git-ignore-entry.js.map +1 -0
  169. package/src/generators/init/lib/gitignore-entries.d.ts +1 -0
  170. package/src/generators/init/lib/gitignore-entries.js +20 -0
  171. package/src/generators/init/lib/gitignore-entries.js.map +1 -0
  172. package/src/generators/init/lib/init-root-babel-config.d.ts +2 -0
  173. package/src/generators/init/lib/init-root-babel-config.js +14 -0
  174. package/src/generators/init/lib/init-root-babel-config.js.map +1 -0
  175. package/src/generators/init/schema.d.ts +7 -0
  176. package/src/generators/init/schema.json +38 -0
  177. package/src/generators/library/files/lib/README.md +7 -0
  178. package/src/generators/library/files/lib/babel.config.json +17 -0
  179. package/src/generators/library/files/lib/package.json.template +5 -0
  180. package/src/generators/library/files/lib/src/index.ts.template +0 -0
  181. package/src/generators/library/files/lib/test-setup.ts.template +1 -0
  182. package/src/generators/library/files/lib/tsconfig.json.template +16 -0
  183. package/src/generators/library/files/lib/tsconfig.lib.json.template +9 -0
  184. package/src/generators/library/lib/normalize-options.d.ts +12 -0
  185. package/src/generators/library/lib/normalize-options.js +27 -0
  186. package/src/generators/library/lib/normalize-options.js.map +1 -0
  187. package/src/generators/library/library.d.ts +5 -0
  188. package/src/generators/library/library.js +101 -0
  189. package/src/generators/library/library.js.map +1 -0
  190. package/src/generators/library/schema.d.ts +22 -0
  191. package/src/generators/library/schema.json +99 -0
  192. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.d.ts +6 -0
  193. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js +35 -0
  194. package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js.map +1 -0
  195. package/src/migrations/update-14-1-2/add-eject-target-14-1-2.d.ts +5 -0
  196. package/src/migrations/update-14-1-2/add-eject-target-14-1-2.js +25 -0
  197. package/src/migrations/update-14-1-2/add-eject-target-14-1-2.js.map +1 -0
  198. package/src/migrations/update-14-4-3/add-eas-build-target.d.ts +5 -0
  199. package/src/migrations/update-14-4-3/add-eas-build-target.js +42 -0
  200. package/src/migrations/update-14-4-3/add-eas-build-target.js.map +1 -0
  201. package/src/migrations/update-14-5-1/add-eas-update-target.d.ts +5 -0
  202. package/src/migrations/update-14-5-1/add-eas-update-target.js +27 -0
  203. package/src/migrations/update-14-5-1/add-eas-update-target.js.map +1 -0
  204. package/src/migrations/update-15-0-3/add-new-expo-cli-targets.d.ts +9 -0
  205. package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js +66 -0
  206. package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js.map +1 -0
  207. package/src/migrations/update-15-0-3/change-jest-preset.d.ts +8 -0
  208. package/src/migrations/update-15-0-3/change-jest-preset.js +74 -0
  209. package/src/migrations/update-15-0-3/change-jest-preset.js.map +1 -0
  210. package/src/migrations/update-15-8-3/change-webpack-to-metro.d.ts +8 -0
  211. package/src/migrations/update-15-8-3/change-webpack-to-metro.js +37 -0
  212. package/src/migrations/update-15-8-3/change-webpack-to-metro.js.map +1 -0
  213. package/src/migrations/update-16-0-0/remove-deprecated-targets.d.ts +5 -0
  214. package/src/migrations/update-16-0-0/remove-deprecated-targets.js +36 -0
  215. package/src/migrations/update-16-0-0/remove-deprecated-targets.js.map +1 -0
  216. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  217. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
  218. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
  219. package/src/utils/add-jest.d.ts +2 -0
  220. package/src/utils/add-jest.js +39 -0
  221. package/src/utils/add-jest.js.map +1 -0
  222. package/src/utils/add-linting.d.ts +3 -0
  223. package/src/utils/add-linting.js +37 -0
  224. package/src/utils/add-linting.js.map +1 -0
  225. package/src/utils/ensure-node-modules-symlink.d.ts +9 -0
  226. package/src/utils/ensure-node-modules-symlink.js +29 -0
  227. package/src/utils/ensure-node-modules-symlink.js.map +1 -0
  228. package/src/utils/find-all-npm-dependencies.d.ts +2 -0
  229. package/src/utils/find-all-npm-dependencies.js +26 -0
  230. package/src/utils/find-all-npm-dependencies.js.map +1 -0
  231. package/src/utils/pod-install-task.d.ts +8 -0
  232. package/src/utils/pod-install-task.js +53 -0
  233. package/src/utils/pod-install-task.js.map +1 -0
  234. package/src/utils/symlink-task.d.ts +2 -0
  235. package/src/utils/symlink-task.js +19 -0
  236. package/src/utils/symlink-task.js.map +1 -0
  237. package/src/utils/versions.d.ts +20 -0
  238. package/src/utils/versions.js +24 -0
  239. package/src/utils/versions.js.map +1 -0
  240. package/tsconfig.json +13 -0
  241. package/tsconfig.lib.json +11 -0
  242. package/tsconfig.spec.json +20 -0
  243. package/typings/svg.d.ts +6 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addLinting = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const linter_1 = require("@nx/linter");
6
+ const devkit_1 = require("@nx/devkit");
7
+ const react_1 = require("@nx/react");
8
+ function addLinting(host, projectName, appProjectRoot, tsConfigPaths, linter, setParserOptionsProject) {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
+ if (linter === linter_1.Linter.None) {
11
+ return () => { };
12
+ }
13
+ const lintTask = yield (0, linter_1.lintProjectGenerator)(host, {
14
+ linter,
15
+ project: projectName,
16
+ tsConfigPaths,
17
+ eslintFilePatterns: [`${appProjectRoot}/**/*.{ts,tsx,js,jsx}`],
18
+ skipFormat: true,
19
+ setParserOptionsProject,
20
+ });
21
+ (0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(appProjectRoot, '.eslintrc.json'), (json) => {
22
+ json = (0, react_1.extendReactEslintJson)(json);
23
+ json.ignorePatterns = [
24
+ ...json.ignorePatterns,
25
+ '.expo',
26
+ 'node_modules',
27
+ 'web-build',
28
+ 'cache',
29
+ ];
30
+ return json;
31
+ });
32
+ const installTask = yield (0, devkit_1.addDependenciesToPackageJson)(host, react_1.extraEslintDependencies.dependencies, react_1.extraEslintDependencies.devDependencies);
33
+ return (0, devkit_1.runTasksInSerial)(lintTask, installTask);
34
+ });
35
+ }
36
+ exports.addLinting = addLinting;
37
+ //# sourceMappingURL=add-linting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-linting.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/add-linting.ts"],"names":[],"mappings":";;;;AAAA,uCAA0D;AAC1D,uCAMoB;AACpB,qCAA2E;AAG3E,SAAsB,UAAU,CAC9B,IAAU,EACV,WAAmB,EACnB,cAAsB,EACtB,aAAuB,EACvB,MAAc,EACd,uBAAiC;;QAEjC,IAAI,MAAM,KAAK,eAAM,CAAC,IAAI,EAAE;YAC1B,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QAED,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAoB,EAAC,IAAI,EAAE;YAChD,MAAM;YACN,OAAO,EAAE,WAAW;YACpB,aAAa;YACb,kBAAkB,EAAE,CAAC,GAAG,cAAc,uBAAuB,CAAC;YAC9D,UAAU,EAAE,IAAI;YAChB,uBAAuB;SACxB,CAAC,CAAC;QAEH,IAAA,mBAAU,EACR,IAAI,EACJ,IAAA,0BAAiB,EAAC,cAAc,EAAE,gBAAgB,CAAC,EACnD,CAAC,IAAyB,EAAE,EAAE;YAC5B,IAAI,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAC;YAEnC,IAAI,CAAC,cAAc,GAAG;gBACpB,GAAG,IAAI,CAAC,cAAc;gBACtB,OAAO;gBACP,cAAc;gBACd,WAAW;gBACX,OAAO;aACR,CAAC;YAEF,OAAO,IAAI,CAAC;QACd,CAAC,CACF,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM,IAAA,qCAA4B,EACpD,IAAI,EACJ,+BAAuB,CAAC,YAAY,EACpC,+BAAuB,CAAC,eAAe,CACxC,CAAC;QAEF,OAAO,IAAA,yBAAgB,EAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACjD,CAAC;CAAA;AA9CD,gCA8CC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This function symlink workspace node_modules folder with app project's node_mdules folder.
3
+ * For yarn and npm, it will symlink the entire node_modules folder.
4
+ * If app project's node_modules already exist, it will remove it first then symlink it.
5
+ * For pnpm, it will go through the package.json' dependencies and devDependencies, and also the required packages listed above.
6
+ * @param workspaceRoot path of the workspace root
7
+ * @param projectRoot path of app project root
8
+ */
9
+ export declare function ensureNodeModulesSymlink(workspaceRoot: string, projectRoot: string): void;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ensureNodeModulesSymlink = void 0;
4
+ const path_1 = require("path");
5
+ const os_1 = require("os");
6
+ const fs_extra_1 = require("fs-extra");
7
+ /**
8
+ * This function symlink workspace node_modules folder with app project's node_mdules folder.
9
+ * For yarn and npm, it will symlink the entire node_modules folder.
10
+ * If app project's node_modules already exist, it will remove it first then symlink it.
11
+ * For pnpm, it will go through the package.json' dependencies and devDependencies, and also the required packages listed above.
12
+ * @param workspaceRoot path of the workspace root
13
+ * @param projectRoot path of app project root
14
+ */
15
+ function ensureNodeModulesSymlink(workspaceRoot, projectRoot) {
16
+ const worksapceNodeModulesPath = (0, path_1.join)(workspaceRoot, 'node_modules');
17
+ if (!(0, fs_extra_1.existsSync)(worksapceNodeModulesPath)) {
18
+ throw new Error(`Cannot find ${worksapceNodeModulesPath}`);
19
+ }
20
+ const appNodeModulesPath = (0, path_1.join)(workspaceRoot, projectRoot, 'node_modules');
21
+ // `mklink /D` requires admin privilege in Windows so we need to use junction
22
+ const symlinkType = (0, os_1.platform)() === 'win32' ? 'junction' : 'dir';
23
+ if ((0, fs_extra_1.existsSync)(appNodeModulesPath)) {
24
+ (0, fs_extra_1.removeSync)(appNodeModulesPath);
25
+ }
26
+ (0, fs_extra_1.symlinkSync)(worksapceNodeModulesPath, appNodeModulesPath, symlinkType);
27
+ }
28
+ exports.ensureNodeModulesSymlink = ensureNodeModulesSymlink;
29
+ //# sourceMappingURL=ensure-node-modules-symlink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-node-modules-symlink.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/ensure-node-modules-symlink.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAC5B,2BAA8B;AAC9B,uCAA+D;AAE/D;;;;;;;GAOG;AACH,SAAgB,wBAAwB,CACtC,aAAqB,EACrB,WAAmB;IAEnB,MAAM,wBAAwB,GAAG,IAAA,WAAI,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IACrE,IAAI,CAAC,IAAA,qBAAU,EAAC,wBAAwB,CAAC,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,eAAe,wBAAwB,EAAE,CAAC,CAAC;KAC5D;IAED,MAAM,kBAAkB,GAAG,IAAA,WAAI,EAAC,aAAa,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IAC5E,6EAA6E;IAC7E,MAAM,WAAW,GAAG,IAAA,aAAQ,GAAE,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;IAEhE,IAAI,IAAA,qBAAU,EAAC,kBAAkB,CAAC,EAAE;QAClC,IAAA,qBAAU,EAAC,kBAAkB,CAAC,CAAC;KAChC;IACD,IAAA,sBAAW,EAAC,wBAAwB,EAAE,kBAAkB,EAAE,WAAW,CAAC,CAAC;AACzE,CAAC;AAjBD,4DAiBC"}
@@ -0,0 +1,2 @@
1
+ import { ProjectGraph } from '@nx/devkit';
2
+ export declare function findAllNpmDependencies(graph: ProjectGraph, projectName: string, list?: string[], seen?: Set<string>): string[];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findAllNpmDependencies = void 0;
4
+ function findAllNpmDependencies(graph, projectName, list = [], seen = new Set()) {
5
+ var _a;
6
+ // In case of bad circular dependencies
7
+ if (seen.has(projectName)) {
8
+ return list;
9
+ }
10
+ seen.add(projectName);
11
+ const node = graph.externalNodes[projectName];
12
+ // Don't want to include '@nrwl/react-native' because React Native
13
+ // autolink will warn that the package has no podspec file for iOS.
14
+ if (node) {
15
+ if (node.name !== `npm:@nrwl/react-native`) {
16
+ list.push(node.data.packageName);
17
+ }
18
+ }
19
+ else {
20
+ // it's workspace project, search for it's dependencies
21
+ (_a = graph.dependencies[projectName]) === null || _a === void 0 ? void 0 : _a.forEach((dep) => findAllNpmDependencies(graph, dep.target, list, seen));
22
+ }
23
+ return list;
24
+ }
25
+ exports.findAllNpmDependencies = findAllNpmDependencies;
26
+ //# sourceMappingURL=find-all-npm-dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-all-npm-dependencies.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/find-all-npm-dependencies.ts"],"names":[],"mappings":";;;AAEA,SAAgB,sBAAsB,CACpC,KAAmB,EACnB,WAAmB,EACnB,OAAiB,EAAE,EACnB,OAAO,IAAI,GAAG,EAAU;;IAExB,uCAAuC;IACvC,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QACzB,OAAO,IAAI,CAAC;KACb;IACD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAEtB,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAE9C,kEAAkE;IAClE,mEAAmE;IACnE,IAAI,IAAI,EAAE;QACR,IAAI,IAAI,CAAC,IAAI,KAAK,wBAAwB,EAAE;YAC1C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAClC;KACF;SAAM;QACL,uDAAuD;QACvD,MAAA,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,0CAAE,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAC/C,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CACtD,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AA3BD,wDA2BC"}
@@ -0,0 +1,8 @@
1
+ import { GeneratorCallback } from '@nx/devkit';
2
+ /**
3
+ * Run pod install on ios directory
4
+ * @param iosDirectory ios directory that contains Podfile
5
+ * @returns resolve with 0 if not error, reject with error otherwise
6
+ */
7
+ export declare function runPodInstall(iosDirectory: string, install?: boolean): GeneratorCallback;
8
+ export declare function podInstall(iosDirectory: string): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.podInstall = exports.runPodInstall = void 0;
4
+ const child_process_1 = require("child_process");
5
+ const os_1 = require("os");
6
+ const chalk = require("chalk");
7
+ const devkit_1 = require("@nx/devkit");
8
+ const podInstallErrorMessage = `
9
+ Running ${chalk.bold('pod install')} failed, see above.
10
+ Do you have CocoaPods (https://cocoapods.org/) installed?
11
+
12
+ Check that your XCode path is correct:
13
+ ${chalk.bold('sudo xcode-select --print-path')}
14
+
15
+ If the path is wrong, switch the path: (your path may be different)
16
+ ${chalk.bold('sudo xcode-select --switch /Applications/Xcode.app')}
17
+ `;
18
+ /**
19
+ * Run pod install on ios directory
20
+ * @param iosDirectory ios directory that contains Podfile
21
+ * @returns resolve with 0 if not error, reject with error otherwise
22
+ */
23
+ function runPodInstall(iosDirectory, install = true) {
24
+ return () => {
25
+ if ((0, os_1.platform)() !== 'darwin') {
26
+ devkit_1.logger.info('Skipping `pod install` on non-darwin platform');
27
+ return;
28
+ }
29
+ if (!install) {
30
+ devkit_1.logger.info('Skipping `pod install`');
31
+ return;
32
+ }
33
+ devkit_1.logger.info(`Running \`pod install\` from "${iosDirectory}"`);
34
+ return podInstall(iosDirectory);
35
+ };
36
+ }
37
+ exports.runPodInstall = runPodInstall;
38
+ function podInstall(iosDirectory) {
39
+ return new Promise((resolve, reject) => {
40
+ const result = (0, child_process_1.execSync)('pod install', {
41
+ cwd: iosDirectory,
42
+ });
43
+ devkit_1.logger.info(result.toString());
44
+ if (result.toString().includes('Pod installation complete')) {
45
+ resolve();
46
+ }
47
+ else {
48
+ reject(new Error(podInstallErrorMessage));
49
+ }
50
+ });
51
+ }
52
+ exports.podInstall = podInstall;
53
+ //# sourceMappingURL=pod-install-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pod-install-task.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/pod-install-task.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,2BAA8B;AAC9B,+BAA+B;AAC/B,uCAAuD;AAEvD,MAAM,sBAAsB,GAAG;UACrB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;;;;EAIjC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC;;;EAG5C,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC;CACjE,CAAC;AAEF;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,YAAoB,EACpB,UAAmB,IAAI;IAEvB,OAAO,GAAG,EAAE;QACV,IAAI,IAAA,aAAQ,GAAE,KAAK,QAAQ,EAAE;YAC3B,eAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;YAC7D,OAAO;SACR;QAED,IAAI,CAAC,OAAO,EAAE;YACZ,eAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;YACtC,OAAO;SACR;QAED,eAAM,CAAC,IAAI,CAAC,iCAAiC,YAAY,GAAG,CAAC,CAAC;QAE9D,OAAO,UAAU,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC;AACJ,CAAC;AAnBD,sCAmBC;AAED,SAAgB,UAAU,CAAC,YAAoB;IAC7C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAA,wBAAQ,EAAC,aAAa,EAAE;YACrC,GAAG,EAAE,YAAY;SAClB,CAAC,CAAC;QACH,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC/B,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;YAC3D,OAAO,EAAE,CAAC;SACX;aAAM;YACL,MAAM,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;SAC3C;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAZD,gCAYC"}
@@ -0,0 +1,2 @@
1
+ import { GeneratorCallback } from '@nx/devkit';
2
+ export declare function runSymlink(workspaceRoot: string, projectRoot: string): GeneratorCallback;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runSymlink = void 0;
4
+ const ensure_node_modules_symlink_1 = require("./ensure-node-modules-symlink");
5
+ const chalk = require("chalk");
6
+ const devkit_1 = require("@nx/devkit");
7
+ function runSymlink(workspaceRoot, projectRoot) {
8
+ return () => {
9
+ devkit_1.logger.info(`creating symlinks for ${chalk.bold(projectRoot)}`);
10
+ try {
11
+ (0, ensure_node_modules_symlink_1.ensureNodeModulesSymlink)(workspaceRoot, projectRoot);
12
+ }
13
+ catch (_a) {
14
+ throw new Error(`Failed to create symlinks for ${chalk.bold(projectRoot)}`);
15
+ }
16
+ };
17
+ }
18
+ exports.runSymlink = runSymlink;
19
+ //# sourceMappingURL=symlink-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symlink-task.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/symlink-task.ts"],"names":[],"mappings":";;;AAAA,+EAAyE;AACzE,+BAA+B;AAC/B,uCAAuD;AAEvD,SAAgB,UAAU,CACxB,aAAqB,EACrB,WAAmB;IAEnB,OAAO,GAAG,EAAE;QACV,eAAM,CAAC,IAAI,CAAC,yBAAyB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAChE,IAAI;YACF,IAAA,sDAAwB,EAAC,aAAa,EAAE,WAAW,CAAC,CAAC;SACtD;QAAC,WAAM;YACN,MAAM,IAAI,KAAK,CACb,iCAAiC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAC3D,CAAC;SACH;IACH,CAAC,CAAC;AACJ,CAAC;AAdD,gCAcC"}
@@ -0,0 +1,20 @@
1
+ export declare const nxVersion: any;
2
+ export declare const expoVersion = "48.0.6";
3
+ export declare const expoMetroConfigVersion = "0.7.1";
4
+ export declare const expoSplashScreenVersion = "~0.18.1";
5
+ export declare const expoStatusBarVersion = "~1.4.4";
6
+ export declare const expoCliVersion = "0.6.2";
7
+ export declare const easCliVersion = "3.7.2";
8
+ export declare const babelPresetExpoVersion = "~9.3.0";
9
+ export declare const reactVersion = "18.2.0";
10
+ export declare const reactDomVersion = "18.2.0";
11
+ export declare const reactTestRendererVersion = "18.2.0";
12
+ export declare const typesReactVersion = "18.0.28";
13
+ export declare const reactNativeVersion = "0.71.4";
14
+ export declare const typesReactNativeVersion = "0.71.4";
15
+ export declare const reactNativeWebVersion = "~0.18.12";
16
+ export declare const reactNativeSvgTransformerVersion = "1.0.0";
17
+ export declare const reactNativeSvgVersion = "13.4.0";
18
+ export declare const metroVersion = "0.74.1";
19
+ export declare const testingLibraryReactNativeVersion = "11.5.2";
20
+ export declare const testingLibraryJestNativeVersion = "5.4.2";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.metroVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactNativeWebVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.babelPresetExpoVersion = exports.easCliVersion = exports.expoCliVersion = exports.expoStatusBarVersion = exports.expoSplashScreenVersion = exports.expoMetroConfigVersion = exports.expoVersion = exports.nxVersion = void 0;
4
+ exports.nxVersion = require('../../package.json').version;
5
+ exports.expoVersion = '48.0.6';
6
+ exports.expoMetroConfigVersion = '0.7.1';
7
+ exports.expoSplashScreenVersion = '~0.18.1';
8
+ exports.expoStatusBarVersion = '~1.4.4';
9
+ exports.expoCliVersion = '0.6.2'; // @expo/cli
10
+ exports.easCliVersion = '3.7.2';
11
+ exports.babelPresetExpoVersion = '~9.3.0';
12
+ exports.reactVersion = '18.2.0';
13
+ exports.reactDomVersion = '18.2.0';
14
+ exports.reactTestRendererVersion = '18.2.0';
15
+ exports.typesReactVersion = '18.0.28';
16
+ exports.reactNativeVersion = '0.71.4';
17
+ exports.typesReactNativeVersion = '0.71.4';
18
+ exports.reactNativeWebVersion = '~0.18.12';
19
+ exports.reactNativeSvgTransformerVersion = '1.0.0';
20
+ exports.reactNativeSvgVersion = '13.4.0';
21
+ exports.metroVersion = '0.74.1';
22
+ exports.testingLibraryReactNativeVersion = '11.5.2';
23
+ exports.testingLibraryJestNativeVersion = '5.4.2';
24
+ //# sourceMappingURL=versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAElD,QAAA,WAAW,GAAG,QAAQ,CAAC;AACvB,QAAA,sBAAsB,GAAG,OAAO,CAAC;AACjC,QAAA,uBAAuB,GAAG,SAAS,CAAC;AACpC,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAChC,QAAA,cAAc,GAAG,OAAO,CAAC,CAAC,YAAY;AACtC,QAAA,aAAa,GAAG,OAAO,CAAC;AACxB,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAElC,QAAA,YAAY,GAAG,QAAQ,CAAC;AACxB,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,wBAAwB,GAAG,QAAQ,CAAC;AACpC,QAAA,iBAAiB,GAAG,SAAS,CAAC;AAE9B,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AACnC,QAAA,qBAAqB,GAAG,UAAU,CAAC;AAEnC,QAAA,gCAAgC,GAAG,OAAO,CAAC;AAC3C,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AAEjC,QAAA,YAAY,GAAG,QAAQ,CAAC;AAExB,QAAA,gCAAgC,GAAG,QAAQ,CAAC;AAC5C,QAAA,+BAA+B,GAAG,OAAO,CAAC"}
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "files": [],
4
+ "include": [],
5
+ "references": [
6
+ {
7
+ "path": "./tsconfig.lib.json"
8
+ },
9
+ {
10
+ "path": "./tsconfig.spec.json"
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "outDir": "../../dist/out-tsc",
6
+ "declaration": true,
7
+ "types": ["node"]
8
+ },
9
+ "exclude": ["**/*.spec.ts", "**/*.test.ts", "jest.config.ts"],
10
+ "include": ["**/*.ts"]
11
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "types": ["jest", "node"]
7
+ },
8
+ "include": [
9
+ "**/*.spec.ts",
10
+ "**/*.test.ts",
11
+ "**/*.spec.tsx",
12
+ "**/*.test.tsx",
13
+ "**/*.spec.js",
14
+ "**/*.test.js",
15
+ "**/*.spec.jsx",
16
+ "**/*.test.jsx",
17
+ "**/*.d.ts",
18
+ "jest.config.ts"
19
+ ]
20
+ }
@@ -0,0 +1,6 @@
1
+ declare module '*.svg' {
2
+ import React from 'react';
3
+ import { SvgProps } from 'react-native-svg';
4
+ const content: React.FC<SvgProps>;
5
+ export default content;
6
+ }