Skip to content

Commit

Permalink
test cordova.clean
Browse files Browse the repository at this point in the history
  • Loading branch information
eb1 committed Dec 1, 2023
1 parent 2cee13d commit 6bcde4f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ gulp.task("prep-android-dir", function (done) {
if (!fs.existsSync(path)) {
process.stdout.write('Android dir not detected -- creating platform android\n');
cordova.platforms("add", "android");
done();
} else {
process.stdout.write('cleaning platform android\n');
cordova.clean("android");
done();
}
done();
});

gulp.task("build-android", gulp.series("prep-android-dir"), function (done) {
Expand All @@ -28,8 +32,12 @@ gulp.task("prep-ios-dir", function (done) {
if (!fs.existsSync(path)) {
process.stdout.write('ios dir not detected -- creating platform ios\n');
cordova.platforms("add", "ios");
done();
} else {
process.stdout.write('cleaning platform ios\n');
cordova.clean("ios");
done();
}
done();
});

gulp.task("build-ios", gulp.series("prep-ios-dir"), function (done) {
Expand Down

0 comments on commit 6bcde4f

Please sign in to comment.