I was writing plugin for combining JS and CSS as three plugins I tried has not worked for me. Dependency problem is where I stopped. It look tough. Then I thought Wordpress can itself help.
How to get list of files in order of dependencies? Is there any WP method for this? Can I use WP_dependency class externally? How?
I am able to filter script files according to Header and Footer.