From c3861f04089e899b582655802e0954ba32af5b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 7 Jan 2013 14:54:59 +0100 Subject: [PATCH] Add watch and dev tasks --- Gruntfile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 1101583573..569e1b781a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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']); };