incandescent/mbt — pull request #6 by ahamid (2012-06-15 21:27:21+00:00)
Title: User-defined config

This implements support for user-defined configs which can be used in combination with user-defined tasks.

User-defined configs are placed in `tasks/cfg` and should be `.json` files.

For example, to implement support for `compass` compilation, copy `compass.js` to `tasks` and then create a file under `tasks/cfg` like `compass.json` containing:

{
"compass": {
"dist": {
"src": "app/sass/",
"dest": "app/css/"
}
},
"watch": {
"compass": {
"files": ["app/sass/**/*.scss", "app/sass/**/*.sass"],
"tasks": "compass"
}
}
}

then you can run:

`grunt compass` or `grunt watch` to watch for sass changes and execute compass