Download the phonegap builds to your hard drive or SSD :-)
npm install download-builds-from-phonegapnpm install download-builds-from-phonegap --save-dev
var ionicToPhonegap = require('ionic-to-phonegap-build');
ionicToPhonegap.sendToPhonegapBuild('Your Phonegap app id', 'Your Phonega auth token', isDebugBoolean[true/false]);
`
Parameters
$3
ex '2334553'
$3
ex 'qfqfggFDGSsgdggs'
$3
Execute with npm scripts
$3
Create a phbuild.js file with following contents:
`
var ionicToPhonegap = require('ionic-to-phonegap-build');
ionicToPhonegap.sendToPhonegapBuild('2922066', 'D9eKg6fdggjuxjskEbGm4KZy', true);
`
$3
in your package.json add following script in the scripts section:
`
scripts: {
"phbuild": "node phbuild.js"
},
`
$3
Now you can run it manually:
`
npm run phbuild
``