mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
added cli_test_run-samples to test samples from commandline; added --outputSuffix option
This commit is contained in:
@@ -12,6 +12,7 @@ module.exports = { process: processMermaid }
|
||||
function processMermaid(files, _options, _next) {
|
||||
var options = _options || {}
|
||||
, outputDir = options.outputDir || process.cwd()
|
||||
, outputSuffix = options.outputSuffix || ""
|
||||
, next = _next || function() {}
|
||||
, phantomArgs = [
|
||||
phantomscript
|
||||
@@ -23,6 +24,7 @@ function processMermaid(files, _options, _next) {
|
||||
, options.ganttConfig
|
||||
, options.verbose
|
||||
, options.width
|
||||
, outputSuffix
|
||||
];
|
||||
|
||||
files.forEach(function(file) {
|
||||
|
Reference in New Issue
Block a user