Socket
Socket
Sign inDemoInstall

gulp-bump

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.8 to 0.1.0

2

examples/gulpfile.js

@@ -6,3 +6,3 @@ var gulp = require('gulp');

var options = {
bump: 'minor'
type: 'minor'
};

@@ -9,0 +9,0 @@ gulp.src('./package.json')

@@ -6,3 +6,3 @@ var map = require('map-stream');

if(!opts) opts = {};
if(!semver.inc('0.0.1', opts.bump)) opts.bump = false;
if(!semver.inc('0.0.1', opts.type)) opts.type = false;
// Map each file to this function

@@ -18,3 +18,3 @@ function modifyContents(file, cb) {

data = data.replace(regex, function(match, prefix, version, suffix){
var newVersion = semver.inc(version, opts.setVersion || opts.bump || 'patch');
var newVersion = semver.inc(version, opts.type || 'patch');
return prefix + newVersion + suffix;

@@ -21,0 +21,0 @@ });

{
"name": "gulp-bump",
"description": "Bump npm versions with Gulp (gulpjs.com)",
"version": "0.0.8",
"version": "0.1.0",
"homepage": "http://github.com/stevelacy/gulp-bump",

@@ -6,0 +6,0 @@ "repository": "git://github.com/stevelacy/gulp-bump.git",

@@ -47,7 +47,4 @@ #gulp-bump

gulp.task('bump', function(){
var options = {
bump: 'minor'
};
gulp.src('./package.json')
.pipe(bump(options))
.pipe(bump({type:'minor'}))
.pipe(gulp.dest('./'));

@@ -67,7 +64,9 @@ });

## Options
### options.bump
### options.type
What type of version to bump to.
Type: `String`
Default: `patch`
Type: `String`
Default: `patch`
###Versioning Used: [Semantic](http://semver.org/)

@@ -74,0 +73,0 @@ ### String, lowercase

@@ -35,3 +35,3 @@ var fs = require('fs');

});
var bumpS = bump({bump: 'major'});
var bumpS = bump({type: 'major'});
bumpS.once('data', function(newFile){

@@ -53,3 +53,3 @@ should.exist(newFile);

});
var bumpS = bump({bump: 'minor'});
var bumpS = bump({type: 'minor'});
bumpS.once('data', function(newFile){

@@ -73,3 +73,3 @@ should.exist(newFile);

});
var bumpS = bump({bump: 'invalid'});
var bumpS = bump({type: 'invalid'});
bumpS.once('data', function(newFile){

@@ -76,0 +76,0 @@ should.exist(newFile);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc