You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using index.json content within some locally-generated JSON files. The index.json content is combined with various other component data (such as args for each story, list of component-owned files, etc). We use this data to create component-data.json files for each component. These files are then imported by other systems to build data tables and whatnot.
One issue we run into is when other parts of our app need component-data.json and it's not generated, then we need to do a whole build-storyboook...and building storybook requires a bunch of other repo stuff to be built (because it's a big app)
questions:
Is there a way to generate index.json, without building storybook?
If so, is there a way to include each story's args in the generated index.json? (our current solution is to open each stories file and extract the args)
Is what I'm asking here the purpose of a custom indexer?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hi team,
We're using
index.json
content within some locally-generated JSON files. Theindex.json
content is combined with various other component data (such asargs
for each story, list of component-owned files, etc). We use this data to create component-data.json files for each component. These files are then imported by other systems to build data tables and whatnot.One issue we run into is when other parts of our app need component-data.json and it's not generated, then we need to do a whole
build-storyboook
...and building storybook requires a bunch of other repo stuff to be built (because it's a big app)questions:
args
in the generated index.json? (our current solution is to open each stories file and extract the args)indexer
?thanks for any help, Scott
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions