0.76.1 • Published 7 months ago

@react-native/community-cli-plugin v0.76.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@react-native/community-cli-plugin

This is an internal dependency of React Native. Please don't depend on it directly.

CLI entry points supporting core React Native development features.

Formerly @react-native-community/cli-plugin-metro.

Commands

start

Start the React Native development server.

Usage

npx react-native start [options]

Options

OptionDescription
--port <number>Set the server port.
--host <string>Set the server host.
--projectRoot <path>Set the path to the project root.
--watchFolders <list>Specify additional folders to be added to the watch list.
--assetPlugins <list>Specify additional asset plugins.
--sourceExts <list>Specify additional source extensions to bundle.
--max-workers <number>Set the maximum number of workers the worker-pool will spawn for transforming files. Defaults to the number of the cores available on your machine.
--transformer <string>Specify a custom transformer.
--reset-cacheRemove cached files.
--custom-log-reporter-path <string>Specify a module path exporting a replacement for TerminalReporter.
--httpsEnable HTTPS connections.
--key <path>Specify path to a custom SSL key.
--cert <path>Specify path to a custom SSL cert.
--config <string>Path to the CLI configuration file.
--no-interactiveDisable interactive mode.

bundle

Build the bundle for the provided JavaScript entry file.

Usage

npx react-native bundle --entry-file <path> [options]

Options

OptionDescription
--entry-file <path>Set the path to the root JavaScript entry file.
--platform <string>Set the target platform (either "android" or "ios"). Defaults to "ios".
--transformer <string>Specify a custom transformer.
--dev [boolean]If false, warnings are disabled and the bundle is minified. Defaults to true.
--minify [boolean]Allows overriding whether bundle is minified. Defaults to false if --dev is set. Disabling minification can be useful for speeding up production builds for testing purposes.
--bundle-output <string>Specify the path to store the resulting bundle.
--bundle-encoding <string>Specify the encoding for writing the bundle (https://nodejs.org/api/buffer.html#buffer_buffer).
--resolver-option <string...>Custom resolver options of the form key=value. URL-encoded. May be specified multiple times.
--sourcemap-output <string>Specify the path to store the source map file for the resulting bundle.
--sourcemap-sources-root <string>Set the root path for source map entries.
--sourcemap-use-absolute-pathReport SourceMapURL using its full path.
--max-workers <number>Set the maximum number of workers the worker-pool will spawn for transforming files. Defaults to the number of the cores available on your machine.
--assets-dest <string>Specify the directory path for storing assets referenced in the bundle.
--reset-cacheRemove cached files.
--read-global-cacheAttempt to fetch transformed JS code from the global cache, if configured. Defaults to false.
--config <string>Path to the CLI configuration file.

Contributing

Changes to this package can be made locally and tested against the rn-tester app, per the Contributing guide. During development, this package is automatically run from source with no build step.

0.76.1

8 months ago

0.76.0

8 months ago

0.76.0-rc.6

8 months ago

0.76.0-rc.5

8 months ago

0.76.0-rc.3

9 months ago

0.76.0-rc.4

8 months ago

0.74.88

8 months ago

0.75.4

8 months ago

0.76.0-rc.2

9 months ago

0.76.0-rc.1

9 months ago

0.76.0-rc.0

9 months ago

0.75.3

9 months ago

0.73.18

11 months ago

0.74.87

10 months ago

0.74.85

12 months ago

0.74.86

11 months ago

0.75.2

10 months ago

0.74.84

1 year ago

0.75.1

10 months ago

0.75.0

10 months ago

0.75.0-rc.1

12 months ago

0.75.0-rc.0

12 months ago

0.75.0-rc.5

11 months ago

0.75.0-rc.4

11 months ago

0.75.0-rc.3

12 months ago

0.75.0-rc.2

12 months ago

0.75.0-rc.7

10 months ago

0.75.0-rc.6

11 months ago

0.74.83

1 year ago

0.74.82

1 year ago

0.74.81

1 year ago

0.74.80

1 year ago

0.74.79

1 year ago

0.74.78

1 year ago

0.74.77

1 year ago

0.74.76

1 year ago

0.74.75

1 year ago

0.75.0-main

1 year ago

0.74.5

1 year ago

0.74.4

1 year ago

0.74.2

1 year ago

0.74.1

1 year ago

0.73.17

1 year ago

0.73.16

1 year ago

0.73.15

1 year ago

0.73.14

1 year ago

0.73.13

1 year ago

0.73.12

1 year ago

0.73.11

1 year ago

0.73.10

2 years ago

0.73.9

2 years ago

0.73.8

2 years ago

0.73.7

2 years ago

0.74.0

2 years ago

0.73.6

2 years ago

0.73.5

2 years ago

0.73.4

2 years ago

0.73.3

2 years ago

0.73.2

2 years ago

0.73.0

2 years ago