brunch/brunch — pull request #220 by SuperSkunk (2012-03-15 17:36:36+00:00)
Title: Features/enhancement config

Hy everyone,

I tried to improve the joinTo option in the config file by adding Objects and Arrays capacity :

Files concerned: src/fs_utils/file_writer.coffee

```coffeescript
{
joinTo:
'javascripts/app.js': [
/^app/
/vendor\/scripts\/persistencejs\/lib\/persistence(.store.memory|.store.sql)?.js/
]
]
}

{
joinTo:
'javascripts/app.js': {
'^app/': '*'
'^vendor/scripts/': [
'jquery/dist/jquery.min.js'
'inflection-js/inflection.js'
/persistencejs\/lib\/persistence(.store.memory|.store.sql|.store.websql)?.js/
],
}
]
}

{
joinTo:
'javascripts/app.js': [
/^app/
{
'^vendor/scripts/': [
'jquery/dist/jquery.min.js'
'inflection-js/inflection.js'
/persistencejs\/lib\/persistence(.store.memory|.store.sql)?.js/
],
'^external/scripts/': [
'inflection.js'
]
}
]
]
}
```

I really wanted to be able to load config files different (for example, in multi-plateform development).

Files concerned: src/command.coffee, src/helpers.coffee

So now, I can build/watch/generate/destroy with :
```
brunch watch -c config_android
brunch build config config_ios
```

I hope you'll like those features !