Add watch and dev tasks

This commit is contained in:
Cédric Krier
2013-01-07 14:54:59 +01:00
parent 8a523ef93e
commit c3861f0408
+6
View File
@@ -49,6 +49,10 @@ module.exports = function(grunt) {
src: 'dist/<%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
},
watch: {
files: ['js/*.js'],
tasks: 'dev'
}
});
@@ -56,8 +60,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['concat', 'jshint', 'uglify']);
grunt.registerTask('dev', ['concat', 'jshint']);
};