Commit 78a74e91 by xzyfer Committed by Michael Mifsud

Don't emit info output in quiet mode

parent dd805fc8
...@@ -328,7 +328,7 @@ function run(options, emitter) { ...@@ -328,7 +328,7 @@ function run(options, emitter) {
*/ */
function renderFile(file, options, emitter) { function renderFile(file, options, emitter) {
options = getOptions([path.resolve(file)], options); options = getOptions([path.resolve(file)], options);
if (options.watch) { if (options.watch && !options.quiet) {
emitter.emit('info', util.format('=> changed: %s', file)); emitter.emit('info', util.format('=> changed: %s', file));
} }
render(options, emitter); render(options, emitter);
...@@ -355,7 +355,9 @@ function renderDir(options, emitter) { ...@@ -355,7 +355,9 @@ function renderDir(options, emitter) {
renderFile(subject, options, emitter); renderFile(subject, options, emitter);
}, function(successful, arr) { }, function(successful, arr) {
var outputDir = path.join(process.cwd(), options.output); var outputDir = path.join(process.cwd(), options.output);
emitter.emit('info', util.format('Wrote %s CSS files to %s', arr.length, outputDir)); if (!options.quiet) {
emitter.emit('info', util.format('Wrote %s CSS files to %s', arr.length, outputDir));
}
process.exit(); process.exit();
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment