mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 17:31:09 +08:00
Added option for custom packager port
This commit is contained in:
parent
9f7311935e
commit
be88c0b690
2
app/react-native/src/bin/storybook-start.js
vendored
2
app/react-native/src/bin/storybook-start.js
vendored
@ -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(' '),
|
||||
|
Loading…
x
Reference in New Issue
Block a user