Skip to content

Instantly share code, notes, and snippets.

@re1ro
Created February 1, 2013 16:22
Show Gist options
  • Save re1ro/4692322 to your computer and use it in GitHub Desktop.
Save re1ro/4692322 to your computer and use it in GitHub Desktop.
grunt config for coffee project
module.exports = function (grunt) {
"use strict";
grunt.loadNpmTasks('grunt-bg-shell');
// Project configuration.
grunt.initConfig({
bgShell: {
watchCoffee: {
cmd: './node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src',
bg: true,
stdout: function (log) {
if (!log.indexOf('In'))
console.log(log);
}
},
nodeDev: {
cmd: 'NODE_ENV="development" node .'
}
}
});
// Default task.
grunt.registerTask('default', 'bgShell');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment