Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexshevch/cordova-auto-patch
Automatically increment patch version in config.xml
https://github.com/alexshevch/cordova-auto-patch
Last synced: 3 months ago
JSON representation
Automatically increment patch version in config.xml
- Host: GitHub
- URL: https://github.com/alexshevch/cordova-auto-patch
- Owner: alexshevch
- License: mit
- Created: 2015-09-09T06:54:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-18T20:38:07.000Z (over 8 years ago)
- Last Synced: 2024-08-06T08:19:47.685Z (3 months ago)
- Language: JavaScript
- Size: 366 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-cordova - cordova-auto-patch
README
# cordova-auto-patch
Automatically 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.
# Update 1.2.x [![Build Status](https://secure.travis-ci.org/shevaroller/cordova-auto-patch.png)](http://travis-ci.org/shevaroller/cordova-auto-patch)
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.
## Installation
npm install cordova-auto-patch --save## Usage
var patch = require('cordova-auto-patch');
// to autoincrement the patch part of the version
patch('.//');// to manually set the version
patch('.//', '1.0.14');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());## License
MIT