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

gulp-bump - npm Package Compare versions

Comparing version 2.7.0 to 2.8.0

examples/plugin.php

24

examples/gulpfile.js

@@ -27,2 +27,26 @@ 'use strict';

// WordPress Theme: https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/
gulp.task('wptheme', function(){
gulp.src('./style.css')
.pipe(bump())
.pipe(gulp.dest('./build'));
});
// WordPress Plugin: https://developer.wordpress.org/plugins/the-basics/header-requirements/
gulp.task('wpplugin', function(){
gulp.src('./plugin.php')
.pipe(bump())
.pipe(gulp.dest('./build'));
});
// PHP Constant: `define( 'MY_PLUGIN_VERSION', '1.0.0' );`
gulp.task('phpconstant', function(){
var constant = "MY_PLUGIN_VERSION";
gulp.src('./plugin.php')
.pipe(bump({
regex: new RegExp( "([<|\'|\"]?"+constant+"[>|\'|\"]?[ ]*[:=,]?[ ]*[\'|\"]?[a-z]?)(\\d+\\.\\d+\\.\\d+)(-[0-9A-Za-z\.-]+)?([\'|\"|<]?)", "i" ),
}))
.pipe(gulp.dest('./build'));
});
gulp.task('key', function(){

@@ -29,0 +53,0 @@ gulp.src('./key.json')

4

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

@@ -10,3 +10,3 @@ "repository": "git://github.com/stevelacy/gulp-bump.git",

"dependencies": {
"bump-regex": "^2.7.0",
"bump-regex": "^2.8.0",
"plugin-error": "^0.1.2",

@@ -13,0 +13,0 @@ "plugin-log": "^0.1.0",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc