ionuv
v1.0.4
Published
Updates app Version in config.xml (Ionic App)
Downloads
2
Readme
ionuv
The easy way to update the version number of your Ionic app config.xml
file.
Installation
npm install -g ionuv
Brief
If we take 1.2.3
as the version number:
- 1 would be major
- 2 would be minor
- 3 would be patch
Knowing this, you can follow with the usage and arguments.
Usage
cd /path/to/your/ionic/project
ionuv
Arguments
All arguments are preceeded by ionuv
filepath
: You can specify the config.xml path.
ALERT:filepath
MUST BE the 1st parameter.-p
,--pat
or--patch
: Increment the patch version.-n
,--min
or--minor
: Increment the minor version.-j
,--maj
or--major
: Increment the major version.
By default ionuv
will assume that you're in your Ionic Project's folder and the file is named config.xml
.
So if you run ionuv
without parameters, it will increment the patch number of your config.xml.
Examples
Increment patch number, being in the project folder:ionuv -p
Increment minor number, being in project parent folder:ionuv myproject/config.xml -n
Increment major number, specifying an absolute path:ionuv ~/ionicprojects/myproject/config.xml
How to manage versioning?
I recommend to follow the semver rules.