Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
phonegap-build
Advanced tools
PhoneGap Build command-line interface and node.js library.
$ sudo npm install -g phonegap-build
Usage: phonegap-build [options] [commands]
Synopsis:
PhoneGap Build command-line environment.
Commands:
login login to phonegap build
logout logout of phonegap build
create <path> create a phonegap project
build <platform> build a specific platform
help [commands] output usage information
Options:
-v, --version output version number
-h, --help output usage information
package.json
:
{
"dependencies": {
"phonegap-build-cli": "*"
}
}
var build = require('phonegap-build-cli');
Authenticates with PhoneGap Build, saves the token, and return an API object. When the save token exists, the authentication step is skipped.
Options:
options
{Object} contains the login credentials.options.username
{String} is the username.options.password
{String} is the password.callback
] {Function} is called after the login.
e
{Error} is null on a successful login attempt.api
{Object} the API object defined by phonegap-build-restEvents:
error
is triggered on an error.
e
{Error} details the error.complete
is trigger when there is no error.
api
{API} is instance of phonegap-build-api object.Example:
build.login({ username: 'zelda', password: 'tr1force' }, function(e, api) {
// pass `api` to other phonegap build commands
});
Logout the user by deleting the token key from the config file.
Options:
args
{Object} is unused and should be {}
.callback
] {Function} is a callback function.
e
{Error} is null unless there is an error.Events:
error
is trigger on an error.
e
{Error} details the error.complete
is trigger when there is no error.Example:
build.logout({}, function(e) {
console.log('now logged out.');
});
Creates an application on the local filesystem and also remotely on PhoneGap Build. The remote application is linked by storing the app ID inside the application's config file.
Options:
options
{Object} is data required to create an app
path
{String} is a directory path for the app.callback
] {Function} is triggered after creating the app.
e
{Error} is null unless there is an error.Events:
error
is trigger on an error.
e
{Error} details the error.complete
is trigger when no error occurs.Example:
build.create({ path: 'path/to/new/app' }, function(e) {
});
The build task will compress the application, upload it to PhoneGap Build, and poll until the platform's build status is complete or an error is encountered.
Options:
options
{Object} is data required for building a platform.options.api
{Object} is the phonegap-build-api API object.options.platforms
{Array} is a collection of platform names {String} that
specify the platforms to build.callback
] {Function} is triggered after the build is complete.
e
{Error} is null unless there is an error.Events:
error
is trigger on an error.
e
{Error} details the error.complete
is trigger when no error occurs.Example:
build.build({ api: api, platforms: ['android'] }, function(e) {
});
FAQs
PhoneGap Build node library.
The npm package phonegap-build receives a total of 184 weekly downloads. As such, phonegap-build popularity was classified as not popular.
We found that phonegap-build demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.