Hi, I wrote a module called profile builder to help turn sites into distributions quickly (which pairs well with Features). Before I dig too deep, I'm looking for an *easy* way to create a feature of all exportables of a certain type. My goal is to try and build an export method for an install profile that would automatically bundle all views into a feature called {profilename}_views either via drush of via a UI that currently bundles and downloads the install profile as a tar.

Is there any function I could look to or does anyone have example code to do anything similar to that requirement of exporting based on exportable-type? Eventually I'd like to make export templates (based on the machine names given to exportables like context / content types / views) to automatically produce feature packages to help streamline the building of distributions as well as helping to produce kit compliant features.

I realize some aspects of this disappear in the D8 config initiative but D8 is a long way away so any help anyone has is appreciated.