Skip to content

Commit

Permalink
feat(react-native): upgrade react native to 0.73 (nrwl#20896)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Jan 31, 2024
1 parent d43d536 commit 65e86ea
Show file tree
Hide file tree
Showing 221 changed files with 3,684 additions and 3,423 deletions.
24 changes: 24 additions & 0 deletions docs/generated/manifests/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -7531,6 +7531,14 @@
"children": [],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "serve",
"path": "/nx-api/expo/executors/serve",
"name": "serve",
"children": [],
"isExternal": false,
"disableCollapsible": false
}
],
"isExternal": false,
Expand Down Expand Up @@ -9007,6 +9015,14 @@
"children": [],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "upgrade",
"path": "/nx-api/react-native/executors/upgrade",
"name": "upgrade",
"children": [],
"isExternal": false,
"disableCollapsible": false
}
],
"isExternal": false,
Expand Down Expand Up @@ -9080,6 +9096,14 @@
"children": [],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "web-configuration",
"path": "/nx-api/react-native/generators/web-configuration",
"name": "web-configuration",
"children": [],
"isExternal": false,
"disableCollapsible": false
}
],
"isExternal": false,
Expand Down
35 changes: 31 additions & 4 deletions docs/generated/manifests/nx-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,15 @@
"originalFilePath": "/packages/expo/src/executors/submit/schema.json",
"path": "/nx-api/expo/executors/submit",
"type": "executor"
},
"/nx-api/expo/executors/serve": {
"description": "Serve up the Expo web app locally",
"file": "generated/packages/expo/executors/serve.json",
"hidden": false,
"name": "serve",
"originalFilePath": "/packages/expo/src/executors/serve/schema.json",
"path": "/nx-api/expo/executors/serve",
"type": "executor"
}
},
"generators": {
Expand Down Expand Up @@ -2365,11 +2374,20 @@
"originalFilePath": "/packages/react-native/src/executors/pod-install/schema.json",
"path": "/nx-api/react-native/executors/pod-install",
"type": "executor"
},
"/nx-api/react-native/executors/upgrade": {
"description": "upgrade executor",
"file": "generated/packages/react-native/executors/upgrade.json",
"hidden": false,
"name": "upgrade",
"originalFilePath": "/packages/react-native/src/executors/upgrade/schema.json",
"path": "/nx-api/react-native/executors/upgrade",
"type": "executor"
}
},
"generators": {
"/nx-api/react-native/generators/init": {
"description": "Initialize the `@nrwl/react-native` plugin.",
"description": "Initialize the `@nx/react-native` plugin.",
"file": "generated/packages/react-native/generators/init.json",
"hidden": true,
"name": "init",
Expand Down Expand Up @@ -2405,7 +2423,7 @@
"type": "generator"
},
"/nx-api/react-native/generators/storybook-configuration": {
"description": "Set up Storybook for a React-native application or library.",
"description": "Set up Storybook for a React Native application or library.",
"file": "generated/packages/react-native/generators/storybook-configuration.json",
"hidden": false,
"name": "storybook-configuration",
Expand All @@ -2414,7 +2432,7 @@
"type": "generator"
},
"/nx-api/react-native/generators/component-story": {
"description": "Generate Storybook story for a React-native component.",
"description": "Generate Storybook story for a React Native component.",
"file": "generated/packages/react-native/generators/component-story.json",
"hidden": false,
"name": "component-story",
Expand All @@ -2423,7 +2441,7 @@
"type": "generator"
},
"/nx-api/react-native/generators/stories": {
"description": "Create stories/specs for all components declared in an application or library.",
"description": "Create stories for all components declared in an application or library.",
"file": "generated/packages/react-native/generators/stories.json",
"hidden": false,
"name": "stories",
Expand All @@ -2439,6 +2457,15 @@
"originalFilePath": "/packages/react-native/src/generators/upgrade-native/schema.json",
"path": "/nx-api/react-native/generators/upgrade-native",
"type": "generator"
},
"/nx-api/react-native/generators/web-configuration": {
"description": "Set up web configuration for a React Native app",
"file": "generated/packages/react-native/generators/web-configuration.json",
"hidden": false,
"name": "web-configuration",
"originalFilePath": "/packages/react-native/src/generators/web-configuration/schema.json",
"path": "/nx-api/react-native/generators/web-configuration",
"type": "generator"
}
},
"path": "/nx-api/react-native"
Expand Down
35 changes: 31 additions & 4 deletions docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,15 @@
"originalFilePath": "/packages/expo/src/executors/submit/schema.json",
"path": "expo/executors/submit",
"type": "executor"
},
{
"description": "Serve up the Expo web app locally",
"file": "generated/packages/expo/executors/serve.json",
"hidden": false,
"name": "serve",
"originalFilePath": "/packages/expo/src/executors/serve/schema.json",
"path": "expo/executors/serve",
"type": "executor"
}
],
"generators": [
Expand Down Expand Up @@ -2339,11 +2348,20 @@
"originalFilePath": "/packages/react-native/src/executors/pod-install/schema.json",
"path": "react-native/executors/pod-install",
"type": "executor"
},
{
"description": "upgrade executor",
"file": "generated/packages/react-native/executors/upgrade.json",
"hidden": false,
"name": "upgrade",
"originalFilePath": "/packages/react-native/src/executors/upgrade/schema.json",
"path": "react-native/executors/upgrade",
"type": "executor"
}
],
"generators": [
{
"description": "Initialize the `@nrwl/react-native` plugin.",
"description": "Initialize the `@nx/react-native` plugin.",
"file": "generated/packages/react-native/generators/init.json",
"hidden": true,
"name": "init",
Expand Down Expand Up @@ -2379,7 +2397,7 @@
"type": "generator"
},
{
"description": "Set up Storybook for a React-native application or library.",
"description": "Set up Storybook for a React Native application or library.",
"file": "generated/packages/react-native/generators/storybook-configuration.json",
"hidden": false,
"name": "storybook-configuration",
Expand All @@ -2388,7 +2406,7 @@
"type": "generator"
},
{
"description": "Generate Storybook story for a React-native component.",
"description": "Generate Storybook story for a React Native component.",
"file": "generated/packages/react-native/generators/component-story.json",
"hidden": false,
"name": "component-story",
Expand All @@ -2397,7 +2415,7 @@
"type": "generator"
},
{
"description": "Create stories/specs for all components declared in an application or library.",
"description": "Create stories for all components declared in an application or library.",
"file": "generated/packages/react-native/generators/stories.json",
"hidden": false,
"name": "stories",
Expand All @@ -2413,6 +2431,15 @@
"originalFilePath": "/packages/react-native/src/generators/upgrade-native/schema.json",
"path": "react-native/generators/upgrade-native",
"type": "generator"
},
{
"description": "Set up web configuration for a React Native app",
"file": "generated/packages/react-native/generators/web-configuration.json",
"hidden": false,
"name": "web-configuration",
"originalFilePath": "/packages/react-native/src/generators/web-configuration/schema.json",
"path": "react-native/generators/web-configuration",
"type": "generator"
}
],
"githubRoot": "https://github.com/nrwl/nx/blob/master",
Expand Down
22 changes: 10 additions & 12 deletions docs/generated/packages/expo/executors/export.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,38 @@
"platform": {
"description": "Choose the platform to compile for",
"enum": ["ios", "android", "all", "web"],
"default": "all",
"alias": "p",
"x-priority": "important"
},
"dev": {
"type": "boolean",
"description": "Bundle for development environments without minifying code or stripping the __DEV__ boolean. Configure static files for developing locally using a non-https server."
"description": "Configure static files for developing locally using a non-https server"
},
"clear": {
"type": "boolean",
"description": "Clear the bundler cache before exporting"
},
"minify": { "type": "boolean", "description": "Minify source" },
"outputDir": {
"type": "string",
"description": "The directory to export the static files to. Default: dist"
"description": "Relative to workspace root, the directory to export the static files to. Default: dist"
},
"maxWorkers": {
"type": "number",
"description": "Maximum number of tasks to allow Metro to spawn"
"description": "When bundler is metro, the maximum number of tasks to allow the bundler to spawn"
},
"dumpAssetmap": {
"type": "boolean",
"description": "Dump the asset map for further processing"
"description": "When bundler is metro, whether to dump the asset map for further processing"
},
"dumpSourcemap": {
"sourceMaps": {
"type": "boolean",
"description": "Dump the source map for debugging the JS bundle"
},
"bundler": {
"enum": ["metro", "webpack"],
"description": "Choose the bundler to compile for",
"default": "metro"
"description": "When bundler is metro, whether to emit JavaScript source maps"
}
},
"required": [],
"required": ["platform"],
"examplesFile": "`project.json`:\n\n```json\n{\n \"name\": \"mobile\",\n //...\n \"targets\": {\n //...\n \"export\": {\n \"executor\": \"@nx/expo:export\",\n \"options\": {\n \"outputs\": [\"{options.outputDir}\"],\n \"platform\": \"all\",\n \"outputDir\": \"dist/apps/mobile\"\n },\n \"dependsOn\": [\"sync-deps\"]\n }\n //...\n }\n}\n```\n\n```shell\nnx run mobile:export\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Specify outputDir\" %}\nThe `outputDir` option allows you to specify the output directory of your bundle:\n\n```json\n \"export\": {\n \"executor\": \"@nx/expo:export\",\n \"outputs\": [\"{options.outputDir}\"],\n \"options\": {\n \"platform\": \"all\",\n \"bundler\": \"metro\",\n \"outputDir\": \"dist/apps/mobile\"\n },\n \"dependsOn\": [\"sync-deps\"]\n },\n```\n\nor run command: `nx run mobile:export --outputDir=dist/apps/mobile`.\n\n{% /tab %}\n{% tab label=\"Specify the platform\" %}\nThe `platform` option allows you to specify the platform to compile with metro bundler: \"ios\", \"android\", \"all\", and \"web\".\n\nFor example, to bundle for web:\n\n```json\n \"export\": {\n \"executor\": \"@nx/expo:export\",\n \"outputs\": [\"{options.outputDir}\"],\n \"options\": {\n \"platform\": \"web\",\n \"bundler\": \"metro\",\n \"outputDir\": \"dist/apps/dogs\"\n },\n \"dependsOn\": [\"sync-deps\"]\n },\n```\n\nor run command `nx export mobile --platform=web`.\n\n{% /tab %}\n{% tab label=\"Bundle for development\" %}\n\nThe `dev` option allows you to bundle for development environments.\n\n```json\n \"export\": {\n \"executor\": \"@nx/expo:export\",\n \"outputs\": [\"{options.outputDir}\"],\n \"options\": {\n \"platform\": \"web\",\n \"bundler\": \"metro\",\n \"outputDir\": \"dist/apps/dogs\",\n \"dev\": true\n },\n \"dependsOn\": [\"sync-deps\"]\n },\n```\n\nor run command `nx export mobile --dev`.\n\n{% /tab %}\n{% tab label=\"Clear bundle cache\" %}\n\nThe `clear` option allows you to clear bundle cache.\n\n```json\n \"export\": {\n \"executor\": \"@nx/expo:export\",\n \"outputs\": [\"{options.outputDir}\"],\n \"options\": {\n \"platform\": \"web\",\n \"bundler\": \"metro\",\n \"outputDir\": \"dist/apps/dogs\",\n \"clear\": true\n },\n \"dependsOn\": [\"sync-deps\"]\n },\n```\n\nor run command `nx export mobile --clear`.\n\n{% /tab %}\n{% /tabs %}\n",
"presets": []
},
"description": "Export the JavaScript and assets for your app using Metro/webpack bundler",
Expand Down
1 change: 1 addition & 0 deletions docs/generated/packages/expo/executors/prebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"description": "Project template to clone from. File path pointing to a local tar file or a github repo"
}
},
"required": ["platform"],
"examplesFile": "The `prebuild` command generates native code before a native app can compile.\n\n`project.json`:\n\n```json\n{\n \"name\": \"mobile\",\n //...\n \"targets\": {\n //...\n \"prebuild\": {\n \"executor\": \"@nx/expo:prebuild\",\n \"options\": {}\n }\n //...\n }\n}\n```\n\n```shell\nnx run mobile:prebuild\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Generate Native Code for Different Platforms\" %}\nThe `platform` option allows you to specify the platform to generate native code for (e.g. android, ios, all).\n\n```json\n \"prebuild\": {\n \"executor\": \"@nx/expo:prebuild\",\n \"options\": {\n \"platform\": \"android\"\n }\n }\n```\n\n{% /tab %}\n{% tab label=\"Regenerate Native Code\" %}\n\nThe `clean` option allows you to delete the native folders and regenerate them before apply changes.\n\n```json\n \"prebuild\": {\n \"executor\": \"@nx/expo:prebuild\",\n \"options\": {\n \"clean\": true\n }\n }\n```\n\n{% /tab %}\n{% tab label=\"Install NPM Packages and CocoaPods\" %}\n\nThe `install` option allows you to install NPM Packages and CocoaPods.\n\n```json\n \"prebuild\": {\n \"executor\": \"@nx/expo:prebuild\",\n \"options\": {\n \"install\": true\n }\n }\n```\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
"presets": []
},
Expand Down
45 changes: 45 additions & 0 deletions docs/generated/packages/expo/executors/serve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "serve",
"implementation": "/packages/expo/src/executors/serve/serve.impl.ts",
"schema": {
"version": 2,
"outputCapture": "direct-nodejs",
"cli": "nx",
"$id": "NxExpoServe",
"$schema": "http://json-schema.org/schema",
"title": "Serve web app for Expo",
"description": "Packager Server target options.",
"type": "object",
"properties": {
"port": {
"type": "number",
"description": "Port to start the native Metro bundler on (does not apply to web or tunnel)",
"default": 19000,
"alias": "p"
},
"clear": {
"type": "boolean",
"description": "Clear the Metro bundler cache",
"alias": "c"
},
"maxWorkers": {
"type": "number",
"description": "Maximum number of tasks to allow Metro to spawn"
},
"dev": {
"type": "boolean",
"description": "Turn development mode on or off"
},
"minify": {
"type": "boolean",
"description": "Whether or not to minify code"
}
},
"presets": []
},
"description": "Serve up the Expo web app locally",
"aliases": [],
"hidden": false,
"path": "/packages/expo/src/executors/serve/schema.json",
"type": "executor"
}
2 changes: 1 addition & 1 deletion docs/generated/packages/expo/executors/start.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"description": "Allows this command to run while offline"
}
},
"examplesFile": "`project.json`:\n\n```json\n{\n \"name\": \"mobile\",\n //...\n \"targets\": {\n //...\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081\n }\n }\n //...\n }\n}\n```\n\n```shell\nnx run mobile:start\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Specify starting on platform\" %}\nThe `ios`, `android` and `web` option allows you to start the server on different platforms.\n\nOpens your app in Expo Go in a currently running iOS simulator on your computer:\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"ios\": true\n }\n }\n```\n\nOpens your app in Expo Go on a connected Android device\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"android\": true\n }\n }\n```\n\nOpens your app in a web browser:\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"web\": true\n }\n }\n```\n\n{% /tab %}\n{% tab label=\"Specify the host\" %}\nThe `host` option allows you to specify the type of host to use. `lan` uses the local network; `tunnel` ues any network by tunnel through ngrok; `localhost` connects to the dev server over localhost.\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"host\": \"localhost\"\n }\n }\n```\n\n{% /tab %}\n{% tab label=\"Starts the server with cache reset\" %}\n\nThe `clear` option allows you to remove Metro bundler cache.\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"clear\": true\n }\n }\n```\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
"examplesFile": "`project.json`:\n\n```json\n{\n \"name\": \"mobile\",\n //...\n \"targets\": {\n //...\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081\n }\n }\n //...\n }\n}\n```\n\n```shell\nnx run mobile:start\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Specify starting on platform\" %}\nThe `ios`, `android` and `web` option allows you to start the server on different platforms.\n\nOpens your app in Expo Go in a currently running iOS simulator on your computer:\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"ios\": true\n }\n }\n```\n\nor run command `nx start <your app name> --ios`.\n\nOpens your app in Expo Go on a connected Android device\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"android\": true\n }\n }\n```\n\nor run command `nx start <your app name> --android`.\n\nOpens your app in a web browser:\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"web\": true\n }\n }\n```\n\nor run command `nx start <your app name> --web`.\n\n{% /tab %}\n{% tab label=\"Specify the host\" %}\nThe `host` option allows you to specify the type of host to use. `lan` uses the local network; `tunnel` ues any network by tunnel through ngrok; `localhost` connects to the dev server over localhost.\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"host\": \"localhost\"\n }\n }\n```\n\n{% /tab %}\n{% tab label=\"Starts the server with cache reset\" %}\n\nThe `clear` option allows you to remove Metro bundler cache.\n\n```json\n \"start\": {\n \"executor\": \"@nx/expo:start\",\n \"options\": {\n \"port\": 8081,\n \"clear\": true\n }\n }\n```\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
"presets": []
},
"description": "Start a local dev server for the app or start a Webpack dev server for the web app",
Expand Down
Loading

0 comments on commit 65e86ea

Please sign in to comment.