Created
October 27, 2015 19:00
-
-
Save paxperscientiam/3abdc5e2780368b4e86c to your computer and use it in GitHub Desktop.
// Execute task dependencies conditionally!
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
// requires and what not | |
// Execute task dependencies conditionally! | |
var conditional = true; | |
var jk = (conditional) ? ['b']:null; | |
gulp.task('a', jk, function() { | |
"use strict"; | |
console.log("THIS IS A"); | |
}); | |
gulp.task('b', function() { | |
"use strict"; | |
console.log("THIS IS B"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment