Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

PointSource/gulp-cordova-build-ios

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cordova-build-ios

Build the cordova project for the iOS platform.

Installation

npm install --save-dev gulp-cordova-build-ios

Usage

var gulp = require('gulp'),
    create = require('gulp-cordova-create'),
    plugin = require('gulp-cordova-plugin'),
    ios = require('gulp-cordova-build-ios');

gulp.task('build', function() {
    return gulp.src('www')
        .pipe(create())
        .pipe(plugin('org.apache.cordova.dialogs'))
        .pipe(plugin('org.apache.cordova.camera'))
        .pipe(ios());
});

This plugin will build the cordova project for the iOS platform.

Re-adding the iOS platform

The ios() method accepts one optional parameter. If the parameter passed in is true, it will first remove the entire iOS platform and add it again.

var gulp = require('gulp'),
    ios = require('gulp-cordova-build-ios');

gulp.task('rebuild', function() {
    return gulp.src('.cordova')
        .pipe(ios(true));
});

This task will simply remove the iOS platform, add it again and rebuild it.

$ cordova platform remove ios
$ cordova platform add ios
$ cordova build ios

If no parameter is provided, it will only build the platform.

Related

See gulp-cordova for the full list of available packages.

Contributors

License

MIT © Sam Verschueren

About

Gulp plugin for building an iOS Cordova project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%