EightMedia / styleguide.js

Generate a styleguide from your CSS, by adding YAML data
193 stars 8 forks source link

Add fileOrder for sortBy option #13

Closed manufaktor closed 9 years ago

manufaktor commented 9 years ago

This way the order will be "as is" in your CSS.

Aratramba commented 9 years ago

Haven't yet tested this but at first sight I see no changes to any template where I think there should be. This way source.fileOrder isn't actually used, right?

manufaktor commented 9 years ago

It's supposed to be used in the sortBy option, like any other yaml attribute. Isn't this the correct way?

Aratramba commented 9 years ago

I see, you're absolutely right, this is the correct way. I'm adding tests for the (previously undocumented) sortBy now.

Aratramba commented 9 years ago

just curious, in what situation would you want to use the fileorder for your styleguide?

manufaktor commented 9 years ago

We write Sass modules and import them in a certain order. The end product is then processed with styleguide.js. This way we don't need to have an explicit order attribute in the Yaml, which would get time-consuming to maintain.

Aratramba commented 9 years ago

ah ok. Published it to npm, so you should be good to go.

manufaktor commented 9 years ago

thx!