mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 05:49:43 +02:00
remove dups
This commit is contained in:
@@ -17,18 +17,16 @@ function prepend_output_args(args) {
|
|||||||
|
|
||||||
function exec_mermaid(args, verify) {
|
function exec_mermaid(args, verify) {
|
||||||
var cmd = 'bin/mermaid.js ' + args
|
var cmd = 'bin/mermaid.js ' + args
|
||||||
console.log('cmd: ', cmd)
|
exec_cmd(cmd, verify)
|
||||||
exec(cmd,
|
|
||||||
{env: {PATH: './node_modules/.bin'+path.delimiter+process.env.PATH}},
|
|
||||||
function(error, stdout, stderr) {
|
|
||||||
console.log('error:',error,'\nstdout:\n',stdout,'\nstderr:\n',stderr);
|
|
||||||
verify(error, stdout, stderr);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function exec_phantomjs_to_load_html_save_screenshot_png(html, verify) {
|
function exec_phantomjs_to_load_html_save_screenshot_png(html, verify) {
|
||||||
var cmd = (phantomjs + ' ' + load_html_save_screenshot_png_scripts +
|
var cmd = (phantomjs + ' ' + load_html_save_screenshot_png_scripts +
|
||||||
' ' + html + ' ' + html + '.actual.png');
|
' ' + html + ' ' + html + '.actual.png');
|
||||||
|
exec_cmd(cmd, verify)
|
||||||
|
}
|
||||||
|
|
||||||
|
function exec_cmd(cmd, verify) {
|
||||||
console.log('cmd: ', cmd)
|
console.log('cmd: ', cmd)
|
||||||
exec(cmd,
|
exec(cmd,
|
||||||
{env: {PATH: './node_modules/.bin'+path.delimiter+process.env.PATH}},
|
{env: {PATH: './node_modules/.bin'+path.delimiter+process.env.PATH}},
|
||||||
|
Reference in New Issue
Block a user