gulp-bump
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -0,1 +1,4 @@ | ||
'use strict'; | ||
var path = require('path'); | ||
var gutil = require('gulp-util'); | ||
@@ -84,5 +87,5 @@ var through = require('through2'); | ||
gutil.log('Bumped ' + gutil.colors.magenta(key) + ' to: ' + gutil.colors.cyan(ver)); | ||
gutil.log('Bumped \'' + gutil.colors.cyan(path.basename(file.path)) + '\' ' + gutil.colors.magenta(key) + ' to: ' + gutil.colors.cyan(ver)); | ||
cb(null, file); | ||
}); | ||
}; |
{ | ||
"name": "gulp-bump", | ||
"description": "Bump npm versions with Gulp (gulpjs.com)", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "http://github.com/stevelacy/gulp-bump", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/stevelacy/gulp-bump.git", |
@@ -169,3 +169,17 @@ # gulp-bump | ||
``` | ||
##### Dot notation is supported for nested versions: | ||
```js | ||
.pipe(bump({key: {'sublevel.version'}})) | ||
/* | ||
{ | ||
"sublevel": { | ||
"version": "<semver>" | ||
} | ||
} | ||
*/ | ||
``` | ||
### options.version | ||
@@ -172,0 +186,0 @@ Set a specific version to bump to. |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var gutil = require('gulp-util'); | ||
@@ -2,0 +4,0 @@ var should = require('should'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var gutil = require('gulp-util'); | ||
@@ -2,0 +4,0 @@ var should = require('should'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var fs = require('fs'); | ||
@@ -2,0 +4,0 @@ var gutil = require('gulp-util'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var gutil = require('gulp-util'); | ||
@@ -11,3 +13,4 @@ var should = require('should'); | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{ "version": "0.0.9" }') | ||
contents: new Buffer('{ "version": "0.0.9" }'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -29,3 +32,4 @@ | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{ "appversion": "0.0.1" }') | ||
contents: new Buffer('{ "appversion": "0.0.1" }'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -47,3 +51,4 @@ | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{ "version": "0.0.1" }') | ||
contents: new Buffer('{ "version": "0.0.1" }'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -66,3 +71,4 @@ | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{ "version": "0.0.1" }') | ||
contents: new Buffer('{ "version": "0.0.1" }'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -84,3 +90,4 @@ | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{}') | ||
contents: new Buffer('{}'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -102,3 +109,4 @@ | ||
var fakeFile = new gutil.File({ | ||
contents: new Buffer('{ "version": "0.0.1-0"}') | ||
contents: new Buffer('{ "version": "0.0.1-0"}'), | ||
path: 'test/fixtures/test.json' | ||
}); | ||
@@ -105,0 +113,0 @@ |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var gutil = require('gulp-util'); | ||
@@ -2,0 +4,0 @@ var should = require('should'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30689
24
720
246
0