disqus / grunt-smartrev

A "smart" file versioner for production environments which takes inter-file dependencies into account automatically.
Apache License 2.0
75 stars 6 forks source link

Support recursive smartrev'ing #6

Closed rarkins closed 10 years ago

rarkins commented 10 years ago

I don't notice support for recursing source subdirectories in either the documentation nor source code, so I am adding this as a part question/part feature request.

Does or could grunt-smartrev support recursing into subdirectories without needing to specify them all in the dist.src configuration? i.e. if it's not already supported, is there any fundamental reason why it couldn't be added?

My use case would be for it to recurse every subdirectory under the cwd (i.e. "public") in my case and rename all files in place.

BYK commented 10 years ago

It does recursive based on your grunt configuration. If you specify a recursive path (**/*.js for example) it will recurse. Also, regardless of your pattern, it will automatically discover any dependencies and version them too.