Skip to content
Permalink
Browse files

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>
  • Loading branch information...
rwaldron committed Jun 5, 2012
1 parent 37ffb29 commit 655350be5d50c44729ffd5ab723345f078cd3649
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 ) {

0 comments on commit 655350b

Please sign in to comment.
You can’t perform that action at this time.