Skip to content

Instantly share code, notes, and snippets.

@guybedford
Created July 11, 2014 18:54
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 guybedford/f6fc68a2b364928023e8 to your computer and use it in GitHub Desktop.
Save guybedford/f6fc68a2b364928023e8 to your computer and use it in GitHub Desktop.
System build exclusions
var firstTree, secondTree;
builder.trace('app/first', config)
.then(function(trace) {
firstTree = trace.tree;
return builder.trace('app/second');
})
.then(function(trace) {
secondTree = trace.tree;
return builder.subtractTrees(firstTree, secondTree);
})
.then(function(tree) {
return builder.buildTree(firstTree, 'build.js');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment