appversion
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -18,3 +18,3 @@ { | ||
"config": { | ||
"appversion": "1.6.0", | ||
"appversion": "1.7.0", | ||
"markdown": [], | ||
@@ -21,0 +21,0 @@ "json": [], |
/* | ||
* Project: appversion | ||
* Version: 1.6.0 | ||
* Version: 1.7.0 | ||
* Author: delvedor | ||
@@ -93,5 +93,5 @@ * Twitter: @delvedor | ||
* pattern: | ||
* M : version.major | ||
* m : version.minor | ||
* p : version.patch | ||
* M|B : version.major | ||
* m|F : version.minor | ||
* p|f : version.patch | ||
* S : status.stage | ||
@@ -110,7 +110,7 @@ * s : status.number | ||
switch (pattern) { | ||
case 'M': | ||
case 'M' || 'B': | ||
return obj.version.major | ||
case 'm': | ||
case 'm' || 'F': | ||
return obj.version.minor | ||
case 'p': | ||
case 'p' || 'f': | ||
return obj.version.patch | ||
@@ -117,0 +117,0 @@ case 'S': |
{ | ||
"version": { | ||
"major": 1, | ||
"minor": 6, | ||
"minor": 7, | ||
"patch": 0 | ||
@@ -18,3 +18,3 @@ }, | ||
"config": { | ||
"appversion": "1.6.0", | ||
"appversion": "1.7.0", | ||
"markdown": [ | ||
@@ -21,0 +21,0 @@ "README.md" |
@@ -5,3 +5,3 @@ #! /usr/bin/env node | ||
* Project: appversion | ||
* Version: 1.6.0 | ||
* Version: 1.7.0 | ||
* Author: delvedor | ||
@@ -8,0 +8,0 @@ * Twitter: @delvedor |
/* | ||
* Project: appversion | ||
* Version: 1.6.0 | ||
* Version: 1.7.0 | ||
* Author: delvedor | ||
@@ -5,0 +5,0 @@ * Twitter: @delvedor |
# Changelog | ||
## v1.7.0 | ||
- Added aliases: patch>fix, minor>feature major>breaking, for making more expressive the command | ||
## v1.6.0 | ||
@@ -4,0 +7,0 @@ - Added automation functionality |
@@ -17,3 +17,3 @@ 'use strict' | ||
-v, --version output the version number | ||
update <param> Updates the <param> that can be major|minor|patch|build|commit | ||
update <param> Updates the <param> that can be (major|breaking)|(minor|feature)|(patch|fix)|build|commit | ||
set-version <param> Sets a specific version number, the <param> must be x.y.z | ||
@@ -20,0 +20,0 @@ set-status <param> Sets a specific status, the <param> stage can be stable|rc|beta|alpha and the number must be a number |
@@ -6,4 +6,4 @@ 'use strict' | ||
// apv parameters and functions | ||
exports.apvVersion = '1.6.0' | ||
exports.apvVersion = '1.7.0' | ||
exports.JSON_FILE = 'appversion.json' | ||
exports.JSON_FILE_DEFAULT = resolve(__dirname, '../', 'appversion.default.json') |
@@ -19,2 +19,7 @@ 'use strict' | ||
if (!check('String', param)) return | ||
// Aliases | ||
if (param === 'breaking') param = 'major' | ||
if (param === 'feature') param = 'minor' | ||
if (param === 'fix') param = 'patch' | ||
if (param === 'major' || param === 'minor' || param === 'patch') { | ||
@@ -21,0 +26,0 @@ updateVersion(param) |
{ | ||
"name": "appversion", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "AppVersion is a CLI tool whose purpose is to provide a unique manager of the version of you application.", | ||
@@ -5,0 +5,0 @@ "main": "appversion.js", |
# AppVersion <a name="version"></a><a name="status"></a> | ||
[![AppVersion-version](https://img.shields.io/badge/AppVersion-1.6.0-brightgreen.svg?style=flat)](https://github.com/delvedor/appversion?#version) [![AppVersion-status](https://img.shields.io/badge/Status-RC-brightgreen.svg?style=flat)](https://github.com/delvedor/appversion?#status) [![Build Status](https://travis-ci.org/delvedor/appversion.svg?branch=master)](https://travis-ci.org/delvedor/appversion) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) | ||
[![AppVersion-version](https://img.shields.io/badge/AppVersion-1.7.0-brightgreen.svg?style=flat)](https://github.com/delvedor/appversion?#version) [![AppVersion-status](https://img.shields.io/badge/Status-RC-brightgreen.svg?style=flat)](https://github.com/delvedor/appversion?#status) [![Build Status](https://travis-ci.org/delvedor/appversion.svg?branch=master)](https://travis-ci.org/delvedor/appversion) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) | ||
@@ -66,5 +66,5 @@ **AppVersion** is a CLI tool whose purpose is to provide a **unique manager** of the version of you application. | ||
|:-------|:---------|:------------------------------------| | ||
| update | major | Updates major number. | | ||
| | minor | Updates minor number. | | ||
| | patch | Updates patch number. | | ||
| update | major\breaking | Updates major number. | | ||
| | minor\feature | Updates minor number. | | ||
| | patch\fix | Updates patch number. | | ||
| | build | Updates build number. | | ||
@@ -85,2 +85,4 @@ | | commit | Updates commit code. | | ||
When using the *update* command, use `major|minor|patch` or `breaking|feature|fix` is the same, is a question of making **more expressive** the command and what are you doing. | ||
Some usage examples: | ||
@@ -140,6 +142,6 @@ ``` | ||
| **Pattern** | **description** | | ||
|:-----------|:----------------| | ||
| **M** | version.major | | ||
| **m** | version.minor | | ||
| **p** | version.patch | | ||
|:------------|:-----------------| | ||
| **M | B** | version.major | | ||
| **m | F** | version.minor | | ||
| **p | f** | version.patch | | ||
| **S** | status.stage | | ||
@@ -234,2 +236,4 @@ | **s** | status.number | | ||
- [x] Integration with Grunt/Gulp | ||
- [x] Add aliases: patch>fix, minor>feature major>breaking | ||
- [ ] Rewrite appendBadgeToMD with streams | ||
- [ ] SHA generator | ||
@@ -236,0 +240,0 @@ |
/* | ||
* Project: appversion | ||
* Version: 1.6.0 | ||
* Version: 1.7.0 | ||
* Author: delvedor | ||
@@ -5,0 +5,0 @@ * Twitter: @delvedor |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47995
884
259