1.0.4 • Published 8 years ago
ionuv v1.0.4
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/projectionuv
Arguments
All arguments are preceeded by ionuv
filepath: You can specify the config.xml path.
ALERT:filepathMUST BE the 1st parameter.-p,--pator--patch: Increment the patch version.-n,--minor--minor: Increment the minor version.-j,--major--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.