@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.
- package/.eslintrc.json +19 -0
- package/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +63 -0
- package/collection.json +0 -0
- package/docs/build-list-examples.md +71 -0
- package/docs/prebuild-examples.md +70 -0
- package/docs/run-examples.md +91 -0
- package/docs/start-examples.md +98 -0
- package/executors.json +116 -0
- package/generators.json +61 -0
- package/index.d.ts +4 -0
- package/index.js +12 -0
- package/index.js.map +1 -0
- package/migrations.json +734 -0
- package/package.json +59 -0
- package/plugins/jest/svg-mock.d.ts +0 -0
- package/plugins/jest/svg-mock.js +4 -0
- package/plugins/jest/svg-mock.js.map +1 -0
- package/plugins/metro-resolver.d.ts +1 -0
- package/plugins/metro-resolver.js +135 -0
- package/plugins/metro-resolver.js.map +1 -0
- package/plugins/with-nx-metro.d.ts +8 -0
- package/plugins/with-nx-metro.js +31 -0
- package/plugins/with-nx-metro.js.map +1 -0
- package/plugins/with-nx-webpack.d.ts +5 -0
- package/plugins/with-nx-webpack.js +52 -0
- package/plugins/with-nx-webpack.js.map +1 -0
- package/project.json +61 -0
- package/src/executors/build/build.impl.d.ts +6 -0
- package/src/executors/build/build.impl.js +62 -0
- package/src/executors/build/build.impl.js.map +1 -0
- package/src/executors/build/compat.d.ts +2 -0
- package/src/executors/build/compat.js +6 -0
- package/src/executors/build/compat.js.map +1 -0
- package/src/executors/build/schema.d.ts +14 -0
- package/src/executors/build/schema.json +60 -0
- package/src/executors/build-list/build-fragment.d.ts +54 -0
- package/src/executors/build-list/build-list.impl.d.ts +7 -0
- package/src/executors/build-list/build-list.impl.js +86 -0
- package/src/executors/build-list/build-list.impl.js.map +1 -0
- package/src/executors/build-list/compat.d.ts +2 -0
- package/src/executors/build-list/compat.js +6 -0
- package/src/executors/build-list/compat.js.map +1 -0
- package/src/executors/build-list/schema.d.ts +25 -0
- package/src/executors/build-list/schema.json +79 -0
- package/src/executors/download/compat.d.ts +2 -0
- package/src/executors/download/compat.js +6 -0
- package/src/executors/download/compat.js.map +1 -0
- package/src/executors/download/download.impl.d.ts +15 -0
- package/src/executors/download/download.impl.js +101 -0
- package/src/executors/download/download.impl.js.map +1 -0
- package/src/executors/download/schema.d.ts +3 -0
- package/src/executors/download/schema.json +59 -0
- package/src/executors/ensure-symlink/compat.d.ts +2 -0
- package/src/executors/ensure-symlink/compat.js +6 -0
- package/src/executors/ensure-symlink/compat.js.map +1 -0
- package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts +5 -0
- package/src/executors/ensure-symlink/ensure-symlink.impl.js +13 -0
- package/src/executors/ensure-symlink/ensure-symlink.impl.js.map +1 -0
- package/src/executors/ensure-symlink/schema.json +11 -0
- package/src/executors/export/compat.d.ts +2 -0
- package/src/executors/export/compat.js +6 -0
- package/src/executors/export/compat.js.map +1 -0
- package/src/executors/export/export.impl.d.ts +6 -0
- package/src/executors/export/export.impl.js +69 -0
- package/src/executors/export/export.impl.js.map +1 -0
- package/src/executors/export/schema.d.ts +11 -0
- package/src/executors/export/schema.json +48 -0
- package/src/executors/install/compat.d.ts +2 -0
- package/src/executors/install/compat.js +6 -0
- package/src/executors/install/compat.js.map +1 -0
- package/src/executors/install/install.impl.d.ts +7 -0
- package/src/executors/install/install.impl.js +70 -0
- package/src/executors/install/install.impl.js.map +1 -0
- package/src/executors/install/schema.d.ts +7 -0
- package/src/executors/install/schema.json +34 -0
- package/src/executors/prebuild/compat.d.ts +2 -0
- package/src/executors/prebuild/compat.js +6 -0
- package/src/executors/prebuild/compat.js.map +1 -0
- package/src/executors/prebuild/prebuild.impl.d.ts +7 -0
- package/src/executors/prebuild/prebuild.impl.js +70 -0
- package/src/executors/prebuild/prebuild.impl.js.map +1 -0
- package/src/executors/prebuild/schema.d.ts +7 -0
- package/src/executors/prebuild/schema.json +35 -0
- package/src/executors/run/compat.d.ts +2 -0
- package/src/executors/run/compat.js +6 -0
- package/src/executors/run/compat.js.map +1 -0
- package/src/executors/run/run.impl.d.ts +6 -0
- package/src/executors/run/run.impl.js +112 -0
- package/src/executors/run/run.impl.js.map +1 -0
- package/src/executors/run/schema.d.ts +25 -0
- package/src/executors/run/schema.json +71 -0
- package/src/executors/start/compat.d.ts +2 -0
- package/src/executors/start/compat.js +6 -0
- package/src/executors/start/compat.js.map +1 -0
- package/src/executors/start/schema.d.ts +22 -0
- package/src/executors/start/schema.json +93 -0
- package/src/executors/start/start.impl.d.ts +7 -0
- package/src/executors/start/start.impl.js +73 -0
- package/src/executors/start/start.impl.js.map +1 -0
- package/src/executors/sync-deps/compat.d.ts +2 -0
- package/src/executors/sync-deps/compat.js +6 -0
- package/src/executors/sync-deps/compat.js.map +1 -0
- package/src/executors/sync-deps/schema.d.ts +4 -0
- package/src/executors/sync-deps/schema.json +28 -0
- package/src/executors/sync-deps/sync-deps.impl.d.ts +8 -0
- package/src/executors/sync-deps/sync-deps.impl.js +62 -0
- package/src/executors/sync-deps/sync-deps.impl.js.map +1 -0
- package/src/executors/update/compat.d.ts +2 -0
- package/src/executors/update/compat.js +6 -0
- package/src/executors/update/compat.js.map +1 -0
- package/src/executors/update/schema.d.ts +15 -0
- package/src/executors/update/schema.json +65 -0
- package/src/executors/update/update.impl.d.ts +6 -0
- package/src/executors/update/update.impl.js +59 -0
- package/src/executors/update/update.impl.js.map +1 -0
- package/src/generators/application/application.d.ts +5 -0
- package/src/generators/application/application.js +33 -0
- package/src/generators/application/application.js.map +1 -0
- package/src/generators/application/files/app.json.template +33 -0
- package/src/generators/application/files/assets/adaptive-icon.png +0 -0
- package/src/generators/application/files/assets/favicon.png +0 -0
- package/src/generators/application/files/assets/icon.png +0 -0
- package/src/generators/application/files/assets/splash.png +0 -0
- package/src/generators/application/files/babel.config.js.template +6 -0
- package/src/generators/application/files/eas.json.template +28 -0
- package/src/generators/application/files/index.js.template +8 -0
- package/src/generators/application/files/metro.config.js.template +25 -0
- package/src/generators/application/files/package.json.template +17 -0
- package/src/generators/application/files/src/app/App.spec.tsx.template +9 -0
- package/src/generators/application/files/src/app/App.tsx.template +694 -0
- package/src/generators/application/files/test-setup.ts.template +1 -0
- package/src/generators/application/files/tsconfig.app.json.template +9 -0
- package/src/generators/application/files/tsconfig.json.template +26 -0
- package/src/generators/application/lib/add-detox.d.ts +3 -0
- package/src/generators/application/lib/add-detox.js +16 -0
- package/src/generators/application/lib/add-detox.js.map +1 -0
- package/src/generators/application/lib/add-project.d.ts +3 -0
- package/src/generators/application/lib/add-project.js +91 -0
- package/src/generators/application/lib/add-project.js.map +1 -0
- package/src/generators/application/lib/create-application-files.d.ts +3 -0
- package/src/generators/application/lib/create-application-files.js +24 -0
- package/src/generators/application/lib/create-application-files.js.map +1 -0
- package/src/generators/application/lib/normalize-options.d.ts +10 -0
- package/src/generators/application/lib/normalize-options.js +30 -0
- package/src/generators/application/lib/normalize-options.js.map +1 -0
- package/src/generators/application/schema.d.ts +19 -0
- package/src/generators/application/schema.json +88 -0
- package/src/generators/component/component.d.ts +5 -0
- package/src/generators/component/component.js +51 -0
- package/src/generators/component/component.js.map +1 -0
- package/src/generators/component/files/__fileName__.spec.tsx.template +11 -0
- package/src/generators/component/files/__fileName__.tsx.template +32 -0
- package/src/generators/component/lib/add-import.d.ts +3 -0
- package/src/generators/component/lib/add-import.js +30 -0
- package/src/generators/component/lib/add-import.js.map +1 -0
- package/src/generators/component/lib/normalize-options.d.ts +8 -0
- package/src/generators/component/lib/normalize-options.js +58 -0
- package/src/generators/component/lib/normalize-options.js.map +1 -0
- package/src/generators/component/schema.d.ts +15 -0
- package/src/generators/component/schema.json +83 -0
- package/src/generators/init/init.d.ts +6 -0
- package/src/generators/init/init.js +69 -0
- package/src/generators/init/init.js.map +1 -0
- package/src/generators/init/lib/add-git-ignore-entry.d.ts +2 -0
- package/src/generators/init/lib/add-git-ignore-entry.js +19 -0
- package/src/generators/init/lib/add-git-ignore-entry.js.map +1 -0
- package/src/generators/init/lib/gitignore-entries.d.ts +1 -0
- package/src/generators/init/lib/gitignore-entries.js +20 -0
- package/src/generators/init/lib/gitignore-entries.js.map +1 -0
- package/src/generators/init/lib/init-root-babel-config.d.ts +2 -0
- package/src/generators/init/lib/init-root-babel-config.js +14 -0
- package/src/generators/init/lib/init-root-babel-config.js.map +1 -0
- package/src/generators/init/schema.d.ts +7 -0
- package/src/generators/init/schema.json +38 -0
- package/src/generators/library/files/lib/README.md +7 -0
- package/src/generators/library/files/lib/babel.config.json +17 -0
- package/src/generators/library/files/lib/package.json.template +5 -0
- package/src/generators/library/files/lib/src/index.ts.template +0 -0
- package/src/generators/library/files/lib/test-setup.ts.template +1 -0
- package/src/generators/library/files/lib/tsconfig.json.template +16 -0
- package/src/generators/library/files/lib/tsconfig.lib.json.template +9 -0
- package/src/generators/library/lib/normalize-options.d.ts +12 -0
- package/src/generators/library/lib/normalize-options.js +27 -0
- package/src/generators/library/lib/normalize-options.js.map +1 -0
- package/src/generators/library/library.d.ts +5 -0
- package/src/generators/library/library.js +101 -0
- package/src/generators/library/library.js.map +1 -0
- package/src/generators/library/schema.d.ts +22 -0
- package/src/generators/library/schema.json +99 -0
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.d.ts +6 -0
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js +35 -0
- package/src/migrations/update-14-0-0/add-project-root-metro-config-14-0-0.js.map +1 -0
- package/src/migrations/update-14-1-2/add-eject-target-14-1-2.d.ts +5 -0
- package/src/migrations/update-14-1-2/add-eject-target-14-1-2.js +25 -0
- package/src/migrations/update-14-1-2/add-eject-target-14-1-2.js.map +1 -0
- package/src/migrations/update-14-4-3/add-eas-build-target.d.ts +5 -0
- package/src/migrations/update-14-4-3/add-eas-build-target.js +42 -0
- package/src/migrations/update-14-4-3/add-eas-build-target.js.map +1 -0
- package/src/migrations/update-14-5-1/add-eas-update-target.d.ts +5 -0
- package/src/migrations/update-14-5-1/add-eas-update-target.js +27 -0
- package/src/migrations/update-14-5-1/add-eas-update-target.js.map +1 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.d.ts +9 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js +66 -0
- package/src/migrations/update-15-0-3/add-new-expo-cli-targets.js.map +1 -0
- package/src/migrations/update-15-0-3/change-jest-preset.d.ts +8 -0
- package/src/migrations/update-15-0-3/change-jest-preset.js +74 -0
- package/src/migrations/update-15-0-3/change-jest-preset.js.map +1 -0
- package/src/migrations/update-15-8-3/change-webpack-to-metro.d.ts +8 -0
- package/src/migrations/update-15-8-3/change-webpack-to-metro.js +37 -0
- package/src/migrations/update-15-8-3/change-webpack-to-metro.js.map +1 -0
- package/src/migrations/update-16-0-0/remove-deprecated-targets.d.ts +5 -0
- package/src/migrations/update-16-0-0/remove-deprecated-targets.js +36 -0
- package/src/migrations/update-16-0-0/remove-deprecated-targets.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/utils/add-jest.d.ts +2 -0
- package/src/utils/add-jest.js +39 -0
- package/src/utils/add-jest.js.map +1 -0
- package/src/utils/add-linting.d.ts +3 -0
- package/src/utils/add-linting.js +37 -0
- package/src/utils/add-linting.js.map +1 -0
- package/src/utils/ensure-node-modules-symlink.d.ts +9 -0
- package/src/utils/ensure-node-modules-symlink.js +29 -0
- package/src/utils/ensure-node-modules-symlink.js.map +1 -0
- package/src/utils/find-all-npm-dependencies.d.ts +2 -0
- package/src/utils/find-all-npm-dependencies.js +26 -0
- package/src/utils/find-all-npm-dependencies.js.map +1 -0
- package/src/utils/pod-install-task.d.ts +8 -0
- package/src/utils/pod-install-task.js +53 -0
- package/src/utils/pod-install-task.js.map +1 -0
- package/src/utils/symlink-task.d.ts +2 -0
- package/src/utils/symlink-task.js +19 -0
- package/src/utils/symlink-task.js.map +1 -0
- package/src/utils/versions.d.ts +20 -0
- package/src/utils/versions.js +24 -0
- package/src/utils/versions.js.map +1 -0
- package/tsconfig.json +13 -0
- package/tsconfig.lib.json +11 -0
- package/tsconfig.spec.json +20 -0
- 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,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,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,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
|
+
}
|