2007/9/16, Chris Gallagher <cgallagher@gmail.com>:
> Hi,
>
> I'm currently tryin to implement a ruby script which will run through a
> directory of javascript files and run jsmin.rb against each of them as a
> part of my build script. im running into a number of silly issues so im
> just wondering if theres anyone out there thats done this kind of thing?
How about this:
Dir["**/*.
js"].each { |
js| system("ruby jsmin.rb #{
js}") }
--
http://pcdavid.net/