113 lines
3.1 KiB
JavaScript
113 lines
3.1 KiB
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true,
|
|
});
|
|
exports.default = void 0;
|
|
var _path = _interopRequireDefault(require("path"));
|
|
var _runServer = _interopRequireDefault(require("./runServer"));
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
}
|
|
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
const startCommand = {
|
|
name: "start",
|
|
func: _runServer.default,
|
|
description: "Start the React Native development server.",
|
|
options: [
|
|
{
|
|
name: "--port <number>",
|
|
parse: Number,
|
|
},
|
|
{
|
|
name: "--host <string>",
|
|
default: "",
|
|
},
|
|
{
|
|
name: "--projectRoot <path>",
|
|
description: "Path to a custom project root",
|
|
parse: (val) => _path.default.resolve(val),
|
|
},
|
|
{
|
|
name: "--watchFolders <list>",
|
|
description:
|
|
"Specify any additional folders to be added to the watch list",
|
|
parse: (val) =>
|
|
val.split(",").map((folder) => _path.default.resolve(folder)),
|
|
},
|
|
{
|
|
name: "--assetPlugins <list>",
|
|
description:
|
|
"Specify any additional asset plugins to be used by the packager by full filepath",
|
|
parse: (val) => val.split(","),
|
|
},
|
|
{
|
|
name: "--sourceExts <list>",
|
|
description:
|
|
"Specify any additional source extensions to be used by the packager",
|
|
parse: (val) => val.split(","),
|
|
},
|
|
{
|
|
name: "--max-workers <number>",
|
|
description:
|
|
"Specifies the maximum number of workers the worker-pool " +
|
|
"will spawn for transforming files. This defaults to the number of the " +
|
|
"cores available on your machine.",
|
|
parse: (workers) => Number(workers),
|
|
},
|
|
{
|
|
name: "--transformer <string>",
|
|
description: "Specify a custom transformer to be used",
|
|
},
|
|
{
|
|
name: "--reset-cache, --resetCache",
|
|
description: "Removes cached files",
|
|
},
|
|
{
|
|
name: "--custom-log-reporter-path, --customLogReporterPath <string>",
|
|
description:
|
|
"Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter",
|
|
},
|
|
{
|
|
name: "--https",
|
|
description: "Enables https connections to the server",
|
|
},
|
|
{
|
|
name: "--key <path>",
|
|
description: "Path to custom SSL key",
|
|
},
|
|
{
|
|
name: "--cert <path>",
|
|
description: "Path to custom SSL cert",
|
|
},
|
|
{
|
|
name: "--config <string>",
|
|
description: "Path to the CLI configuration file",
|
|
parse: (val) => _path.default.resolve(val),
|
|
},
|
|
{
|
|
name: "--no-interactive",
|
|
description: "Disables interactive mode",
|
|
},
|
|
{
|
|
name: "--experimental-debugger",
|
|
description:
|
|
"[Experimental] Enable the new debugger experience and 'j' to " +
|
|
"debug. This enables the new frontend experience only: connection " +
|
|
"reliability and some basic features are unstable in this release.",
|
|
},
|
|
],
|
|
};
|
|
var _default = startCommand;
|
|
exports.default = _default;
|