mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
add a quiet option to markoc (#1030)
This commit is contained in:
parent
c04495d5e9
commit
290cd500f6
@ -80,6 +80,10 @@ var args = require("argly")
|
||||
description:
|
||||
"Additional directories to add to the Node.js module search path"
|
||||
},
|
||||
"--quiet -q": {
|
||||
type: "boolean",
|
||||
description: "Only print warnings and errors"
|
||||
},
|
||||
"--vdom -V": {
|
||||
type: "boolean",
|
||||
description: "VDOM output"
|
||||
@ -336,13 +340,14 @@ if (args.clean) {
|
||||
found[path] = true;
|
||||
var outPath = path + ".js";
|
||||
|
||||
console.log(
|
||||
"Compiling:\n Input: " +
|
||||
relPath(path) +
|
||||
"\n Output: " +
|
||||
relPath(outPath) +
|
||||
"\n"
|
||||
);
|
||||
if (!args.quiet)
|
||||
console.log(
|
||||
"Compiling:\n Input: " +
|
||||
relPath(path) +
|
||||
"\n Output: " +
|
||||
relPath(outPath) +
|
||||
"\n"
|
||||
);
|
||||
|
||||
context.beginAsync();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user