Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@react-native/community-cli-plugin
Advanced tools
Core CLI commands for React Native
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.
start
Start the React Native development server.
npx react-native start [options]
Option | Description |
---|---|
--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-cache | Remove cached files. |
--custom-log-reporter-path <string> | Specify a module path exporting a replacement for TerminalReporter . |
--https | Enable 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-interactive | Disable interactive mode. |
bundle
Build the bundle for the provided JavaScript entry file.
npx react-native bundle --entry-file <path> [options]
Option | Description |
---|---|
--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). |
--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-path | Report 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-cache | Remove cached files. |
--read-global-cache | Attempt to fetch transformed JS code from the global cache, if configured. Defaults to false . |
--config <string> | Path to the CLI configuration file. |
ram-bundle
Build the RAM bundle for the provided JavaScript entry file.
npx react-native ram-bundle --entry-file <path> [options]
Accepts all options supported by bundle
and the following:
Option | Description |
---|---|
--indexed-ram-bundle | Force the "Indexed RAM" bundle file format, even when building for Android. |
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.
FAQs
Core CLI commands for React Native
The npm package @react-native/community-cli-plugin receives a total of 954,839 weekly downloads. As such, @react-native/community-cli-plugin popularity was classified as popular.
We found that @react-native/community-cli-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.