@nx/expo 17.0.3 → 17.0.5
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 +3 -0
- package/LICENSE +1 -1
- package/README.md +9 -4
- package/docs/export-examples.md +112 -0
- package/docs/start-examples.md +6 -0
- package/executors.json +5 -0
- package/generators.json +2 -2
- package/migrations.json +114 -6
- package/package.json +12 -16
- package/plugin.d.ts +1 -0
- package/plugin.js +6 -0
- package/plugins/metro-resolver.js +4 -1
- package/plugins/plugin.d.ts +14 -0
- package/plugins/plugin.js +150 -0
- package/plugins/with-nx-metro.js +6 -2
- package/plugins/with-nx-webpack.d.ts +1 -1
- package/plugins/with-nx-webpack.js +8 -4
- package/src/executors/build/build.impl.js +2 -1
- package/src/executors/build/schema.json +1 -1
- package/src/executors/build-list/build-list.impl.js +2 -3
- package/src/executors/build-list/schema.json +1 -1
- package/src/executors/ensure-symlink/ensure-symlink.impl.d.ts +4 -0
- package/src/executors/ensure-symlink/ensure-symlink.impl.js +4 -0
- package/src/executors/ensure-symlink/schema.json +1 -1
- package/src/executors/export/export.impl.d.ts +1 -0
- package/src/executors/export/export.impl.js +25 -15
- package/src/executors/export/schema.d.ts +4 -2
- package/src/executors/export/schema.json +14 -13
- package/src/executors/install/install.impl.js +0 -2
- package/src/executors/install/schema.json +1 -1
- package/src/executors/prebuild/prebuild.impl.js +11 -5
- package/src/executors/prebuild/schema.json +2 -1
- package/src/executors/run/schema.json +1 -1
- package/src/executors/serve/lib/is-packager-running.d.ts +1 -0
- package/src/executors/serve/lib/is-packager-running.js +15 -0
- package/src/executors/serve/schema.d.ts +7 -0
- package/src/executors/serve/schema.json +35 -0
- package/src/executors/serve/serve.impl.d.ts +11 -0
- package/src/executors/serve/serve.impl.js +105 -0
- package/src/executors/start/schema.json +1 -1
- package/src/executors/start/start.impl.js +7 -1
- package/src/executors/submit/schema.json +1 -1
- package/src/executors/submit/submit.impl.js +2 -1
- package/src/executors/sync-deps/schema.d.ts +1 -0
- package/src/executors/sync-deps/schema.json +6 -1
- package/src/executors/sync-deps/sync-deps.impl.d.ts +4 -3
- package/src/executors/sync-deps/sync-deps.impl.js +33 -11
- package/src/executors/update/schema.json +1 -1
- package/src/executors/update/update.impl.js +7 -4
- package/src/generators/application/application.js +27 -7
- package/src/generators/application/files/app.json.template +2 -0
- package/src/generators/application/files/eas.json.template +0 -3
- package/src/generators/application/files/metro.config.js.template +1 -5
- package/src/generators/application/files/src/app/App.tsx.template +50 -13
- package/src/generators/application/files/webpack.config.js.template +57 -0
- package/src/generators/application/lib/add-e2e.d.ts +3 -0
- package/src/generators/application/lib/add-e2e.js +86 -0
- package/src/generators/application/lib/add-project.js +20 -22
- package/src/generators/application/lib/create-application-files.js +0 -2
- package/src/generators/application/lib/normalize-options.d.ts +6 -0
- package/src/generators/application/lib/normalize-options.js +33 -1
- package/src/generators/application/schema.d.ts +2 -1
- package/src/generators/application/schema.json +4 -4
- package/src/generators/component/files/__fileName__.tsx.template +1 -1
- package/src/generators/component/schema.d.ts +3 -3
- package/src/generators/component/schema.json +4 -4
- package/src/generators/init/init.d.ts +3 -2
- package/src/generators/init/init.js +44 -40
- package/src/generators/init/schema.d.ts +3 -3
- package/src/generators/init/schema.json +11 -16
- package/src/generators/library/files/lib/.babelrc.js.template +21 -0
- package/src/generators/library/lib/normalize-options.js +5 -0
- package/src/generators/library/library.js +52 -38
- package/src/generators/library/schema.d.ts +1 -0
- package/src/generators/library/schema.json +2 -2
- package/src/migrations/update-16-6-0/update-metro-config.js +1 -5
- package/src/migrations/update-16-9-0/remove-types-react-native.js +2 -9
- package/src/migrations/update-16-9-0/update-eas-cli-version.js +1 -2
- package/src/migrations/{update-16-1-4/add-detox-app-json.d.ts → update-18-0-0/change-outputDir-export-target.d.ts} +1 -1
- package/src/migrations/update-18-0-0/change-outputDir-export-target.js +25 -0
- package/src/migrations/update-18-0-0/remove-block-list.d.ts +6 -0
- package/src/migrations/update-18-0-0/remove-block-list.js +28 -0
- package/src/migrations/update-18-0-0/remove-eas-cli.d.ts +12 -0
- package/src/migrations/update-18-0-0/remove-eas-cli.js +18 -0
- package/src/migrations/update-18-0-0/remove-symlink-target.d.ts +6 -0
- package/src/migrations/update-18-0-0/remove-symlink-target.js +29 -0
- package/src/utils/add-jest.d.ts +1 -1
- package/src/utils/add-jest.js +15 -5
- package/src/utils/add-linting.d.ts +1 -0
- package/src/utils/add-linting.js +1 -1
- package/src/utils/ensure-dependencies.d.ts +2 -0
- package/src/utils/ensure-dependencies.js +24 -0
- package/src/utils/find-all-npm-dependencies.js +4 -2
- package/src/utils/has-expo-plugin.d.ts +2 -0
- package/src/utils/has-expo-plugin.js +11 -0
- package/src/utils/resolve-eas.d.ts +1 -0
- package/src/utils/resolve-eas.js +36 -0
- package/src/utils/versions.d.ts +14 -15
- package/src/utils/versions.js +15 -16
- package/collection.json +0 -0
- package/src/generators/application/lib/add-detox.d.ts +0 -3
- package/src/generators/application/lib/add-detox.js +0 -24
- package/src/generators/library/files/lib/babel.config.json +0 -17
- package/src/migrations/update-16-1-4/add-detox-app-json.js +0 -29
- package/src/utils/symlink-task.d.ts +0 -2
- package/src/utils/symlink-task.js +0 -18
- /package/src/generators/application/files/{babel.config.js.template → .babelrc.js.template} +0 -0
- /package/src/{generators/init/lib → utils}/init-root-babel-config.d.ts +0 -0
- /package/src/{generators/init/lib → utils}/init-root-babel-config.js +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
/**
|
|
5
|
+
* This migration remove blockList in metro.config.js.
|
|
6
|
+
* It is now excluding dist folder in watchFolders in withNxMetro.
|
|
7
|
+
*/
|
|
8
|
+
async function update(tree) {
|
|
9
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
10
|
+
for (const [_, config] of projects.entries()) {
|
|
11
|
+
if (config.targets?.['start']?.executor === '@nx/expo:start') {
|
|
12
|
+
if (tree.exists((0, devkit_1.joinPathFragments)(config.root, 'metro.config.js'))) {
|
|
13
|
+
let content = tree
|
|
14
|
+
.read((0, devkit_1.joinPathFragments)(config.root, 'metro.config.js'))
|
|
15
|
+
.toString();
|
|
16
|
+
content = content.replace(/blockList: exclusionList(.+?(?=\n))/, '');
|
|
17
|
+
content = content.replace('// unstable_enableSymlinks: true,', '');
|
|
18
|
+
content = content.replace('// unstable_enablePackageExports: true,', '');
|
|
19
|
+
content = content.replace('unstable_enableSymlinks: true,', '');
|
|
20
|
+
content = content.replace('unstable_enablePackageExports: true,', '');
|
|
21
|
+
content = content.replace(`const exclusionList = require('metro-config/src/defaults/exclusionList');`, '');
|
|
22
|
+
tree.write((0, devkit_1.joinPathFragments)(config.root, 'metro.config.js'), content);
|
|
23
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = update;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Tree } from '@nx/devkit';
|
|
2
|
+
/**
|
|
3
|
+
* Remove eas-cli from dev dependencies.
|
|
4
|
+
* Use globally eas-cli.
|
|
5
|
+
*
|
|
6
|
+
* Remove metro and metro-resolver from dev dependencies.
|
|
7
|
+
* react-native has dependency of @react-native/community-cli-plugin
|
|
8
|
+
* @react-native/community-cli-plugin has dependency of metro
|
|
9
|
+
* @param tree
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export default function update(tree: Tree): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
/**
|
|
5
|
+
* Remove eas-cli from dev dependencies.
|
|
6
|
+
* Use globally eas-cli.
|
|
7
|
+
*
|
|
8
|
+
* Remove metro and metro-resolver from dev dependencies.
|
|
9
|
+
* react-native has dependency of @react-native/community-cli-plugin
|
|
10
|
+
* @react-native/community-cli-plugin has dependency of metro
|
|
11
|
+
* @param tree
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
async function update(tree) {
|
|
15
|
+
(0, devkit_1.removeDependenciesFromPackageJson)(tree, [], ['eas-cli', 'metro', 'metro-resolver']);
|
|
16
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
17
|
+
}
|
|
18
|
+
exports.default = update;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
const fs_extra_1 = require("fs-extra");
|
|
5
|
+
/**
|
|
6
|
+
* Remove ensure-symlink target.
|
|
7
|
+
* It is going to be supported by react-native version 0.73 by default.
|
|
8
|
+
*/
|
|
9
|
+
async function update(tree) {
|
|
10
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
11
|
+
for (const [projectName, config] of projects.entries()) {
|
|
12
|
+
if (config.targets?.['ensure-symlink']?.executor === '@nx/expo:ensure-symlink') {
|
|
13
|
+
removeTargets(config.targets, 'ensure-symlink');
|
|
14
|
+
(0, devkit_1.updateProjectConfiguration)(tree, projectName, config);
|
|
15
|
+
(0, fs_extra_1.removeSync)(`${config.root}/node_modules`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = update;
|
|
20
|
+
function removeTargets(targets, targetNameToRemove) {
|
|
21
|
+
for (const targetName in targets) {
|
|
22
|
+
if (targetName === targetNameToRemove) {
|
|
23
|
+
delete targets[targetName];
|
|
24
|
+
}
|
|
25
|
+
if (targets[targetName]?.dependsOn?.length) {
|
|
26
|
+
targets[targetName].dependsOn = targets[targetName].dependsOn.filter((dependsOn) => dependsOn !== targetNameToRemove);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/src/utils/add-jest.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare function addJest(host: Tree, unitTestRunner: 'jest' | 'none', projectName: string, appProjectRoot: string, js: boolean, skipPackageJson: boolean): Promise<import("@nx/devkit").GeneratorCallback>;
|
|
2
|
+
export declare function addJest(host: Tree, unitTestRunner: 'jest' | 'none', projectName: string, appProjectRoot: string, js: boolean, skipPackageJson: boolean, addPlugin: boolean): Promise<import("@nx/devkit").GeneratorCallback>;
|
package/src/utils/add-jest.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addJest = void 0;
|
|
4
4
|
const jest_1 = require("@nx/jest");
|
|
5
|
-
async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, skipPackageJson) {
|
|
5
|
+
async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, skipPackageJson, addPlugin) {
|
|
6
6
|
if (unitTestRunner !== 'jest') {
|
|
7
7
|
return () => { };
|
|
8
8
|
}
|
|
@@ -15,21 +15,31 @@ async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, sk
|
|
|
15
15
|
compiler: 'babel',
|
|
16
16
|
skipPackageJson,
|
|
17
17
|
skipFormat: true,
|
|
18
|
+
addPlugin,
|
|
18
19
|
});
|
|
19
20
|
// overwrite the jest.config.ts file because react native needs to have special transform property
|
|
21
|
+
// use preset from https://github.com/expo/expo/blob/main/packages/jest-expo/jest-preset.js
|
|
20
22
|
const configPath = `${appProjectRoot}/jest.config.${js ? 'js' : 'ts'}`;
|
|
21
23
|
const content = `module.exports = {
|
|
22
24
|
displayName: '${projectName}',
|
|
23
25
|
resolver: '@nx/jest/plugins/resolver',
|
|
24
26
|
preset: 'jest-expo',
|
|
25
|
-
transformIgnorePatterns: [
|
|
26
|
-
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
|
|
27
|
-
],
|
|
28
27
|
moduleFileExtensions: ['ts', 'js', 'html', 'tsx', 'jsx'],
|
|
29
28
|
setupFilesAfterEnv: ['<rootDir>/test-setup.${js ? 'js' : 'ts'}'],
|
|
30
29
|
moduleNameMapper: {
|
|
31
30
|
'\\\\.svg$': '@nx/expo/plugins/jest/svg-mock'
|
|
32
|
-
}
|
|
31
|
+
},
|
|
32
|
+
transform: {
|
|
33
|
+
'\\.[jt]sx?$': [
|
|
34
|
+
'babel-jest',
|
|
35
|
+
{
|
|
36
|
+
configFile: __dirname + '/.babelrc.js',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
'^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp|ttf|otf|m4v|mov|mp4|mpeg|mpg|webm|aac|aiff|caf|m4a|mp3|wav|html|pdf|obj)$': require.resolve(
|
|
40
|
+
'jest-expo/src/preset/assetFileTransformer.js'
|
|
41
|
+
),
|
|
42
|
+
},
|
|
33
43
|
};`;
|
|
34
44
|
host.write(configPath, content);
|
|
35
45
|
return jestTask;
|
|
@@ -7,6 +7,7 @@ interface NormalizedSchema {
|
|
|
7
7
|
setParserOptionsProject?: boolean;
|
|
8
8
|
tsConfigPaths: string[];
|
|
9
9
|
skipPackageJson?: boolean;
|
|
10
|
+
addPlugin?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare function addLinting(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
|
12
13
|
export {};
|
package/src/utils/add-linting.js
CHANGED
|
@@ -14,9 +14,9 @@ async function addLinting(host, options) {
|
|
|
14
14
|
linter: options.linter,
|
|
15
15
|
project: options.projectName,
|
|
16
16
|
tsConfigPaths: options.tsConfigPaths,
|
|
17
|
-
eslintFilePatterns: [`${options.projectRoot}/**/*.{ts,tsx,js,jsx}`],
|
|
18
17
|
skipFormat: true,
|
|
19
18
|
skipPackageJson: options.skipPackageJson,
|
|
19
|
+
addPlugin: options.addPlugin,
|
|
20
20
|
});
|
|
21
21
|
tasks.push(lintTask);
|
|
22
22
|
if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ensureDependencies = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const versions_1 = require("./versions");
|
|
6
|
+
function ensureDependencies(host) {
|
|
7
|
+
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
8
|
+
'expo-splash-screen': versions_1.expoSplashScreenVersion,
|
|
9
|
+
'expo-status-bar': versions_1.expoStatusBarVersion,
|
|
10
|
+
'react-native-web': versions_1.reactNativeWebVersion,
|
|
11
|
+
'@expo/metro-config': versions_1.expoMetroConfigVersion,
|
|
12
|
+
'@expo/metro-runtime': versions_1.expoMetroRuntimeVersion,
|
|
13
|
+
'react-native-svg-transformer': versions_1.reactNativeSvgTransformerVersion,
|
|
14
|
+
'react-native-svg': versions_1.reactNativeSvgVersion,
|
|
15
|
+
}, {
|
|
16
|
+
'@types/react': versions_1.typesReactVersion,
|
|
17
|
+
'react-test-renderer': versions_1.reactTestRendererVersion,
|
|
18
|
+
'@testing-library/react-native': versions_1.testingLibraryReactNativeVersion,
|
|
19
|
+
'@testing-library/jest-native': versions_1.testingLibraryJestNativeVersion,
|
|
20
|
+
'jest-expo': versions_1.jestExpoVersion,
|
|
21
|
+
'babel-preset-expo': versions_1.babelPresetExpoVersion,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.ensureDependencies = ensureDependencies;
|
|
@@ -8,11 +8,13 @@ function findAllNpmDependencies(graph, projectName, list = [], seen = new Set())
|
|
|
8
8
|
}
|
|
9
9
|
seen.add(projectName);
|
|
10
10
|
const node = graph.externalNodes[projectName];
|
|
11
|
-
// Don't want to include '@nx/react-native' because React Native
|
|
11
|
+
// Don't want to include '@nx/react-native' and '@nx/expo' because React Native
|
|
12
12
|
// autolink will warn that the package has no podspec file for iOS.
|
|
13
13
|
if (node) {
|
|
14
14
|
if (node.name !== `npm:@nx/react-native` &&
|
|
15
|
-
node.name !== `npm:@nrwl/react-native`
|
|
15
|
+
node.name !== `npm:@nrwl/react-native` &&
|
|
16
|
+
node.name !== `npm:@nx/expo` &&
|
|
17
|
+
node.name !== `npm:@nrwl/expo`) {
|
|
16
18
|
list.push(node.data.packageName);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasExpoPlugin = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
function hasExpoPlugin(tree) {
|
|
6
|
+
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
7
|
+
return !!nxJson.plugins?.some((p) => typeof p === 'string'
|
|
8
|
+
? p === '@nx/expo/plugin'
|
|
9
|
+
: p.plugin === '@nx/expo/plugin');
|
|
10
|
+
}
|
|
11
|
+
exports.hasExpoPlugin = hasExpoPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveEas(workspaceRoot: string): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveEas = void 0;
|
|
4
|
+
const child_process_1 = require("child_process");
|
|
5
|
+
function resolveEas(workspaceRoot) {
|
|
6
|
+
try {
|
|
7
|
+
(0, child_process_1.execSync)('eas --version');
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
throw new Error('EAS is not installed. Please run `npm install --global eas-cli` or `yarn global add eas-cli`.');
|
|
11
|
+
}
|
|
12
|
+
let npmGlobalPath, yarnGlobalPath;
|
|
13
|
+
try {
|
|
14
|
+
npmGlobalPath = (0, child_process_1.execSync)('npm root -g')
|
|
15
|
+
?.toString()
|
|
16
|
+
?.trim()
|
|
17
|
+
?.replace('\u001b[2K\u001b[1G', ''); // strip out ansi codes
|
|
18
|
+
}
|
|
19
|
+
catch { }
|
|
20
|
+
try {
|
|
21
|
+
yarnGlobalPath = (0, child_process_1.execSync)('yarn global dir')
|
|
22
|
+
?.toString()
|
|
23
|
+
?.trim()
|
|
24
|
+
?.replace('\u001b[2K\u001b[1G', ''); // strip out ansi codes
|
|
25
|
+
}
|
|
26
|
+
catch { }
|
|
27
|
+
try {
|
|
28
|
+
return require.resolve('eas-cli/bin/run', {
|
|
29
|
+
paths: [npmGlobalPath, yarnGlobalPath, workspaceRoot].filter(Boolean),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
throw new Error('Can not resolve EAS. Please run `npm install --global eas-cli` or `yarn global add eas-cli`.');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.resolveEas = resolveEas;
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const expoVersion = "
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const easCliVersion = "~5.2.0";
|
|
8
|
-
export declare const babelPresetExpoVersion = "~9.5.2";
|
|
2
|
+
export declare const expoVersion = "~50.0.3";
|
|
3
|
+
export declare const expoSplashScreenVersion = "~0.26.1";
|
|
4
|
+
export declare const expoStatusBarVersion = "~1.11.1";
|
|
5
|
+
export declare const expoCliVersion = "~0.16.5";
|
|
6
|
+
export declare const babelPresetExpoVersion = "~10.0.0";
|
|
9
7
|
export declare const reactVersion = "18.2.0";
|
|
10
8
|
export declare const reactDomVersion = "18.2.0";
|
|
11
9
|
export declare const reactTestRendererVersion = "18.2.0";
|
|
12
|
-
export declare const typesReactVersion = "18.
|
|
13
|
-
export declare const reactNativeVersion = "0.
|
|
14
|
-
export declare const reactNativeWebVersion = "~0.19.
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
10
|
+
export declare const typesReactVersion = "~18.2.45";
|
|
11
|
+
export declare const reactNativeVersion = "0.73.2";
|
|
12
|
+
export declare const reactNativeWebVersion = "~0.19.9";
|
|
13
|
+
export declare const expoMetroConfigVersion = "~0.17.3";
|
|
14
|
+
export declare const expoMetroRuntimeVersion = "~3.1.1";
|
|
15
|
+
export declare const reactNativeSvgTransformerVersion = "1.2.0";
|
|
16
|
+
export declare const reactNativeSvgVersion = "14.1.0";
|
|
17
|
+
export declare const testingLibraryReactNativeVersion = "~12.4.2";
|
|
19
18
|
export declare const testingLibraryJestNativeVersion = "~5.4.3";
|
|
20
|
-
export declare const jestExpoVersion = "~
|
|
19
|
+
export declare const jestExpoVersion = "~50.0.1";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.jestExpoVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.
|
|
3
|
+
exports.jestExpoVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.expoMetroRuntimeVersion = exports.expoMetroConfigVersion = exports.reactNativeWebVersion = exports.reactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.babelPresetExpoVersion = exports.expoCliVersion = exports.expoStatusBarVersion = exports.expoSplashScreenVersion = exports.expoVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.expoVersion = '
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.easCliVersion = '~5.2.0';
|
|
11
|
-
exports.babelPresetExpoVersion = '~9.5.2';
|
|
5
|
+
exports.expoVersion = '~50.0.3';
|
|
6
|
+
exports.expoSplashScreenVersion = '~0.26.1';
|
|
7
|
+
exports.expoStatusBarVersion = '~1.11.1';
|
|
8
|
+
exports.expoCliVersion = '~0.16.5'; // @expo/cli
|
|
9
|
+
exports.babelPresetExpoVersion = '~10.0.0';
|
|
12
10
|
exports.reactVersion = '18.2.0';
|
|
13
11
|
exports.reactDomVersion = '18.2.0';
|
|
14
12
|
exports.reactTestRendererVersion = '18.2.0';
|
|
15
|
-
exports.typesReactVersion = '18.
|
|
16
|
-
exports.reactNativeVersion = '0.
|
|
17
|
-
exports.reactNativeWebVersion = '~0.19.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
13
|
+
exports.typesReactVersion = '~18.2.45';
|
|
14
|
+
exports.reactNativeVersion = '0.73.2';
|
|
15
|
+
exports.reactNativeWebVersion = '~0.19.9';
|
|
16
|
+
exports.expoMetroConfigVersion = '~0.17.3';
|
|
17
|
+
exports.expoMetroRuntimeVersion = '~3.1.1';
|
|
18
|
+
exports.reactNativeSvgTransformerVersion = '1.2.0';
|
|
19
|
+
exports.reactNativeSvgVersion = '14.1.0';
|
|
20
|
+
exports.testingLibraryReactNativeVersion = '~12.4.2';
|
|
22
21
|
exports.testingLibraryJestNativeVersion = '~5.4.3';
|
|
23
|
-
exports.jestExpoVersion = '~
|
|
22
|
+
exports.jestExpoVersion = '~50.0.1';
|
package/collection.json
DELETED
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addDetox = void 0;
|
|
4
|
-
const detox_1 = require("@nx/detox");
|
|
5
|
-
const eslint_1 = require("@nx/eslint");
|
|
6
|
-
async function addDetox(host, options) {
|
|
7
|
-
if (options?.e2eTestRunner !== 'detox') {
|
|
8
|
-
return () => { };
|
|
9
|
-
}
|
|
10
|
-
return (0, detox_1.detoxApplicationGenerator)(host, {
|
|
11
|
-
...options,
|
|
12
|
-
linter: eslint_1.Linter.EsLint,
|
|
13
|
-
e2eName: `${options.projectName}-e2e`,
|
|
14
|
-
e2eDirectory: `${options.appProjectRoot}-e2e`,
|
|
15
|
-
projectNameAndRootFormat: 'as-provided',
|
|
16
|
-
appProject: options.projectName,
|
|
17
|
-
appDisplayName: options.displayName,
|
|
18
|
-
appName: options.name,
|
|
19
|
-
framework: 'expo',
|
|
20
|
-
setParserOptionsProject: options.setParserOptionsProject,
|
|
21
|
-
skipFormat: true,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
exports.addDetox = addDetox;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
/**
|
|
5
|
-
* Add detox plugin to app.json for expo
|
|
6
|
-
*/
|
|
7
|
-
async function update(tree) {
|
|
8
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
9
|
-
projects.forEach((config) => {
|
|
10
|
-
if (config.targets?.['start']?.executor === '@nrwl/expo:start' ||
|
|
11
|
-
config.targets?.['start']?.executor === '@nx/expo:start') {
|
|
12
|
-
(0, devkit_1.updateJson)(tree, `${config.root}/app.json`, (json) => {
|
|
13
|
-
if (!json.expo.plugins) {
|
|
14
|
-
json.expo.plugins = [];
|
|
15
|
-
}
|
|
16
|
-
json.expo.plugins.push([
|
|
17
|
-
'@config-plugins/detox',
|
|
18
|
-
{
|
|
19
|
-
skipProguard: false,
|
|
20
|
-
subdomains: ['10.0.2.2', 'localhost'],
|
|
21
|
-
},
|
|
22
|
-
]);
|
|
23
|
-
return json;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
28
|
-
}
|
|
29
|
-
exports.default = update;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 {
|
|
14
|
-
throw new Error(`Failed to create symlinks for ${chalk.bold(projectRoot)}`);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
exports.runSymlink = runSymlink;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|