aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-06-05 11:50:49 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-05 11:52:22 -0400
commit655350be5d50c44729ffd5ab723345f078cd3649 (patch)
treef86bb192f42058e833e3ccac1d1b182ee5717fc8 /grunt.js
parent37ffb29d37129293523bf1deacf3609a28b0ceec (diff)
downloadjquery-655350be5d50c44729ffd5ab723345f078cd3649.tar.gz
jquery-655350be5d50c44729ffd5ab723345f078cd3649.zip
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 <waldron.rick@gmail.com>
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js6
1 files changed, 5 insertions, 1 deletions
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: [ "<config:lint.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 ) {