componentjs / spec

Component specs
34 stars 4 forks source link

define CSS ordering with dependencies and locals #29

Closed jonathanong closed 10 years ago

jonathanong commented 10 years ago

https://github.com/component/builder.js/issues/109

jonathanong commented 10 years ago

the way the builder works right now is recursively find all the deps in order of 1) dependencies 2) locals 3) component.json scripts, styles, etc. thus, dependencies' files are interleaved between local components' files.

i think dependencies' files should always be above any local components'. one cool thing is that we could just bundle all the dependencies together in a single build and have all the locals in a separate build.

my reasoning is that any local CSS should override any dependencies' CSS, regardless if its a direct dependency.

ianstormtaylor commented 10 years ago

+1 to locals being after deps