gulp-bump
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "gulp-bump", | ||
"description": "Bump npm versions with Gulp (gulpjs.com)", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "http://github.com/stevelacy/gulp-bump", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/stevelacy/gulp-bump.git", |
@@ -5,2 +5,4 @@ #gulp-bump | ||
> Bump any json file which supports [semver](http://semver.org/) versioning | ||
## Information | ||
@@ -14,3 +16,4 @@ | ||
<td>Description</td> | ||
<td>Bump npm versions with Gulp (gulpjs.com)</td> | ||
<td>Bump any Semver version json file | ||
with gulp (gulpjs.com)</td> | ||
</tr> | ||
@@ -40,3 +43,3 @@ <tr> | ||
gulp.task('bump', function(){ | ||
gulp.src('./package.json') | ||
gulp.src('./component.json') | ||
.pipe(bump()) | ||
@@ -50,3 +53,3 @@ .pipe(gulp.dest('./')); | ||
gulp.task('bump', function(){ | ||
gulp.src('./package.json') | ||
gulp.src('./*.json') | ||
.pipe(bump({type:'minor'})) | ||
@@ -56,3 +59,20 @@ .pipe(gulp.dest('./')); | ||
// Defined method of updating: | ||
// Semantic major | ||
gulp.task('bump', function(){ | ||
gulp.src('./bower.json') | ||
.pipe(bump({type:'major'})) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
// Update bower, component, npm at once: | ||
gulp.task('bump', function(){ | ||
gulp.src(['./bower.json', './component.json', './package.json']) | ||
.pipe(bump({type:'major'})) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
// Run the gulp tasks | ||
@@ -59,0 +79,0 @@ gulp.task('default', function(){ |
12043
129