@nx/react-native 19.5.7 → 19.6.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/generators.json +5 -0
- package/migrations.json +6 -0
- package/package.json +8 -8
- package/plugins/plugin.d.ts +1 -1
- package/plugins/plugin.js +2 -2
- package/src/generators/application/application.js +1 -1
- package/src/generators/application/files/nx-welcome/claimed/src/app/App.tsx.template +737 -0
- package/src/generators/application/files/{app → nx-welcome/not-configured}/src/app/App.tsx.template +106 -114
- package/src/generators/application/files/nx-welcome/unclaimed/src/app/App.tsx.template +737 -0
- package/src/generators/application/lib/add-e2e.js +4 -0
- package/src/generators/application/lib/create-application-files.d.ts +1 -1
- package/src/generators/application/lib/create-application-files.js +12 -1
- package/src/generators/application/schema.d.ts +1 -0
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts +7 -0
- package/src/generators/convert-to-inferred/convert-to-inferred.js +92 -0
- package/src/generators/convert-to-inferred/lib/create-process-options.d.ts +6 -0
- package/src/generators/convert-to-inferred/lib/create-process-options.js +39 -0
- package/src/generators/convert-to-inferred/lib/post-target-transformer.d.ts +6 -0
- package/src/generators/convert-to-inferred/lib/post-target-transformer.js +34 -0
- package/src/generators/convert-to-inferred/lib/process-start-options.d.ts +2 -0
- package/src/generators/convert-to-inferred/lib/process-start-options.js +23 -0
- package/src/generators/convert-to-inferred/schema.json +19 -0
- package/src/generators/init/init.js +1 -1
- package/src/migrations/update-19-6-0/rename-upgrade-target-name.d.ts +5 -0
- package/src/migrations/update-19-6-0/rename-upgrade-target-name.js +25 -0
package/generators.json
CHANGED
|
@@ -53,6 +53,11 @@
|
|
|
53
53
|
"factory": "./src/generators/web-configuration/web-configuration#webConfigurationGenerator",
|
|
54
54
|
"schema": "./src/generators/web-configuration/schema.json",
|
|
55
55
|
"description": "Set up web configuration for a React Native app"
|
|
56
|
+
},
|
|
57
|
+
"convert-to-inferred": {
|
|
58
|
+
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
59
|
+
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
60
|
+
"description": "Convert existing React Native project(s) using `@nx/react-native:*` executors to use `@nx/react-native/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
63
|
}
|
package/migrations.json
CHANGED
|
@@ -65,6 +65,12 @@
|
|
|
65
65
|
"version": "18.0.0-beta.0",
|
|
66
66
|
"description": "Add upgrade target to react native projects",
|
|
67
67
|
"implementation": "./src/migrations/update-18-0-0/add-upgrade-target"
|
|
68
|
+
},
|
|
69
|
+
"update-19-6-0-rename-upgrade-target-name": {
|
|
70
|
+
"cli": "nx",
|
|
71
|
+
"version": "19.6.0-beta.1",
|
|
72
|
+
"description": "Rename upgrade target name to fix casing.",
|
|
73
|
+
"implementation": "./src/migrations/update-19-6-0/rename-upgrade-target-name"
|
|
68
74
|
}
|
|
69
75
|
},
|
|
70
76
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"node-fetch": "^2.6.7",
|
|
38
38
|
"tsconfig-paths": "^4.1.2",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/devkit": "19.
|
|
41
|
-
"@nx/jest": "19.
|
|
42
|
-
"@nx/js": "19.
|
|
43
|
-
"@nx/eslint": "19.
|
|
44
|
-
"@nx/react": "19.
|
|
45
|
-
"@nx/workspace": "19.
|
|
46
|
-
"@nrwl/react-native": "19.
|
|
40
|
+
"@nx/devkit": "19.6.0-beta.1",
|
|
41
|
+
"@nx/jest": "19.6.0-beta.1",
|
|
42
|
+
"@nx/js": "19.6.0-beta.1",
|
|
43
|
+
"@nx/eslint": "19.6.0-beta.1",
|
|
44
|
+
"@nx/react": "19.6.0-beta.1",
|
|
45
|
+
"@nx/workspace": "19.6.0-beta.1",
|
|
46
|
+
"@nrwl/react-native": "19.6.0-beta.1"
|
|
47
47
|
},
|
|
48
48
|
"executors": "./executors.json",
|
|
49
49
|
"ng-update": {
|
package/plugins/plugin.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface ReactNativePluginOptions {
|
|
|
8
8
|
buildAndroidTargetName?: string;
|
|
9
9
|
bundleTargetName?: string;
|
|
10
10
|
syncDepsTargetName?: string;
|
|
11
|
-
|
|
11
|
+
upgradeTargetName?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const createDependencies: CreateDependencies;
|
|
14
14
|
export declare const createNodes: CreateNodes<ReactNativePluginOptions>;
|
package/plugins/plugin.js
CHANGED
|
@@ -97,7 +97,7 @@ function buildReactNativeTargets(projectRoot, options, context) {
|
|
|
97
97
|
[options.syncDepsTargetName]: {
|
|
98
98
|
executor: '@nx/react-native:sync-deps',
|
|
99
99
|
},
|
|
100
|
-
[options.
|
|
100
|
+
[options.upgradeTargetName]: {
|
|
101
101
|
command: `react-native upgrade`,
|
|
102
102
|
options: { cwd: projectRoot },
|
|
103
103
|
},
|
|
@@ -136,6 +136,6 @@ function normalizeOptions(options) {
|
|
|
136
136
|
options.buildAndroidTargetName ??= 'build-android';
|
|
137
137
|
options.bundleTargetName ??= 'bundle';
|
|
138
138
|
options.syncDepsTargetName ??= 'sync-deps';
|
|
139
|
-
options.
|
|
139
|
+
options.upgradeTargetName ??= 'upgrade';
|
|
140
140
|
return options;
|
|
141
141
|
}
|
|
@@ -37,7 +37,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
|
|
|
37
37
|
if (!options.skipPackageJson) {
|
|
38
38
|
tasks.push((0, ensure_dependencies_1.ensureDependencies)(host));
|
|
39
39
|
}
|
|
40
|
-
(0, create_application_files_1.createApplicationFiles)(host, options);
|
|
40
|
+
await (0, create_application_files_1.createApplicationFiles)(host, options);
|
|
41
41
|
(0, add_project_1.addProject)(host, options);
|
|
42
42
|
const lintTask = await (0, add_linting_1.addLinting)(host, {
|
|
43
43
|
...options,
|