2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-02 12:50:47 +00:00
nativefier/gulp/helpers/gulp-helpers.js

14 lines
315 B
JavaScript
Raw Normal View History

2016-02-27 16:45:44 +00:00
import shellJs from 'shelljs';
function shellExec(cmd, silent, callback) {
shellJs.exec(cmd, {silent: silent}, (code, stdout, stderr) => {
if (code) {
callback(JSON.stringify({code, stdout, stderr}));
return;
}
callback();
});
}
export default {shellExec};