Extend @rushstack/heft-storybook-plugin to allow passing of Storybook flag --docs.
Need to run and build Storybook in "documentation mode" which requires passing Storybook's --docs flag.
Nice to have:
Able to pass other Storybook flags, but --docs is the main one.
Possible Solution
Could be something like this to extend the schema.
"cliOptionsBuild": {
"title": "Additional cli options to run when building",
"description": "Add Storybook flags here to customize your build command. Example. --config-dir config/.storybook",
"type": "string"
},
"cliOptionsServe": {
"title": "Additional cli options to run when serving",
"description": "Add Storybook flags here to customize your serve command. Example. --docs --config-dir config/.storybook",
"type": "string"
}
Sounds like a useful feature. Instead of splitting by spaces, you should be able to say the cliOptionsBuild and cliOptionsServe options are string arrays.
Summary
Extend @rushstack/heft-storybook-plugin to allow passing of Storybook flag
--docs
.Need to run and build Storybook in "documentation mode" which requires passing Storybook's
--docs
flag.Nice to have: Able to pass other Storybook flags, but
--docs
is the main one.Possible Solution
Could be something like this to extend the schema.
Standard questions
@rushstack/heft
version?node -v
)?@rushstack/heft-storybook-plugin
version?