From: Rick Waldron Date: Tue, 5 Jun 2012 15:50:49 +0000 (-0400) Subject: Create special "grunt watch" task called "dev" X-Git-Tag: 1.8b1~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=655350be5d50c44729ffd5ab723345f078cd3649;p=jquery.git Create special "grunt watch" task called "dev" "dev" is a short task list that's optimized for grunt watch's high run rate frequency Signed-off-by: Rick Waldron --- diff --git a/grunt.js b/grunt.js index a09b5d822..dffe450cc 100644 --- a/grunt.js +++ b/grunt.js @@ -69,7 +69,7 @@ module.exports = function( grunt ) { }, watch: { files: [ "", "src/**/*.js" ], - tasks: "default" + tasks: "dev" }, jshint: { options: { @@ -106,6 +106,10 @@ module.exports = function( grunt ) { // Default grunt. grunt.registerTask( "default", "submodules selector build:*:* dist:* lint min compare_size" ); + // Short list as a high frequency watch task + grunt.registerTask( "dev", "selector build:*:* lint" ); + + // Load the "compare_size" task from NPM packages grunt.loadNpmTasks("grunt-compare-size"); grunt.registerTask( "testswarm", function( commit, configFile ) {