From 655350be5d50c44729ffd5ab723345f078cd3649 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Tue, 5 Jun 2012 11:50:49 -0400 Subject: [PATCH] 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 --- grunt.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5