Created
February 1, 2013 16:22
-
-
Save re1ro/4692322 to your computer and use it in GitHub Desktop.
grunt config for coffee project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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