Automatically increment patch version in config.xml
npm install cordova-auto-patchAutomatically increment patch version in config.xml.
All it does is increments value of version key. For example, 1.0.1 becomes 1.0.2.
Point to the directory with config.xml and cordova-auto-patch will do the rest.
The latest update does not break your previous code, but adds an option to manually set version number.
To do that, pass full version number in a string format as the second parameter.
// to manually set the version
patch('./
Use it with your gulp or grunt cordova build tasks:
gulp.task('build', function() {
return gulp.src(
.pipe(create())
.pipe(plugin(
.pipe(patch(
.pipe(cordova build())
.pipe(gulp.dest(
MIT