@nx/react-native 16.9.0-rc.1 → 16.9.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/package.json +9 -9
- package/project.json +4 -4
- package/src/executors/start/start.impl.js +0 -2
- package/src/executors/start/start.impl.ts +0 -2
- package/src/generators/init/lib/gitignore-entries.d.ts +1 -1
- package/src/generators/init/lib/gitignore-entries.js +2 -2
- package/src/utils/pod-install-task.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "16.9.
|
|
3
|
+
"version": "16.9.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": [
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"node-fetch": "^2.6.7",
|
|
37
37
|
"tsconfig-paths": "^4.1.2",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
|
-
"@nx/detox": "16.9.
|
|
40
|
-
"@nx/devkit": "16.9.
|
|
41
|
-
"@nx/jest": "16.9.
|
|
42
|
-
"@nx/js": "16.9.
|
|
43
|
-
"@nx/linter": "16.9.
|
|
44
|
-
"@nx/react": "16.9.
|
|
45
|
-
"@nx/workspace": "16.9.
|
|
46
|
-
"@nrwl/react-native": "
|
|
39
|
+
"@nx/detox": "16.9.1",
|
|
40
|
+
"@nx/devkit": "16.9.1",
|
|
41
|
+
"@nx/jest": "16.9.1",
|
|
42
|
+
"@nx/js": "16.9.1",
|
|
43
|
+
"@nx/linter": "16.9.1",
|
|
44
|
+
"@nx/react": "16.9.1",
|
|
45
|
+
"@nx/workspace": "16.9.1",
|
|
46
|
+
"@nrwl/react-native": "16.9.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react-native": ">= 0.72.0 < 0.73.0"
|
package/project.json
CHANGED
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"executor": "nx:run-commands",
|
|
45
45
|
"outputs": ["{workspaceRoot}/build/packages/react-native"],
|
|
46
46
|
"options": {
|
|
47
|
-
"
|
|
48
|
-
"node ./scripts/copy-readme.js react-native",
|
|
49
|
-
"node ./scripts/add-dependency-to-build.js react-native @nrwl/react-native"
|
|
50
|
-
]
|
|
47
|
+
"command": "node ./scripts/copy-readme.js react-native"
|
|
51
48
|
}
|
|
49
|
+
},
|
|
50
|
+
"add-extra-dependencies": {
|
|
51
|
+
"command": "node ./scripts/add-dependency-to-build.js react-native @nrwl/react-native"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -4,11 +4,9 @@ exports.runCliStart = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
-
const ensure_node_modules_symlink_1 = require("../../utils/ensure-node-modules-symlink");
|
|
8
7
|
const is_packager_running_1 = require("./lib/is-packager-running");
|
|
9
8
|
async function* startExecutor(options, context) {
|
|
10
9
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
11
|
-
(0, ensure_node_modules_symlink_1.ensureNodeModulesSymlink)(context.root, projectRoot);
|
|
12
10
|
const startProcess = await runCliStart(context.root, projectRoot, options);
|
|
13
11
|
yield {
|
|
14
12
|
port: options.port,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExecutorContext, logger } from '@nx/devkit';
|
|
2
2
|
import { ChildProcess, fork } from 'child_process';
|
|
3
3
|
import { resolve as pathResolve } from 'path';
|
|
4
|
-
import { ensureNodeModulesSymlink } from '../../utils/ensure-node-modules-symlink';
|
|
5
4
|
import { isPackagerRunning } from './lib/is-packager-running';
|
|
6
5
|
import { ReactNativeStartOptions } from './schema';
|
|
7
6
|
|
|
@@ -16,7 +15,6 @@ export default async function* startExecutor(
|
|
|
16
15
|
): AsyncGenerator<ReactNativeStartOutput> {
|
|
17
16
|
const projectRoot =
|
|
18
17
|
context.projectsConfigurations.projects[context.projectName].root;
|
|
19
|
-
ensureNodeModulesSymlink(context.root, projectRoot);
|
|
20
18
|
|
|
21
19
|
const startProcess = await runCliStart(context.root, projectRoot, options);
|
|
22
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const gitIgnoreEntriesForReactNative = "\n# React Native\n\n# OSX\n#\n.DS_Store\n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\nios/.xcode.env.local\n\n# Android/IntelliJ\n#\nbuild/\n.idea\n.gradle\nlocal.properties\n*.iml\n*.hprof\n.cxx/\n*.keystore\n!debug.keystore\n\n# node.js\n#\nnode_modules/\nnpm-debug.log\nyarn-error.log\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the\n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://docs.fastlane.tools/best-practices/source-control/\n\n**/fastlane/report.xml\n**/fastlane/Preview.html\n**/fastlane/screenshots\n**/fastlane/test_output\n\n# Bundle artifact\n*.jsbundle\n\n# Ruby / CocoaPods\n
|
|
1
|
+
export declare const gitIgnoreEntriesForReactNative = "\n# React Native\n\n# OSX\n#\n.DS_Store\n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\nios/.xcode.env.local\n\n# Android/IntelliJ\n#\nbuild/\n.idea\n.gradle\nlocal.properties\n*.iml\n*.hprof\n.cxx/\n*.keystore\n!debug.keystore\n\n# node.js\n#\nnode_modules/\nnpm-debug.log\nyarn-error.log\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the\n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://docs.fastlane.tools/best-practices/source-control/\n\n**/fastlane/report.xml\n**/fastlane/Preview.html\n**/fastlane/screenshots\n**/fastlane/test_output\n\n# Bundle artifact\n*.jsbundle\n\n# Ruby / CocoaPods\n**/ios/Pods/\n**/vendor/bundle/\n\n# Temporary files created by Metro to check the health of the file watcher\n.metro-health-check*\n\n# testing\n/coverage\n";
|
|
@@ -47,6 +47,12 @@ function podInstall(iosDirectory, options = {
|
|
|
47
47
|
deployment: false,
|
|
48
48
|
}) {
|
|
49
49
|
try {
|
|
50
|
+
if ((0, fs_extra_1.existsSync)((0, path_1.join)(iosDirectory, '.xcode.env'))) {
|
|
51
|
+
(0, child_process_1.execSync)('touch .xcode.env', {
|
|
52
|
+
cwd: iosDirectory,
|
|
53
|
+
stdio: 'inherit',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
50
56
|
(0, child_process_1.execSync)(`pod install ${options.repoUpdate ? '--repo-update' : ''} ${options.deployment ? '--deployment' : ''}`, {
|
|
51
57
|
cwd: iosDirectory,
|
|
52
58
|
stdio: 'inherit',
|