--add-storybook
command does not bootstrap a context aware configuration
#31
Labels
bug
Something isn't working
Version
prismic --version
): 3.8.0-beta.0Reproduction
add-storybook
What is expected?
Not sure to what extent it's one of our goals but it'd be truly awesome if Slice Machine was able to output a right Storybook config depending on your libraries requirements.
What is actually happening?
Slice Machine
--add-storybook
command just bootstrap a standard Storybook config, letting the user configure it on its own later on.Any additional information
Well as I said it's a tough one as we cannot guess libraries requirements easily or we can capture user intention with an interactive prompt while running the
--add-storybook command
but then we're still facing a lot of edge cases.For Vue libraries basically:
vue-essential-slices
relies mainly on (links to Storybook configs):sms-hoy
relies on (links to Storybook configs):And the list could go on with future libraries, what if someone makes a Slice Machine library based on Stylus? Vuetify? Bootstrap? Basically any dependencies of a library should be both handled by the framework using it and the Storybook documenting it.
An attempt at solving this issue could be leveraging functions like
getWebpackConfig
for Nuxt.js and similar for Next.js to attempt to merge it with Storybook's one in order for users to configure it only at one place, this will cover most cases but not all, more about it here.The text was updated successfully, but these errors were encountered: