agilesix / AgileSix.com

Agile Six works with government agencies to create customized digital solutions that meet the needs of their users, both staff and citizens.
https://agile6.com
MIT License
5 stars 1 forks source link

Storybook Integration: resolves #24 #27

Open DanielMiller-agile6 opened 4 years ago

DanielMiller-agile6 commented 4 years ago

Integrated Storybook so we can experiment and discuss how we might use it for maintenance, design, and development tasks. I only wrote stories for existing reusable components (files under /src/components), along with an additional one to document the site's color palette.

I also removed the package-lock.json file since this isn't used with yarn and can lead to errors for developers and builds. The yarn.lock file has been updated to account for new storybook dependencies.

This PR doesn't change any public-facing site content.

Screen Shot 2020-03-27 at 10 21 26 AM

Resolves #24

netlify[bot] commented 4 years ago

Deploy preview for agile6 ready!

Built with commit 8abb810bcb7ac39a8efb9dcee0257c46f3bc9c5f

https://deploy-preview-27--agile6.netlify.com

netlify[bot] commented 4 years ago

Deploy preview for agile6 ready!

Built with commit 0461b910c74f7fc69d6d803f52099b7a6f96de6e

https://deploy-preview-27--agile6.netlify.com

ElijahLynn commented 4 years ago

Is this something we can route to /storybook?

DanielMiller-agile6 commented 4 years ago

@ElijahLynn That should be possible. You mean as a github-pages site or a route on agile6.com? I still need to work out some scripts for static builds, but it's mostly working i think... I can work on that in a follow up PR. The main gotcha here is how Gatsby compiles static GQL queries separately from storybook build scripts, so in order to publish storybook as a static site, we also need to build the Gatsby site first so that assets from /public are available.

ElijahLynn commented 4 years ago

@ElijahLynn That should be possible. You mean as a github-pages site or a route on agile6.com? I still need to work out some scripts for static builds, but it's mostly working i think... I'll can work on that in a follow up PR. The main gotcha here is how Gatsby compiles static GQL queries separately from storybook build scripts, so in order to publish storybook as a static site, we also need to build the Gatsby site first so that assets from /public are available.

Yeah, I mean as a GJS route. I'll play with this locally soon. Thanks.