{"version":3,"names":["name","func","runServer","description","options","parse","Number","default","val","path","resolve","split","map","folder","workers"],"sources":["../../../src/commands/start/index.ts"],"sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport path from 'path';\nimport runServer from './runServer';\n\nexport default {\n name: 'start',\n func: runServer,\n description: 'starts the webserver',\n options: [\n {\n name: '--port ',\n parse: Number,\n },\n {\n name: '--host ',\n default: '',\n },\n {\n name: '--projectRoot ',\n description: 'Path to a custom project root',\n parse: (val: string) => path.resolve(val),\n },\n {\n name: '--watchFolders ',\n description:\n 'Specify any additional folders to be added to the watch list',\n parse: (val: string) =>\n val.split(',').map((folder: string) => path.resolve(folder)),\n },\n {\n name: '--assetPlugins ',\n description:\n 'Specify any additional asset plugins to be used by the packager by full filepath',\n parse: (val: string) => val.split(','),\n },\n {\n name: '--sourceExts ',\n description:\n 'Specify any additional source extensions to be used by the packager',\n parse: (val: string) => val.split(','),\n },\n {\n name: '--max-workers ',\n description:\n 'Specifies the maximum number of workers the worker-pool ' +\n 'will spawn for transforming files. This defaults to the number of the ' +\n 'cores available on your machine.',\n parse: (workers: string) => Number(workers),\n },\n {\n name: '--transformer ',\n description: 'Specify a custom transformer to be used',\n },\n {\n name: '--reset-cache, --resetCache',\n description: 'Removes cached files',\n },\n {\n name: '--custom-log-reporter-path, --customLogReporterPath ',\n description:\n 'Path to a JavaScript file that exports a log reporter as a replacement for TerminalReporter',\n },\n {\n name: '--https',\n description: 'Enables https connections to the server',\n },\n {\n name: '--key ',\n description: 'Path to custom SSL key',\n },\n {\n name: '--cert ',\n description: 'Path to custom SSL cert',\n },\n {\n name: '--config ',\n description: 'Path to the CLI configuration file',\n parse: (val: string) => path.resolve(val),\n },\n {\n name: '--no-interactive',\n description: 'Disables interactive mode',\n },\n ],\n};\n"],"mappings":";;;;;;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;A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