downloads the Android and iOS package to Phonegap Build
npm install -g download-builds-from-phonegap
You can import this script inside your NodeJS application:
First you need it installed locally:
npm install download-builds-from-phonegap --save-dev
Once you've done this you can use it in code:
var ionicToPhonegap = require('ionic-to-phonegap-build');
ionicToPhonegap.sendToPhonegapBuild('Your Phonegap app id', 'Your Phonega auth token', isDebugBoolean[true/false]);
ex '2334553'
ex 'qfqfggFDGSsgdggs'
Create a phbuild.js file with following contents:
var ionicToPhonegap = require('ionic-to-phonegap-build');
ionicToPhonegap.sendToPhonegapBuild('2922066', 'D9eKg6fdggjuxjskEbGm4KZy', true);
in your package.json add following script in the scripts section:
scripts: {
"phbuild": "node phbuild.js"
},
Now you can run it manually:
npm run phbuild