18F / marigold

An experimental set of reusable components and patterns for making websites and applications at 18F/TTS.
http://federalist.18f.gov.s3-website-us-east-1.amazonaws.com/site/18F/marigold/
Other
10 stars 6 forks source link

Add ability to download individual component assets #25

Closed juliaelman closed 7 years ago

juliaelman commented 7 years ago

Currently the only way to download the assets for a component is by finding a link for each one and then clinking on the ref link for that asset. This can be painful when there are many different types of assets.

Here is some light acceptance criteria:

shawnbot commented 7 years ago

After experimenting with Sass "support" this afternoon, I'm thinking one way that we could handle this is to generate zips (and any other "built" assets, such as CSS from Sass) in fractal.js. I'll create a PR for my USWDS button component today so you can see how this might work.

The one thing that I haven't figured out yet is how to hook into static Fractal builds. So my setup does a full build of any generated assets at startup then watches the directory, but there's nothing in there to "tell" Fractal to wait for our build to complete. It's theoretically possible that fractal build might exit before our parallel builds finish, but I can't really be sure until we get #24 fixed.