UNPKG

cordova-pebble

Version:

Allows communication with Pebble smartwatch applications and Cordova applications.

18 lines (14 loc) 510 B
module.exports = function (context) { console.log("Pebble prerequisites"); var child_process = context.requireCordovaModule('child_process'), deferral = context.requireCordovaModule('q').defer(); var output = child_process.exec('npm install', {cwd: __dirname}, function (error) { if (error !== null) { console.log('exec error: ' + error); deferral.reject('npm installation failed'); } deferral.resolve(); }); return deferral.promise; };