kriswallsmith/assetic — pull request #238 by phiamo (2012-05-29 11:46:28+00:00)
Title: Asset dependency check

I think this PR is not to be really merged as it is atm.
I think the functionality need to be refactored to reside somewhere else.

This addresses issue #150, #79
and is related to #190

I would like to improve it, to get a even better assetic.

So what is the Problem?
E.g. less,compass,css,js imported files are changed, and assetic doesn't see it because it only checks the "main" file in the template.

This is a pain, because e.g. for less and twitters/bootstrap you need to include all files in a main file to preserve e.g. variables, mixins etc. defined

So howto solve it?
Get assetic checking assets dependencies. But there is no generic way to do that.
(Different patterns to identify the dependencies, somewhere dependency checking not needed, etc)

So we need to define somehow, which files should have the dependency check, and how to do it:

Either we have a completely different layer to do this.
* Or we have a global configuration to configure patterns per files (e.g. for the workers)
* Or have filters to manage their dependency checks.
* Or having some combination between all of this.

Probably you can give me a hint what would be a good approach.

Cheers Phil