Created
September 13, 2012 11:58
-
-
Save jefmathiot/3713877 to your computer and use it in GitHub Desktop.
Watch for changes on coffeescript files in the current directory and use GruntJS to compile to JS.
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
#!/bin/bash | |
# Watch for changes on coffeescript files in the current directory and use GruntJS to compile to JS. | |
# See http://gruntjs.com | |
# Require inotify-tools | |
# Ubuntu : apt-get install inotify-tools | |
while true ; do \ | |
inotifywait -q *.coffee \ | |
&& ( grunt coffee > /dev/null ) \ | |
done |
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) { | |
// Project configuration. | |
grunt.initConfig({ | |
coffee: { | |
app: { | |
src: ['./*.coffee'], | |
dest: './' | |
} | |
} | |
}); | |
// Load tasks from "grunt-sample" grunt plugin installed via Npm. | |
grunt.loadNpmTasks('grunt-coffee'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment