feat(react-native): update executor and schema files for expo and react-native to be continuous (#30985)

WIP

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
This commit is contained in:
Nicholas Cunningham 2025-05-01 16:47:35 -06:00 committed by GitHub
parent 157a1f1168
commit f9d461e663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 19 additions and 3 deletions

View File

@ -3,6 +3,7 @@
"implementation": "/packages/expo/src/executors/run/run.impl.ts", "implementation": "/packages/expo/src/executors/run/run.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoRun", "$id": "NxExpoRun",

View File

@ -3,6 +3,7 @@
"implementation": "/packages/expo/src/executors/serve/serve.impl.ts", "implementation": "/packages/expo/src/executors/serve/serve.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoServe", "$id": "NxExpoServe",

View File

@ -3,6 +3,7 @@
"implementation": "/packages/expo/src/executors/start/start.impl.ts", "implementation": "/packages/expo/src/executors/start/start.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoStart", "$id": "NxExpoStart",

View File

@ -3,6 +3,7 @@
"implementation": "/packages/react-native/src/executors/run-android/run-android.impl.ts", "implementation": "/packages/react-native/src/executors/run-android/run-android.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeRunAndroid", "$id": "NxReactNativeRunAndroid",

View File

@ -3,6 +3,7 @@
"implementation": "/packages/react-native/src/executors/run-ios/run-ios.impl.ts", "implementation": "/packages/react-native/src/executors/run-ios/run-ios.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeRunIos", "$id": "NxReactNativeRunIos",

View File

@ -3,6 +3,7 @@
"implementation": "/packages/react-native/src/executors/start/start.impl.ts", "implementation": "/packages/react-native/src/executors/start/start.impl.ts",
"schema": { "schema": {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeStart", "$id": "NxReactNativeStart",

View File

@ -12,11 +12,12 @@ export default async function (globalConfig: Config.ConfigGlobals) {
process.env.NX_VERBOSE_LOGGING === 'true' || !!globalConfig.verbose; process.env.NX_VERBOSE_LOGGING === 'true' || !!globalConfig.verbose;
/** /**
* For e2e-ci we populate the verdaccio storage up front, but for other workflows we need * For e2e-ci & macos-local-e2e we populate the verdaccio storage up front, but for other workflows we need
* to run the full local release process before running tests. * to run the full local release process before running tests.
*/ */
const requiresLocalRelease = const requiresLocalRelease =
!process.env.NX_TASK_TARGET_TARGET?.startsWith('e2e-ci'); !process.env.NX_TASK_TARGET_TARGET?.startsWith('e2e-ci') &&
!process.env.NX_TASK_TARGET_TARGET?.startsWith('e2e-macos-local');
const listenAddress = 'localhost'; const listenAddress = 'localhost';
const port = process.env.NX_LOCAL_REGISTRY_PORT ?? '4873'; const port = process.env.NX_LOCAL_REGISTRY_PORT ?? '4873';

View File

@ -136,7 +136,10 @@
"e2e-macos-local": { "e2e-macos-local": {
"cache": true, "cache": true,
"inputs": ["e2eInputs", "^production"], "inputs": ["e2eInputs", "^production"],
"parallelism": false "dependsOn": [
"@nx/nx-source:populate-local-registry-storage",
"@nx/nx-source:local-registry"
]
}, },
"e2e-macos-ci": { "e2e-macos-ci": {
"inputs": ["e2eInputs", "^production"] "inputs": ["e2eInputs", "^production"]

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoRun", "$id": "NxExpoRun",

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoServe", "$id": "NxExpoServe",

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxExpoStart", "$id": "NxExpoStart",

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeRunAndroid", "$id": "NxReactNativeRunAndroid",

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeRunIos", "$id": "NxReactNativeRunIos",

View File

@ -1,5 +1,6 @@
{ {
"version": 2, "version": 2,
"continuous": true,
"outputCapture": "direct-nodejs", "outputCapture": "direct-nodejs",
"cli": "nx", "cli": "nx",
"$id": "NxReactNativeStart", "$id": "NxReactNativeStart",