airportyh/testem — pull request #67 by eclifford (2012-10-24 23:22:54+00:00)
Title: offered more flexibility in how to map source and destination directorie...

I went ahead and made the mapping a bit more configurable making both the source folder and static folder configurable.

Below is an example of the proposed testem.json configuration object I'm using in my yeoman project. It was important to do this because if you just serve up yeoman's app and temp directories testem's express server will end up serving yeoman's index.html instead of it's own. This offers more finite control.

Using this below I've got a fully integrated CoffeeScript + RequireJS + Yeoman + Testem goodness :smiley:

```javascript
{
"test_page": "test/suite.html",
"static_dirs": [
{
"source": "temp/scripts",
"dest": "/scripts"
},
{
"source": "temp/styles",
"dest": "/styles"
},
{
"source": "app/templates",
"dest": "/templates"
}
],
"launch_in_dev": [
"PhantomJS"
],
"before_tests": "coffee -c test/specs/**/*.coffee",
"after_tests": "rm test/specs/**/*.js",
"src_files": [
"app/templates/**/*.tmpl",
"temp/scripts/**/*.js",
"test/specs/**/*.coffee"
]
}