aboutsummaryrefslogtreecommitdiffstats
path: root/lib/grunt/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/grunt/utils.js')
-rw-r--r--lib/grunt/utils.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js
index 3d2ab316..38533f27 100644
--- a/lib/grunt/utils.js
+++ b/lib/grunt/utils.js
@@ -16,8 +16,11 @@ module.exports = {
var semver = match[1].split('.');
var hash = shell.exec('git rev-parse --short HEAD', {silent: true}).output.replace('\n', '');
+ var fullVersion = (match[1] + (match[2] ? '-' + hash : ''));
+ var numVersion = semver[0] + '.' + semver[1] + '.' + semver[2];
var version = {
- full: (match[1] + (match[2] ? '-' + hash : '')),
+ number: numVersion,
+ full: fullVersion,
major: semver[0],
minor: semver[1],
dot: semver[2],