Merge pull request #1837 from storybooks/rn-packager-port

Added option for custom packager port
This commit is contained in:
Gytis Vinclovas 2017-09-13 16:28:57 +03:00 committed by GitHub
commit 4a94cc57b8

View File

@ -16,6 +16,7 @@ program
.option('--skip-packager', 'run only storybook server')
.option('-i, --manual-id', 'allow multiple users to work with same storybook')
.option('--smoke-test', 'Exit after successful start')
.option('--packager-port <packagerPort>', 'Custom packager port')
.parse(process.argv);
const projectDir = path.resolve();
@ -69,6 +70,7 @@ if (!program.skipPackager) {
`--projectRoots ${projectRoots.join(',')}`,
`--root ${projectDir}`,
program.resetCache && '--reset-cache',
program.packagerPort && `--port=${program.packagerPort}`,
]
.filter(x => x)
.join(' '),