silence annoying messages from dryice

This commit is contained in:
nightwing 2012-10-06 14:48:03 +04:00
commit 8366784729

View file

@ -429,15 +429,28 @@ var buildAce = function(options) {
});
console.log('# combining files into one ---------');
if (options.shrinkwrap) {
console.log('# combining files into one ---------');
copy({
source: { root:targetDir, exclude:/^worker\-/ },
dest: BUILD_DIR + '/ace-min.js'
});
}
}
};
// silence annoying messages from dryice
var buildAce = function(fn) {
return function() {
var log = console.log
console.log = function() {
if (typeof arguments[0] == "string" && /Ignoring requirement/.test(arguments[0]))
return;
log.apply(console, arguments);
}
fn.apply(null, arguments);
console.log = log;
}
}(buildAce);
// TODO: replace with project.clone once it is fixed in dryice
function cloneProject(project) {