Deploy Core Components Storybook
nathanstilwell opened this issue · comments
The Core Components Catalog is currently build using Storybook which can be built into a static site which make is quite versatile to be hosted in any number of places.
Given our current infrastructure, I believe the best place to host would be in GCP. Maybe a Cloud Storage Bucket? There will most likely be some investigation and recommendation involved in this task.
Once a suitable place has been provisioned, we will need a build process to checkout, build, and deploy the static site.
Generating static storybook
Assuming a version of Node.js is installed. (We recommend version 12 or higher)
1. Clone this repository
> git clone git@github.com:cockroachdb/ui.git
2. Install Dependencies
> npx lerna bootstrap
3. Build static storybook
> cd /path/to/ui-repo/packages/storybook-ui-components;
> npm run build;
The static site should now be located in a /public
directory.