Skip to content

Instantly share code, notes, and snippets.

@paxperscientiam
Created October 27, 2015 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paxperscientiam/3abdc5e2780368b4e86c to your computer and use it in GitHub Desktop.
Save paxperscientiam/3abdc5e2780368b4e86c to your computer and use it in GitHub Desktop.
// Execute task dependencies conditionally!
// 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