Skip to content

Commit

Permalink
Add watch task
Browse files Browse the repository at this point in the history
  • Loading branch information
serkanyersen committed May 24, 2015
1 parent 24e504a commit 73679a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

watch: {
coffee: {
files: ['src/*.coffee'],
tasks: ['coffee:compile'],
options: {
spawn: false,
interrupt: true
}
}
},

coffee: {
compile: {
options: {
Expand Down Expand Up @@ -34,12 +45,10 @@ module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-docco');

grunt.registerTask('default', function (spec) {

grunt.task.run(['coffee:compile', 'uglify:build', 'docco:build']);

});

};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"grunt": "^0.4.5",
"grunt-contrib-coffee": "^0.13.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-docco": "^0.3.3"
}
}

0 comments on commit 73679a6

Please sign in to comment.