title: How do I add auto-generated list of files in a directory to a JS file?
body: <p>I'm writing an online game in HTML5. One of the files contains a list of resources which are all in <code>resources/img/</code> folder. Now I'd like this list to be automatically generated based on contents of this folder, rather than having to update it manually every time I add a new image. I'm pretty sure that Grunt can do this, but I don't know how to configure it properly. What should I do to have Grunt generate something like this?</p>
  
  <pre><code>resources = ['a.jpg', 'b.png', 'subfolder/c.png'];
  </code></pre>