Created
May 7, 2014 05:41
grunt multi tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register multi-tasks | |
grunt.registerMultiTask( 'conditional', 'Conditional tasks', function() { | |
switch ( this.target ) { | |
case 'case1': | |
grunt.task.run( this.data.tasks ); | |
break; | |
case 'case2': | |
grunt.task.run( this.data.tasks ); | |
break; | |
case 'case3': | |
grunt.task.run( this.data.tasks ); | |
break; | |
case 'case4': | |
grunt.task.run( this.data.tasks ); | |
break; | |
} | |
}); | |
grunt.registerMultiTask( 'develop', 'Development tasks', function() { | |
grunt.task.run( this.data.tasks ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment