]> source.dussan.org Git - jquery.git/commitdiff
Create special "grunt watch" task called "dev"
authorRick Waldron <waldron.rick@gmail.com>
Tue, 5 Jun 2012 15:50:49 +0000 (11:50 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 5 Jun 2012 15:52:22 +0000 (11:52 -0400)
"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>
grunt.js

index a09b5d822c2cf7353e0ec8be06e88e6b12719a55..dffe450cca6ea8870520623d640b8a746dd67b67 100644 (file)
--- 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 ) {