How to use the cordova-lib.cordova.platforms function in cordova-lib

To help you get started, we’ve selected a few cordova-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adapt-it / adapt-it-mobile / gulpfile.js View on Github external
gulp.task("build-android", function () {
    cordova.platforms("add", "android");
    return gulp.src('dist')
        .pipe(cordova.clean("android"))
        .pipe(cordova.build("android", buildArgs));
});
github adapt-it / adapt-it-mobile / gulpfile.js View on Github external
gulp.task("build-ios", function () {
    cordova.platforms("add", "ios");
    return gulp.src('dist')
        .pipe(cordova.clean("ios"))
        .pipe(cordova.build("ios", buildArgs));
});
github adapt-it / adapt-it-mobile / gulpfile.js View on Github external
gulp.task("build-win", function () {
    cordova.platforms("add", "windows");
    return gulp.src('dist')
        .pipe(cordova.clean("windows"))
        .pipe(cordova.build("windows", buildArgs));
});