Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support read-only db with build-storybook #417

Merged
merged 2 commits into from
Sep 2, 2016
Merged

Conversation

thani-sh
Copy link
Contributor

@thani-sh thani-sh commented Sep 2, 2016

The @kadira/storybook-database-local package now supports static JSON files as read-only DBs. This is useful when creating static storybooks with the build-storybook script and hosting them on Github pages. This PR updates the static build script to copy the database file when building static storybooks.

@@ -22,6 +22,8 @@ program
.option('-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList)
.option('-o, --output-dir [dir-name]', 'Directory where to store built files')
.option('-c, --config-dir [dir-name]', 'Directory where to load Storybook configurations from')
.option('-d, --db-path [db-file]', 'File where to store addon database JSON file')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be description need to be changed to "where load from" or something similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, updated it. Now it simply says path to db file.

@arunoda
Copy link
Member

arunoda commented Sep 2, 2016

I think this looks great.

@thani-sh thani-sh merged commit 1c159cf into master Sep 2, 2016
@thani-sh thani-sh deleted the support-bundled-db branch September 2, 2016 11:30
@shilman shilman added the misc label May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants