UNPKG

cordova-sync

Version:

Respond to file changes and build Cordova application

13 lines (10 loc) 305 B
const exec = require('child_process').exec function execute (command, cwd) { return new Promise((res, rej) => { exec(command, { cwd, maxBuffer: 1024 * 500 }, function (error, stdout, stderr) { if (error) return rej(error) res({ stdout, stderr }) }) }) } module.exports = execute