Gulp Plugin for Adobe PhoneGap Build

0.1.5 · abandoned · verified Tue Apr 21

This Gulp plugin was designed to automate the process of uploading application files to the now-defunct build.phonegap.com service and triggering cloud builds. While the package itself is available on npm at version 0.1.5, the core service it integrates with, Adobe PhoneGap Build, was officially discontinued by Adobe on October 1, 2020. This renders the plugin non-functional for its original purpose. The project was in 'BETA' and under 'active development' at the time of its last update, forking from `grunt-phonegap-build` to provide similar functionality for Gulp users. Its key differentiators were its direct integration with Gulp streams and the ability to configure various PhoneGap Build parameters like app ID, user credentials, target platforms, and signing keys directly within a `gulpfile.js`.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to define a Gulp task using `gulp-phonegap-build` to upload files, trigger a build for specific platforms, and download the resulting app binaries, configured with a token for authentication. Note that this code will no longer function due to the PhoneGap Build service shutdown.

var gulp = require('gulp');
var phonegapBuild = require('gulp-phonegap-build');

// NOTE: This plugin is non-functional as the Adobe PhoneGap Build service was discontinued on Oct 1, 2020.
// The example below demonstrates its intended usage for historical context.

gulp.task('phonegap-build-example', function () {
    gulp.src('dist/**/*', {dot: true}) // {dot: true} is important to include files like .pgbomit
        .pipe(phonegapBuild({
          "isRepository": false, // Set to true if using a GitHub repository
          "appId": "9876",       // Replace with your actual PhoneGap Build App ID
          "user": {
            "token": "ABCD123409876XYZ" // Replace with your PhoneGap Build authentication token
          },
          "platforms": ['ios', 'android'], // Required to trigger builds due to API quirk
          "download": {
            "ios": 'dist/ios.ipa',
            "android": 'dist/android.apk'
          }
        }))
        .on('error', function(err) {
            console.error('PhoneGap Build task failed:', err.message);
        });
});

gulp.task('default', ['phonegap-build-example']);

view raw JSON →