Add grunt watch task

This commit is contained in:
Eric Ferraiuolo 2013-06-05 18:51:10 -04:00
parent 30bd2b8947
commit cc528c5d61
2 changed files with 16 additions and 1 deletions

View File

@ -227,6 +227,19 @@ grunt.initConfig({
banner: '/* <%= BUILD_COMMENT %> */\n' banner: '/* <%= BUILD_COMMENT %> */\n'
} }
} }
},
// -- Watch Config ---------------------------------------------------------
watch: {
src: {
files: 'src/**/css/*.css',
tasks: ['test', 'default'],
options: {
interrupt: true
}
}
} }
}); });
@ -238,6 +251,7 @@ grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-csslint'); grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', [ grunt.registerTask('default', [
'clean:build', 'clean:build',

View File

@ -12,6 +12,7 @@
"grunt-contrib-concat": "~0.3.0", "grunt-contrib-concat": "~0.3.0",
"grunt-contrib-compress": "~0.5.0", "grunt-contrib-compress": "~0.5.0",
"bower": "~0.9.2", "bower": "~0.9.2",
"grunt-contrib-csslint": "~0.1.2" "grunt-contrib-csslint": "~0.1.2",
"grunt-contrib-watch": "~0.4.4"
} }
} }