(cmd)
| 91 | |
| 92 | //function to make exec promise |
| 93 | function execPromise(cmd) { |
| 94 | return new Promise((resolve, reject) => { |
| 95 | exec(cmd, (error, stdout, stderr) => { |
| 96 | if (error) { |
| 97 | console.warn(error); |
| 98 | } |
| 99 | resolve(stdout ? stdout : stderr); |
| 100 | console.log(stdout); |
| 101 | }); |
| 102 | }); |
| 103 | } |
| 104 | |
| 105 | //function to compile yulp contracts |
| 106 | async function yulLog() { |